Function at 0x4031a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456947
mov eax, dword fs:[0]
push eax
sub esp, 0x730
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x711], 0
lea eax, [ebp - 0x710]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403d00
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x720], eax
cmp dword [ebp - 0x720], 0xffffffff
je 0x403203
mov dword [ebp - 0x71c], 1
jmp 0x40320d
mov dword [ebp - 0x71c], 0
mov ecx, dword [ebp - 0x71c]
mov dword [ebp - 0x724], ecx
mov edx, dword [ebp - 0x720]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.00403cb0
movzx eax, al
test eax, eax
jne 0x40323e
cmp dword [ebp - 0x724], 0
jne 0x403249
mov al, byte [ebp - 0x711]
jmp 0x4034b0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403d00
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x248]
call fcn.00403fa0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4c0]
push edx
push 0x468044
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403d50
mov ecx, eax
call fcn.00403d80
mov ecx, eax
call fcn.00403d00
push eax
call fcn.0043a4b2
add esp, 8
mov dword [ebp - 0x718], eax
cmp dword [ebp - 0x718], 0xffffffff
je 0x403485
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x49c]
cmp eax, 0x2e
jne 0x4032eb
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0x49c]
test edx, edx
je 0x403458
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x49c]
cmp edx, 0x2e
jne 0x403319
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x49c]
cmp ecx, 0x2e
je 0x403458
push 0x46804c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.00409de0
add esp, 0xc
mov dword [ebp - 0x728], eax
mov ecx, dword [ebp - 0x728]
mov dword [ebp - 0x72c], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x49c]
push edx
mov eax, dword [ebp - 0x72c]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.00409eb0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.00403dd0
lea edx, [ebp - 0x230]
push edx
call fcn.00403100
add esp, 4
movzx eax, al
test eax, eax
je 0x40343a
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x290]
push edx
call fcn.00409f30
add esp, 0xc
mov dword [ebp - 0x730], eax
mov eax, dword [ebp - 0x730]
mov dword [ebp - 0x734], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x49c]
push ecx
mov edx, dword [ebp - 0x734]
push edx
lea eax, [ebp - 0x278]
push eax
call fcn.00409eb0
add esp, 0xc
mov dword [ebp - 0x738], eax
mov ecx, dword [ebp - 0x738]
mov dword [ebp - 0x73c], ecx
mov byte [ebp - 4], 5
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x73c]
push ecx
call fcn.004031a0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.00403dd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x290]
call fcn.00403dd0
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x403438
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403a20
jmp 0x403449
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403a20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00403dd0
lea edx, [ebp - 0x4c0]
push edx
mov eax, dword [ebp - 0x718]
push eax
call fcn.0043a4bd
add esp, 8
test eax, eax
je 0x4032be
mov ecx, dword [ebp - 0x718]
push ecx
call fcn.0043a48c
add esp, 4
mov byte [ebp - 0x711], 1
mov dl, byte [ebp - 0x711]
mov byte [ebp - 0x712], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00403dd0
mov al, byte [ebp - 0x712]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret