Function at 0x408fb2
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2a4
mov eax, 0x4110a0
call fcn.0040bec4
mov esi, edx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00405297
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x4090f2
push 0x41b4d4
push dword [0x41b4e4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409340
test eax, eax
je 0x4090f2
push 0x41b4ec
push dword [0x41b4fc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409340
test eax, eax
je 0x4090f2
push 0x41b51c
push dword [0x41b52c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409340
test eax, eax
je 0x4090f2
cmp dword [ebp - 0x18], 2
jb 0x4090e0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
mov dword [ebp - 0x2ac], 0x5c
cmovae eax, edx
mov dword [ebp - 0x2b0], 0x2f
movzx eax, word [eax]
cmp ax, word [ebp - 0x2ac]
je 0x4090b0
cmp ax, word [ebp - 0x2b0]
je 0x4090b0
cmp dword [ebp - 0x18], 3
jb 0x4090e0
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x4090e0
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
movzx eax, word [eax + 4]
cmp ax, word [ebp - 0x2ac]
je 0x4090d7
cmp ax, word [ebp - 0x2b0]
je 0x4090d7
jmp 0x4090e0
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
movzx eax, word [eax + 2]
cmp ax, word [ebp - 0x2ac]
je 0x4090d1
cmp ax, word [ebp - 0x2b0]
mov al, 1
jne 0x4090d3
mov al, bl
test al, al
jne 0x4090e0
cmp dword [ebp - 0x18], 0x104
jb 0x4090f2
xor dl, dl
lea ecx, [ebp - 0x28]
call fcn.00408c31
test al, al
je 0x409253
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.00405297
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x409110
mov esi, dword [esi]
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00404c2b
push 0x250
lea eax, [ebp - 0x2a8]
push ebx
push eax
call fcn.0040d300
add esp, 0xc
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ebx
push ebx
push ebx
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40920e
test byte [ebp - 0x2a8], 0x10
je 0x4091f1
xor eax, eax
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x44], 7
push eax
call fcn.00403791
mov edx, 0x416aa4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0040957e
test al, al
je 0x4091b4
mov edx, 0x417168
lea ecx, [ebp - 0x58]
call fcn.0040957e
test al, al
je 0x4091b4
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00405140
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4091f1
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4091e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409290
push edx
push ecx
call fcn.0040b923
pop ecx
pop ecx
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409157
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x409243
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40923a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409290
push edx
push ecx
call fcn.0040b923
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x409288
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40927f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409290
push edx
push ecx
call fcn.0040b923
pop ecx
pop ecx
call fcn.0040be7f
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3