Function at 0x4287a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d18fe
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x52de08]
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 dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00408bd0
mov byte [ebp - 4], 1
mov esi, dword [esi]
push 0x104
push 0x104
lea ecx, [ebp - 0x220]
call fcn.004072b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.00406e30
push 1
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.00421f80
test al, al
je 0x428a3e
lea ecx, [ebp - 0x234]
push ecx
mov ecx, ebx
call fcn.00409c10
mov byte [ebp - 4], 2
jmp 0x428850
xor esi, esi
cmp dword [ebp - 0x230], esi
je 0x428ae3
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x234]
call fcn.00409ad0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24c]
push eax
call fcn.004746a0
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x224]
call fcn.00408280
test eax, eax
sete bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00406650
test bl, bl
je 0x428a9e
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00427490
mov dword [ebp - 0x250], esi
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x248], edx
jmp 0x4288f0
cmp esi, dword [ebp - 0x248]
jge 0x428a8f
test esi, esi
js 0x428a7e
cmp esi, dword [ebp - 0x238]
jge 0x428a7e
mov eax, dword [ebp - 0x240]
lea eax, [eax + esi*4]
push eax
lea ecx, [ebp - 0x228]
call fcn.004071a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x254]
push ecx
call fcn.00474ec0
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x228]
call fcn.00408280
test eax, eax
sete bl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x254]
call fcn.00406650
test bl, bl
je 0x428a63
cmp esi, dword [ebp - 0x238]
jge 0x428a7e
mov edx, dword [ebp - 0x23c]
lea eax, [edx + esi*4]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004071a0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00421f00
add esp, 8
mov edx, dword [ebp - 0x22c]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00409830
mov byte [ebp - 4], 9
push 0
lea edx, [ebp - 0x244]
push edx
mov ecx, edi
call fcn.00421f80
test al, al
sete bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x244]
call fcn.00406650
test bl, bl
je 0x428a54
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x22c]
call fcn.00406650
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call fcn.00406650
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x240]
call fcn.004102a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00406650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00408210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00406650
mov al, 1
jmp 0x428b03
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x22c]
call fcn.00406650
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call fcn.00406650
inc esi
mov dword [ebp - 0x250], esi
jmp 0x4288f0
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x240]
call fcn.004102a0
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00409dd0
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x234]
call fcn.00408940
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x25c]
call fcn.00408210
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00406650
jmp 0x428850
lea ecx, [ebp + 8]
push ecx
lea ecx, [edi + 0x10]
call fcn.0040dd60
jmp 0x428a2f
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.004aaa9b
mov esp, ebp
pop ebp
ret 0xc