; ; localStorageSetItem from 0x180017010 to 0x1800170a3 (147 bytes) ; ; 3 xrefs: ; > @ 0x18002fdf8 ; > @ 0x18004a9ec ; > @ 0x18004a9f8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180017010 push rdi ; +0x5, 0x180017015 sub rsp, 30h ; +0x6, 0x180017016 mov r9d, 0FFFFFFFFh ; +0xa, 0x18001701a mov [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh ; +0x10, 0x180017020 mov rbx, rdx ; +0x19, 0x180017029 mov r8, rcx ; +0x1c, 0x18001702c mov rcx, cs:qword_1800486C0 ; +0x1f, 0x18001702f lea edx, [r9+2] ; +0x26, 0x180017036 call cs:sqlite3_bind_text ; +0x2a, 0x18001703a mov rcx, cs:qword_1800486C0 ; +0x30, 0x180017040 mov r9d, 0FFFFFFFFh ; +0x37, 0x180017047 mov r8, rbx ; +0x3d, 0x18001704d mov [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh ; +0x40, 0x180017050 mov edi, eax ; +0x49, 0x180017059 lea edx, [r9+3] ; +0x4b, 0x18001705b call cs:sqlite3_bind_text ; +0x4f, 0x18001705f mov rcx, cs:qword_1800486C0 ; +0x55, 0x180017065 or edi, eax ; +0x5c, 0x18001706c call cs:sqlite3_step ; +0x5e, 0x18001706e mov rcx, cs:qword_1800486C0 ; +0x64, 0x180017074 or edi, eax ; +0x6b, 0x18001707b call cs:sqlite3_reset ; +0x6d, 0x18001707d or edi, eax ; +0x73, 0x180017083 jz short loc_180017098 ; +0x75, 0x180017085 cmp edi, 65h ; 'e' ; +0x77, 0x180017087 jz short loc_180017098 ; +0x7a, 0x18001708a lea rcx, aErrorInLocalst; "Error in localStorage.setItem()\n" ; +0x7c, 0x18001708c call sub_1800171C0 ; +0x83, 0x180017093 mov rbx, [rsp+38h+arg_0] ; +0x88, 0x180017098 add rsp, 30h ; +0x8d, 0x18001709d pop rdi ; +0x91, 0x1800170a1 retn ; +0x92, 0x1800170a2