{"type": "func", "start": 6442544992, "end": 6442545145, "name": "localStorageSetItem", "pseudocode": "// \n// localStorageSetItem from 0x180016f60 to 0x180016ff9 (153 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c944\n// > <???> @ 0x18004c950\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:42 +0000\n// \n\nvoid __fastcall localStorageSetItem(const char *a1, const char *a2)\n{\n  int v3; // edi\n  int v4; // edi\n  int v5; // eax\n\n  v3 = sqlite3_bind_text(qword_18004A668, 1, a1, 0xFFFFFFFFLL, -1);\n  LODWORD(a2) = v3 | sqlite3_bind_text(qword_18004A668, 2, a2, 0xFFFFFFFFLL, -1);\n  v4 = (unsigned int)a2 | sqlite3_step(qword_18004A668);\n  v5 = v4 | sqlite3_reset(qword_18004A668);\n  if ( v5 )\n  {\n    if ( v5 != 101 )\n      sub_180017110(\"Error in localStorage.setItem()\\n\");\n  }\n}", "assembly": "; \n; localStorageSetItem from 0x180016f60 to 0x180016ff9 (153 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c944\n; > <???> @ 0x18004c950\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:42 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180016f60\npush    rdi                                                            ; +0x5, 0x180016f65\nsub     rsp, 30h                                                       ; +0x6, 0x180016f66\nmov     rbx, rdx                                                       ; +0xa, 0x180016f6a\nmov     [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh                           ; +0xd, 0x180016f6d\nmov     r8, rcx                                                        ; +0x16, 0x180016f76\nmov     edx, 1                                                         ; +0x19, 0x180016f79\nmov     rcx, cs:qword_18004A668                                        ; +0x1e, 0x180016f7e\nmov     r9d, 0FFFFFFFFh                                                ; +0x25, 0x180016f85\ncall    cs:sqlite3_bind_text                                           ; +0x2b, 0x180016f8b\nmov     rcx, cs:qword_18004A668                                        ; +0x31, 0x180016f91\nmov     r9d, 0FFFFFFFFh                                                ; +0x38, 0x180016f98\nmov     r8, rbx                                                        ; +0x3e, 0x180016f9e\nmov     [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh                           ; +0x41, 0x180016fa1\nmov     edx, 2                                                         ; +0x4a, 0x180016faa\nmov     edi, eax                                                       ; +0x4f, 0x180016faf\ncall    cs:sqlite3_bind_text                                           ; +0x51, 0x180016fb1\nmov     rcx, cs:qword_18004A668                                        ; +0x57, 0x180016fb7\nmov     ebx, eax                                                       ; +0x5e, 0x180016fbe\nor      ebx, edi                                                       ; +0x60, 0x180016fc0\ncall    cs:sqlite3_step                                                ; +0x62, 0x180016fc2\nmov     rcx, cs:qword_18004A668                                        ; +0x68, 0x180016fc8\nmov     edi, eax                                                       ; +0x6f, 0x180016fcf\nor      edi, ebx                                                       ; +0x71, 0x180016fd1\ncall    cs:sqlite3_reset                                               ; +0x73, 0x180016fd3\nor      eax, edi                                                       ; +0x79, 0x180016fd9\njz      short loc_180016FEE                                            ; +0x7b, 0x180016fdb\ncmp     eax, 65h ; 'e'                                                 ; +0x7d, 0x180016fdd\njz      short loc_180016FEE                                            ; +0x80, 0x180016fe0\nlea     rcx, aErrorInLocalst; \"Error in localStorage.setItem()\\n\"      ; +0x82, 0x180016fe2\ncall    sub_180017110                                                  ; +0x89, 0x180016fe9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8e, 0x180016fee\nadd     rsp, 30h                                                       ; +0x93, 0x180016ff3\npop     rdi                                                            ; +0x97, 0x180016ff7\nretn                                                                   ; +0x98, 0x180016ff8", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004c944", "<???> @ 0x18004c950"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}