Function at 0x426da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51af0e
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x587978]
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.00406f90
mov byte [ebp - 4], 1
mov esi, dword [esi]
push 0x104
push 0x104
lea ecx, [ebp - 0x220]
call fcn.00407250
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.00406d90
push 1
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.0041dbc0
test al, al
je 0x42703e
lea ecx, [ebp - 0x234]
push ecx
mov ecx, ebx
call fcn.004099e0
mov byte [ebp - 4], 2
jmp 0x426e50
xor esi, esi
cmp dword [ebp - 0x230], esi
je 0x4270e3
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x234]
call fcn.004098a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24c]
push eax
call fcn.004745e0
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x224]
call fcn.00408270
test eax, eax
sete bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.004064c0
test bl, bl
je 0x42709e
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.00425840
mov dword [ebp - 0x250], esi
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x248], edx
jmp 0x426ef0
cmp esi, dword [ebp - 0x248]
jge 0x42708f
test esi, esi
js 0x42707e
cmp esi, dword [ebp - 0x238]
jge 0x42707e
mov eax, dword [ebp - 0x240]
lea eax, [eax + esi*4]
push eax
lea ecx, [ebp - 0x228]
call fcn.00407140
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x254]
push ecx
call fcn.00474e00
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x228]
call fcn.00408270
test eax, eax
sete bl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x254]
call fcn.004064c0
test bl, bl
je 0x427063
cmp esi, dword [ebp - 0x238]
jge 0x42707e
mov edx, dword [ebp - 0x23c]
lea eax, [edx + esi*4]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00407140
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0041da50
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.004095e0
mov byte [ebp - 4], 9
push 0
lea edx, [ebp - 0x244]
push edx
mov ecx, edi
call fcn.0041dbc0
test al, al
sete bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x244]
call fcn.004064c0
test bl, bl
je 0x427054
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x22c]
call fcn.004064c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call fcn.004064c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x240]
call fcn.0041ea00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.004064c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.004081b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.004064c0
mov al, 1
jmp 0x427103
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x22c]
call fcn.004064c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call fcn.004064c0
inc esi
mov dword [ebp - 0x250], esi
jmp 0x426ef0
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.0041ea00
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00409ba0
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x234]
call fcn.00408920
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x25c]
call fcn.004081b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.004064c0
jmp 0x426e50
lea ecx, [ebp + 8]
push ecx
lea ecx, [edi + 0x10]
call fcn.0040d560
jmp 0x42702f
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.004eaf3b
mov esp, ebp
pop ebp
ret 0xc