{"type": "func", "start": 6442545168, "end": 6442545315, "name": "localStorageSetItem", "pseudocode": "// \n// localStorageSetItem from 0x180017010 to 0x1800170a3 (147 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a9ec\n// > <???> @ 0x18004a9f8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall localStorageSetItem(const char *a1, const char *a2)\n{\n  int v3; // edi\n  int v4; // edi\n  int v5; // edi\n  int v6; // edi\n\n  v3 = sqlite3_bind_text(qword_1800486C0, 1, a1);\n  v4 = sqlite3_bind_text(qword_1800486C0, 2, a2) | v3;\n  v5 = sqlite3_step(qword_1800486C0) | v4;\n  v6 = sqlite3_reset(qword_1800486C0) | v5;\n  if ( v6 )\n  {\n    if ( v6 != 101 )\n      sub_1800171C0(\"Error in localStorage.setItem()\\n\");\n  }\n}", "assembly": "; \n; localStorageSetItem from 0x180017010 to 0x1800170a3 (147 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a9ec\n; > <???> @ 0x18004a9f8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180017010\npush    rdi                                                            ; +0x5, 0x180017015\nsub     rsp, 30h                                                       ; +0x6, 0x180017016\nmov     r9d, 0FFFFFFFFh                                                ; +0xa, 0x18001701a\nmov     [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh                           ; +0x10, 0x180017020\nmov     rbx, rdx                                                       ; +0x19, 0x180017029\nmov     r8, rcx                                                        ; +0x1c, 0x18001702c\nmov     rcx, cs:qword_1800486C0                                        ; +0x1f, 0x18001702f\nlea     edx, [r9+2]                                                    ; +0x26, 0x180017036\ncall    cs:sqlite3_bind_text                                           ; +0x2a, 0x18001703a\nmov     rcx, cs:qword_1800486C0                                        ; +0x30, 0x180017040\nmov     r9d, 0FFFFFFFFh                                                ; +0x37, 0x180017047\nmov     r8, rbx                                                        ; +0x3d, 0x18001704d\nmov     [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh                           ; +0x40, 0x180017050\nmov     edi, eax                                                       ; +0x49, 0x180017059\nlea     edx, [r9+3]                                                    ; +0x4b, 0x18001705b\ncall    cs:sqlite3_bind_text                                           ; +0x4f, 0x18001705f\nmov     rcx, cs:qword_1800486C0                                        ; +0x55, 0x180017065\nor      edi, eax                                                       ; +0x5c, 0x18001706c\ncall    cs:sqlite3_step                                                ; +0x5e, 0x18001706e\nmov     rcx, cs:qword_1800486C0                                        ; +0x64, 0x180017074\nor      edi, eax                                                       ; +0x6b, 0x18001707b\ncall    cs:sqlite3_reset                                               ; +0x6d, 0x18001707d\nor      edi, eax                                                       ; +0x73, 0x180017083\njz      short loc_180017098                                            ; +0x75, 0x180017085\ncmp     edi, 65h ; 'e'                                                 ; +0x77, 0x180017087\njz      short loc_180017098                                            ; +0x7a, 0x18001708a\nlea     rcx, aErrorInLocalst; \"Error in localStorage.setItem()\\n\"      ; +0x7c, 0x18001708c\ncall    sub_1800171C0                                                  ; +0x83, 0x180017093\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x88, 0x180017098\nadd     rsp, 30h                                                       ; +0x8d, 0x18001709d\npop     rdi                                                            ; +0x91, 0x1800170a1\nretn                                                                   ; +0x92, 0x1800170a2", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x18004a9ec", "<???> @ 0x18004a9f8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}