{"type": "func", "start": 6443666628, "end": 6443666721, "name": "common_getenv<char>", "pseudocode": "// \n// common_getenv<char> from 0x180128cc4 to 0x180128d21 (93 bytes)\n// \n// 2 xrefs:\n// > common_getenv<char> @ 0x180128f48\n// > <???> @ 0x180202a2c\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 10:54:56 +0000\n// \n\n__int64 __fastcall common_getenv<char>(char *String2)\n{\n  __int64 v3; // rbx\n\n  if ( String2 && strnlen(String2, 0x7FFFu) < 0x7FFF )\n  {\n    sub_1801346AC(11);\n    v3 = common_getenv_nolock<char>(String2);\n    sub_180134700(11);\n    return v3;\n  }\n  else\n  {\n    *errno() = 22;\n    invalid_parameter_noinfo();\n    return 0;\n  }\n}", "assembly": "; \n; common_getenv<char> from 0x180128cc4 to 0x180128d21 (93 bytes)\n; \n; 2 xrefs:\n; > common_getenv<char> @ 0x180128f48\n; > <???> @ 0x180202a2c\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 10:54:56 +0000\n; \npush    rbx                                                            ; +0x0, 0x180128cc4\nsub     rsp, 20h                                                       ; +0x2, 0x180128cc6\nmov     rbx, rcx                                                       ; +0x6, 0x180128cca\ntest    rcx, rcx                                                       ; +0x9, 0x180128ccd\njnz     short loc_180128CEA                                            ; +0xc, 0x180128cd0\ncall    _errno                                                         ; +0xe, 0x180128cd2\nmov     dword ptr [rax], 16h                                           ; +0x13, 0x180128cd7\ncall    _invalid_parameter_noinfo                                      ; +0x19, 0x180128cdd\nxor     eax, eax                                                       ; +0x1e, 0x180128ce2\nadd     rsp, 20h                                                       ; +0x20, 0x180128ce4\npop     rbx                                                            ; +0x24, 0x180128ce8\nretn                                                                   ; +0x25, 0x180128ce9\nmov     edx, 7FFFh; MaxCount                                           ; +0x26, 0x180128cea\ncall    strnlen                                                        ; +0x2b, 0x180128cef\ncmp     rax, 7FFFh                                                     ; +0x30, 0x180128cf4\njnb     short loc_180128CD2                                            ; +0x36, 0x180128cfa\nmov     ecx, 0Bh                                                       ; +0x38, 0x180128cfc\ncall    sub_1801346AC                                                  ; +0x3d, 0x180128d01\nnop                                                                    ; +0x42, 0x180128d06\nmov     rcx, rbx; String2                                              ; +0x43, 0x180128d07\ncall    ??$common_getenv_nolock@D@@YAPEADQEBD@Z                        ; +0x46, 0x180128d0a\nmov     rbx, rax                                                       ; +0x4b, 0x180128d0f\nmov     ecx, 0Bh                                                       ; +0x4e, 0x180128d12\ncall    sub_180134700                                                  ; +0x53, 0x180128d17\nmov     rax, rbx                                                       ; +0x58, 0x180128d1c\njmp     short loc_180128CE4                                            ; +0x5b, 0x180128d1f", "xrefs": ["common_getenv<char> @ 0x180128f48", "<???> @ 0x180202a2c"], "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"}