Function at 0x408ae0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539de3
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.0040b120
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x408b2a
mov dword [ebp - 0x18], 1
jmp 0x408b31
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.0040b6d0
movzx eax, al
test eax, eax
jne 0x408b56
cmp dword [ebp - 0x20], 0
jne 0x408b5e
mov al, byte [ebp - 0xd]
jmp 0x408d6b
push 0x104
lea ecx, [ebp - 0x4e8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b120
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x68]
call fcn.00406f00
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2e0]
push edx
push 0x53d554
lea eax, [ebp - 0x4e8]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040b020
mov ecx, eax
call fcn.0040ae40
mov ecx, eax
call fcn.0040b120
push eax
call fcn.0051a676
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x408d4f
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x2bc]
cmp eax, 0x2e
jne 0x408bf4
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0x2bc]
test edx, edx
je 0x408d28
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x2bc]
cmp edx, 0x2e
jne 0x408c22
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x2bc]
cmp ecx, 0x2e
je 0x408d28
lea edx, [ebp - 0x2bc]
push edx
push 0x53d55c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00405220
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.004051e0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.00407a00
lea edx, [ebp - 0x50]
push edx
call fcn.00408db0
add esp, 4
movzx eax, al
test eax, eax
je 0x408d10
movzx ecx, byte [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2bc]
push eax
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.004052b0
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x98]
push edx
call fcn.004051e0
add esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00408ae0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.00407a00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.00407a00
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x408d0e
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040c470
jmp 0x408d1c
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040c470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00407a00
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0051a681
add esp, 8
test eax, eax
je 0x408bc7
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0051a650
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.00407a00
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret