Function at 0x4037f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45051f
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x5c], edi
xor eax, eax
mov dword [ebp - 0x54], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov eax, 1
mov dword [ebp - 0x54], eax
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], esi
cmp esi, 0x3e8
jae 0x40393c
mov edx, dword [edi + 0x10]
mov ecx, 0x3e8
mov eax, 0x7ffffffe
mov dword [ebp - 0x48], edx
sub ecx, edx
sub eax, edx
cmp eax, ecx
jb 0x403ba2
mov eax, esi
mov ecx, 0x7ffffffe
shr eax, 1
sub ecx, eax
cmp esi, ecx
jbe 0x4038a9
mov ecx, 0x7ffffffe
jmp 0x4038b5
add eax, esi
mov ecx, 0x3ef
cmp eax, ecx
cmova ecx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ecx
push eax
push edi
call fcn.00404840
mov ecx, eax
mov dword [edi + 0x10], 0x3e8
mov eax, dword [ebp - 0x44]
add esp, 8
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
lea eax, [eax*2 + 2]
push eax
cmp esi, 7
jbe 0x403927
mov esi, dword [edi]
push esi
push ecx
call fcn.00436180
mov eax, dword [ebp - 0x58]
add esp, 0xc
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x40391b
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x403ba7
mov esi, edx
push ecx
push esi
call fcn.00434ce3
add esp, 8
jmp 0x403931
push edi
push ecx
call fcn.00436180
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov dword [edi], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edx, eax
mov dword [ebp - 0x48], eax
mov esi, edx
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x403950
sub esi, ecx
sar esi, 1
je 0x403b85
nop word [eax + eax]
mov ecx, edx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x4c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403990
sub ecx, dword [ebp - 0x4c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00404650
mov dword [ebp - 4], 2
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x50]
or eax, 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x2c], 7
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push 0
push 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x403a3e
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00404160
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
push dword [ebp - 0x44]
cmova ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
push ecx
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push 0
dec eax
push eax
call fcn.00404160
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x403a7c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403a72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ba7
push ecx
push edx
call fcn.00434ce3
add esp, 8
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
inc edx
cmp dword [ebp - 0x14], 7
mov eax, dword [edi + 0x10]
cmova ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x4c], ecx
cmp edx, eax
ja 0x403aef
cmp dword [edi + 0x14], 7
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x44], edi
lea eax, [ecx + edx]
mov dword [ebp - 0x58], eax
mov dword [edi + 0x10], eax
mov eax, edi
jbe 0x403ace
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x4c]
push ecx
call fcn.00436180
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x403afc
push edx
push ecx
push dword [ebp - 0x5c]
mov ecx, edi
push edx
call fcn.00404520
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
and eax, 0xfffffffd
mov dword [ebp - 0x50], eax
lea edx, [edx + esi*2]
mov dword [ebp - 0x54], eax
add edx, 2
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x403b51
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ba7
push ecx
push edx
call fcn.00434ce3
mov edx, dword [ebp - 0x48]
add esp, 8
mov esi, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x403b70
sub esi, ecx
sar esi, 1
jne 0x403970
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043488a
mov esp, ebp
pop ebp
ret
call fcn.00402e30
call fcn.0043e33e
int3