Function at 0x403810
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47052e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x72c
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x738]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404370
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40385a
mov dword [ebp - 0x18], 1
jmp 0x403861
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.00404320
movzx eax, al
test eax, eax
jne 0x403886
cmp dword [ebp - 0x20], 0
jne 0x40388e
mov al, byte [ebp - 0xd]
jmp 0x403a9b
push 0x104
lea ecx, [ebp - 0x4e8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404370
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x68]
call fcn.004046a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2e0]
push edx
push 0x483234
lea eax, [ebp - 0x4e8]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404420
mov ecx, eax
call fcn.00404450
mov ecx, eax
call fcn.00404370
push eax
call fcn.004539e2
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x403a7f
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x2bc]
cmp eax, 0x2e
jne 0x403924
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0x2bc]
test edx, edx
je 0x403a58
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x2bc]
cmp edx, 0x2e
jne 0x403952
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x2bc]
cmp ecx, 0x2e
je 0x403a58
push 0x48323c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0040b210
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2bc]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.0040b2c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.00404510
lea edx, [ebp - 0x50]
push edx
call fcn.004032c0
add esp, 4
movzx eax, al
test eax, eax
je 0x403a40
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.0040b340
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2bc]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.0040b2c0
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 5
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00403810
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.00404510
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.00404510
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x403a3e
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403fc0
jmp 0x403a4c
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00404510
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004539ed
add esp, 8
test eax, eax
je 0x4038f7
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004539bc
add esp, 4
mov byte [ebp - 0xd], 1
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00404510
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret