Function at 0x412ae0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ac
mov eax, dword [0x4310b4]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
xor eax, eax
mov dword [esp + 4], ecx
xor ecx, ecx
mov dword [esp + 0x18], eax
mov word [esp + 0x20], ax
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ecx
lea edi, [esp + 0x4a]
mov dword [esp + 0x14], ecx
mov esi, 0x104
mov dword [esp + 0x18], ecx
inc ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2a], ecx
mov dword [esp + 0x2e], ecx
mov dword [esp + 0x32], ecx
mov dword [esp + 0x36], ecx
mov dword [esp + 0x3a], ecx
mov dword [esp + 0x3e], ecx
mov dword [esp + 0x42], ecx
mov dword [esp + 0x46], ecx
stosd dword es:[edi], eax
push esi
push ecx
mov dword [esp + 0x290], ecx
stosd dword es:[edi], eax
mov byte [esp + 0x294], bl
mov dword [esp + 0x298], esi
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x60], ecx
lea edi, [esp + 0x7c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov byte [esp + 0x6c], cl
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x88]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [esp + 0x8c]
add esp, 0xc
cmp byte [esp + 0x28c], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.0040d300
xor edi, edi
test eax, eax
js 0x412cfc
mov esi, dword [0x4397f0]
mov eax, 0x104
push eax
mov dword [esp + 0x4ac], eax
lea eax, [esp + 0x29c]
push edi
push eax
mov dword [esp + 0x20], 6
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], 0x8000
mov dword [esp + 0x64], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x4ac], edi
mov byte [esp + 0x4b0], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push edi
push 0x402640
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
push eax
lea ecx, [esp + 0x29c]
call fcn.0040d300
test eax, eax
js 0x412ce6
mov eax, dword [esp + 0x4a0]
test eax, eax
jne 0x412c4e
lea eax, [esp + 0x298]
push dword [esp + 0x4a8]
push eax
push 0x402640
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x422390
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.0040844e
cmp eax, ebx
je 0x412ce6
mov eax, dword [esp + 0x10]
test al, 0x40
je 0x412c8b
and eax, 0xfffb79fb
mov dword [esp + 0x10], eax
test eax, 0x400
jne 0x4223c5
mov ecx, dword [esp + 0x288]
test ecx, ecx
je 0x4223d3
mov edx, dword [esp + 0x290]
push edi
call fcn.004083c5
cmp dword [esp + 0x58], edi
je 0x4223df
lea ecx, [esp + 0x10]
call fcn.004111f3
mov ebx, eax
mov eax, dword [esp + 0x288]
test eax, eax
je 0x412d2d
push dword [esp + 0x290]
push eax
call fcn.00412226
mov ecx, esi
call fcn.0041173f
mov eax, dword [esp + 0x4a0]
mov dword [esp + 0x4a0], edi
test eax, eax
jne 0x42240f
mov eax, dword [esp + 0x288]
mov dword [esp + 0x288], edi
test eax, eax
je 0x412d16
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [esp + 0x4b4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417b90
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x80]
jmp 0x412cd2
mov ecx, dword [esp + 0x4a0]
test ecx, ecx
jne 0x4223a2
lea ecx, [esp + 0x298]
lea edx, [esp + 0x10]
call fcn.0040844e
cmp eax, ebx
jne 0x412c69
push edi
push 0x2377
call fcn.004128ff
pop ecx
pop ecx
jmp 0x412c69
and eax, 0xfffffdbb
mov dword [esp + 0x10], eax
jmp 0x412c96
lea ecx, [esp + 0x80]
jmp 0x412ca5
mov ecx, dword [esp + 0x288]
mov dword [esp + 0x58], ebx
test ecx, ecx
jne 0x4223f5
lea ecx, [esp + 0x80]
call fcn.004100ca
mov dword [esp + 0x5c], eax
mov byte [esp + 0x64], bl
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], edi
jmp 0x412cbc
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x412cfc