Function at 0x401880
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x46e100]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x164]
call fcn.00401bb0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
je 0x4018d0
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4018d0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xffffffff
jne 0x4019ae
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
call fcn.00401c40
movzx edx, al
test edx, edx
jne 0x40198e
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
call fcn.00401c60
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00401be0
push 0x45d22c
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
lea ecx, [ebp - 0x180]
push ecx
call fcn.004026b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x164]
call fcn.00401be0
lea ecx, [ebp - 0x180]
call fcn.00401140
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
call fcn.00401ca0
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebp - 0x164]
call fcn.00401c00
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x40198c
push 0x45d22f
mov ecx, dword [ebp + 8]
call fcn.00401100
lea ecx, [ebp - 0x164]
call fcn.00401140
mov eax, dword [ebp + 8]
jmp 0x401af2
jmp 0x4019ae
push 0x45d230
mov ecx, dword [ebp + 8]
call fcn.00401100
lea ecx, [ebp - 0x164]
call fcn.00401140
mov eax, dword [ebp + 8]
jmp 0x401af2
push 0x45d234
lea eax, [ebp - 0x11c]
push eax
call fcn.00446660
add esp, 8
test eax, eax
je 0x401a91
push 0x45d238
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00446660
add esp, 8
test eax, eax
je 0x401a91
mov edx, dword [ebp - 0x148]
and edx, 0x10
je 0x401a47
lea eax, [ebp - 0x11c]
push eax
push 0x45d23c
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
lea edx, [ebp - 0x19c]
push edx
call fcn.004026b0
add esp, 0xc
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.004026b0
add esp, 0xc
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
call fcn.00401c80
lea ecx, [ebp - 0x1b8]
call fcn.00401140
lea ecx, [ebp - 0x19c]
call fcn.00401140
jmp 0x401a91
lea ecx, [ebp - 0x11c]
push ecx
push 0x45d240
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
lea eax, [ebp - 0x1d4]
push eax
call fcn.004026b0
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004026b0
add esp, 0xc
lea ecx, [ebp - 0x1d4]
call fcn.00401140
lea ecx, [ebp - 0x164]
call fcn.00401140
mov eax, dword [ebp + 8]
jmp 0x401af2
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4019ae
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
call fcn.00401c40
movzx edx, al
test edx, edx
je 0x40189c
push 0x45d242
mov ecx, dword [ebp + 8]
call fcn.00401100
lea ecx, [ebp - 0x164]
call fcn.00401140
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00446719
mov esp, ebp
pop ebp
ret