Function at 0x472c60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8684
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push dword [ebp + 0x10]
lea edi, [ebp - 0x40]
mov dword [ebp - 4], 0
push edi
lea edi, [ebp - 0x38]
mov dword [ebp - 0x40], 0
push edi
push eax
call fcn.00472b90
add esp, 0x10
test al, al
jne 0x472cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov ebx, eax
call fcn.0041c720
jmp 0x472f62
mov eax, dword [ebp - 0x40]
cmp eax, 1
je 0x472cfc
cmp eax, 2
jne 0x472d09
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub ebx, ecx
test bl, 1
je 0x472d1b
lea ecx, [ebp - 0x38]
mov ebx, 0xd
call fcn.0041c720
jmp 0x472f62
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, ebx
mov byte [ebp - 4], 1
shr eax, 1
jne 0x472d45
xor edx, edx
mov dword [ebp - 0x1c], eax
mov word [ebp + eax*2 - 0x2c], dx
jmp 0x472d53
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00418330
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x472d73
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call fcn.004a53c0
mov edi, dword [ebp - 0x1c]
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x2c]
push 1
push eax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
push eax
call fcn.004157f0
cmp eax, 0xffffffff
je 0x472db1
lea ecx, [ebp - 0x2c]
cmp eax, edi
ja 0x472da7
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x1c], eax
cmovae ecx, dword [ebp - 0x2c]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x472db1
push 0
sub eax, edi
push eax
call fcn.00418330
cmp dword [ebp - 0x40], 2
jne 0x472eeb
xor edx, edx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edx
mov word [ebp - 0x58], cx
mov byte [ebp - 4], 2
cmp eax, 8
lea ecx, [ebp - 0x58]
push edx
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jbe 0x472e0c
sub eax, ecx
lea ecx, [ebp - 0x58]
push 0
push eax
call fcn.00418330
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
jmp 0x472dd2
test eax, eax
jne 0x472e77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x472e2d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00414120
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x472e56
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00414120
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0041c720
jmp 0x472f62
lea edx, [eax - 1]
cmp edx, ecx
ja 0x472e94
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], edx
cmovae eax, dword [ebp - 0x58]
xor ecx, ecx
mov word [eax + edx*2], cx
jmp 0x472ea1
sub edx, ecx
lea ecx, [ebp - 0x58]
push 0
push edx
call fcn.00418330
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x472eb6
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00414120
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1c], 0
push eax
call fcn.00413a50
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x472eeb
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00414120
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x472f2f
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x472f05
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00414120
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x472f1d
mov eax, dword [esi]
jmp 0x472f1f
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00413a50
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x472f44
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00414120
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0041c720
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
ret