Function at 0x403650
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e90f
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x473018]
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 - 0x50], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], edi
xor eax, eax
mov dword [ebp - 0x48], 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 dword [ebp - 0x48], 1
cmp dword [edi + 0x14], 0x3e8
jae 0x4036e0
mov esi, dword [edi + 0x10]
mov eax, 0x3e8
push dword [ebp - 0x54]
sub eax, esi
push eax
call fcn.004042c0
mov dword [edi + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edx, eax
mov esi, edx
mov dword [ebp - 0x4c], edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4036f0
sub esi, ecx
sar esi, 1
je 0x403915
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 - 0x44], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403730
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00404580
mov dword [ebp - 4], 2
xor eax, eax
or dword [ebp - 0x48], 2
xorps xmm0, xmm0
cmp dword [ebp - 0x2c], 8
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 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 0x4037d6
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00403ec0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x44]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae 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.00403ec0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x403814
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40380a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403932
push ecx
push edx
call fcn.004332cf
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], 8
mov eax, dword [edi + 0x10]
cmovae 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 - 0x58], ecx
cmp edx, eax
ja 0x403887
cmp dword [edi + 0x14], 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x44], edi
lea eax, [ecx + edx]
mov dword [ebp - 0x50], eax
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x403866
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x58]
push ecx
call fcn.00434750
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x403894
push edx
push ecx
push dword [ebp - 0x54]
mov ecx, edi
push edx
call fcn.00404400
mov edx, dword [ebp - 0x4c]
and dword [ebp - 0x48], 0xfffffffd
lea edx, [edx + esi*2]
add edx, 2
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4038e1
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4038d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403932
push ecx
push edx
call fcn.004332cf
mov edx, dword [ebp - 0x4c]
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 0x403900
sub esi, ecx
sar esi, 1
jne 0x403710
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.00432e76
mov esp, ebp
pop ebp
ret
call fcn.0043c8de
int3