Function at 0x403751
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4531c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x10]
call fcn.004013d0
mov dword [ebp - 4], 0
push 0
push 0x46b270
mov ecx, dword [ebp + 0xc]
call fcn.00432705
cmp eax, 0xffffffff
je 0x4037cf
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x180]
call fcn.00403429
test eax, eax
jne 0x4037cf
push 0
push 0
push 0x46b274
mov ecx, dword [ebp + 0xc]
call fcn.00432705
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0043bf14
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043ba9b
push 0x46b278
push 1
lea edx, [ebp - 0x16c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0043258b
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.00404590
mov byte [ebp - 0x168], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x16c]
call fcn.0043b962
mov edx, dword [ebp - 0x168]
and edx, 0xff
test edx, edx
je 0x403845
push 0x46b27c
lea ecx, [ebp - 0x10]
call fcn.0043bd3e
push 0x46b280
lea ecx, [ebp - 0x10]
call fcn.0043bd3e
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x10]
call fcn.004013f0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x4038bd
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x180]
call fcn.00403b04
test eax, eax
je 0x403899
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x180]
call fcn.00403b22
mov dword [ebp - 0x170], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043b962
mov eax, dword [ebp - 0x170]
jmp 0x403a6a
mov eax, dword [ebp - 0x150]
and eax, 0x10
test eax, eax
je 0x403a20
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.0043b9d0
mov byte [ebp - 4], 2
push 0x46b284
lea edx, [ebp - 0x15c]
push edx
call fcn.00404590
and eax, 0xff
test eax, eax
je 0x403a11
push 0x46b288
lea eax, [ebp - 0x15c]
push eax
call fcn.00404590
and eax, 0xff
test eax, eax
je 0x403a11
push 0xffff0003
mov ecx, dword [ebp + 8]
push ecx
push 6
push 5
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x180]
call fcn.00404620
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x160]
call fcn.0043b6d7
mov byte [ebp - 4], 3
push 0x46b28c
push 1
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x160]
call fcn.0043258b
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x190]
push eax
call fcn.00404590
mov byte [ebp - 0x174], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x178]
call fcn.0043b962
mov ecx, dword [ebp - 0x174]
and ecx, 0xff
test ecx, ecx
je 0x4039c8
push 0x46b290
lea ecx, [ebp - 0x160]
call fcn.0043bd3e
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x160]
call fcn.0043bd3e
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x164]
push ecx
mov ecx, dword [ebp - 0x180]
call fcn.00403a7a
mov edx, dword [ebp - 0x158]
add edx, 1
mov dword [ebp - 0x158], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
call fcn.0043b962
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.0043b962
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4038bd
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043b962
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8