; ; initialize_environment_by_cloning_nolock from 0x1801321ac to 0x18013227d (209 bytes) ; ; 2 xrefs: ; > unknown_libname_64 @ 0x180132392 ; > @ 0x180202fa8 ; ; 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, 0x1801321ac mov [rsp+arg_8], rsi ; +0x5, 0x1801321b1 push rdi ; +0xa, 0x1801321b6 sub rsp, 40h ; +0xb, 0x1801321b7 mov rdi, cs:qword_1801F4D00 ; +0xf, 0x1801321bb test rdi, rdi ; +0x16, 0x1801321c2 jnz loc_18013225F ; +0x19, 0x1801321c5 or eax, 0FFFFFFFFh ; +0x1f, 0x1801321cb mov rbx, [rsp+48h+arg_0] ; +0x22, 0x1801321ce mov rsi, [rsp+48h+arg_8] ; +0x27, 0x1801321d3 add rsp, 40h ; +0x2c, 0x1801321d8 pop rdi ; +0x30, 0x1801321dc retn ; +0x31, 0x1801321dd and [rsp+48h+var_10], 0 ; +0x32, 0x1801321de or r9d, 0FFFFFFFFh ; +0x38, 0x1801321e4 and [rsp+48h+var_18], 0 ; +0x3c, 0x1801321e8 mov r8, rax ; +0x42, 0x1801321ee and [rsp+48h+var_20], 0 ; +0x45, 0x1801321f1 xor edx, edx ; +0x4a, 0x1801321f6 and [rsp+48h+var_28], 0 ; +0x4c, 0x1801321f8 xor ecx, ecx ; +0x52, 0x1801321fe call __acrt_WideCharToMultiByte ; +0x54, 0x180132200 movsxd rsi, eax ; +0x59, 0x180132205 test eax, eax ; +0x5c, 0x180132208 jz short loc_1801321CB ; +0x5e, 0x18013220a mov edx, 1; Size ; +0x60, 0x18013220c mov rcx, rsi; Count ; +0x65, 0x180132211 call _calloc_base ; +0x68, 0x180132214 mov rbx, rax ; +0x6d, 0x180132219 test rax, rax ; +0x70, 0x18013221c jz short loc_180132270 ; +0x73, 0x18013221f and [rsp+48h+var_10], 0 ; +0x75, 0x180132221 or r9d, 0FFFFFFFFh ; +0x7b, 0x180132227 and [rsp+48h+var_18], 0 ; +0x7f, 0x18013222b xor edx, edx ; +0x85, 0x180132231 mov r8, [rdi] ; +0x87, 0x180132233 xor ecx, ecx ; +0x8a, 0x180132236 mov [rsp+48h+var_20], esi ; +0x8c, 0x180132238 mov [rsp+48h+var_28], rax ; +0x90, 0x18013223c call __acrt_WideCharToMultiByte ; +0x95, 0x180132241 test eax, eax ; +0x9a, 0x180132246 jz short loc_180132270 ; +0x9c, 0x180132248 xor edx, edx ; +0x9e, 0x18013224a mov rcx, rbx; Block ; +0xa0, 0x18013224c call j_??$common_set_variable_in_environment_nolock@D@@YAHQEADH@Z ; +0xa3, 0x18013224f xor ecx, ecx; Block ; +0xa8, 0x180132254 call _free_base ; +0xaa, 0x180132256 add rdi, 8 ; +0xaf, 0x18013225b mov rax, [rdi] ; +0xb3, 0x18013225f test rax, rax ; +0xb6, 0x180132262 jnz loc_1801321DE ; +0xb9, 0x180132265 jmp loc_1801321CE ; +0xbf, 0x18013226b mov rcx, rbx; Block ; +0xc4, 0x180132270 call _free_base ; +0xc7, 0x180132273 jmp loc_1801321CB ; +0xcc, 0x180132278