{"type": "func", "start": 4301412928, "end": 4301413012, "name": "FileOperation::saveFile", "pseudocode": "// \n// FileOperation::saveFile from 0x100625a40 to 0x100625a94 (84 bytes)\n// \n// 0 xrefs:\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 FileOperation::saveFile()\n{\n  FILE *v0; // rax\n  FILE *v1; // rbx\n  char __filename[16]; // [rsp+0h] [rbp-20h] BYREF\n\n  __filename[1] = 0;\n  v0 = fopen(&__filename[1], \"w\");\n  v1 = v0;\n  if ( v0 )\n  {\n    fputs(\"file example\", v0);\n    fclose(v1);\n  }\n}", "assembly": "; \n; FileOperation::saveFile from 0x100625a40 to 0x100625a94 (84 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x100625a40\nmov     rbp, rsp                                                       ; +0x1, 0x100625a41\npush    rbx                                                            ; +0x4, 0x100625a44\nsub     rsp, 18h                                                       ; +0x5, 0x100625a45\nmov     word ptr [rbp+__filename], 0                                   ; +0x9, 0x100625a49\nlea     rdi, [rbp+__filename+1]; __filename                            ; +0xf, 0x100625a4f\nlea     rsi, aW_0; \"w\"                                                 ; +0x13, 0x100625a53\ncall    _fopen                                                         ; +0x1a, 0x100625a5a\nmov     rbx, rax                                                       ; +0x1f, 0x100625a5f\ntest    rax, rax                                                       ; +0x22, 0x100625a62\njz      short loc_100625A7E                                            ; +0x25, 0x100625a65\nlea     rdi, aFileExample; \"file example\"                              ; +0x27, 0x100625a67\nmov     rsi, rbx; FILE *                                               ; +0x2e, 0x100625a6e\ncall    _fputs                                                         ; +0x31, 0x100625a71\nmov     rdi, rbx; FILE *                                               ; +0x36, 0x100625a76\ncall    _fclose                                                        ; +0x39, 0x100625a79\ntest    [rbp+__filename], 1                                            ; +0x3e, 0x100625a7e\njz      short loc_100625A8D                                            ; +0x42, 0x100625a82\nmov     rdi, [rbp+__p]; __p                                            ; +0x44, 0x100625a84\ncall    __ZdlPv; operator delete(void *)                               ; +0x48, 0x100625a88\nadd     rsp, 18h                                                       ; +0x4d, 0x100625a8d\npop     rbx                                                            ; +0x51, 0x100625a91\npop     rbp                                                            ; +0x52, 0x100625a92\nretn                                                                   ; +0x53, 0x100625a93", "xrefs": [], "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"}