Function at 0x402080
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x50d8f6
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.004d8c90
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x1238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0x1250]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1264]
mov ebp, dword [esp + 0x1260]
mov ebx, esi
lea edi, [esp + 0x134]
call fcn.004024a0
mov ebx, ebp
lea edi, [esp + 0x1c]
mov dword [esp + 0x1258], 0
call fcn.004024a0
mov al, 1
push 0x54c648
push esi
mov byte [esp + 0x1260], al
mov byte [esp + 0x23], al
call fcn.004cd198
add esp, 8
test eax, eax
je 0x40215e
cmp byte [esp + 0x12e], 0
jne 0x402132
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x402132
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x246], 0
jne 0x402157
mov eax, dword [esp + 0x240]
lea edx, [esp + 0x138]
cmp eax, edx
je 0x402157
push eax
call fcn.004ccef0
add esp, 4
xor al, al
jmp 0x402330
mov eax, 0x4000
test word [0x54c64e], ax
je 0x4022cc
lea ecx, [esp + 0x1c]
call fcn.004016a0
test al, al
jne 0x4021a8
push 0
lea ecx, [esp + 0x20]
call fcn.00401a90
test al, al
jne 0x4021a8
lea eax, [esp + 0x1c]
call fcn.004014a0
lea eax, [esp + 0x134]
call fcn.004014a0
xor al, al
jmp 0x402330
push esi
push str._s.
lea edx, [esp + 0x254]
call fcn.004023a0
add esp, 8
push 0x54c3f8
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4022e5
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x521374
mov eax, 0x54c424
jmp 0x4021f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402216
test dx, dx
je 0x402212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402216
add eax, 4
add ecx, 4
test dx, dx
jne 0x4021f0
xor eax, eax
jmp 0x40221b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4022b3
mov ecx, 0x521378
mov eax, 0x54c424
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402256
test dx, dx
je 0x402252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402256
add eax, 4
add ecx, 4
test dx, dx
jne 0x402230
xor eax, eax
jmp 0x40225b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4022b3
push 0x54c424
push esi
push 0x5213b4
lea edx, [esp + 0x258]
call fcn.004023a0
add esp, 0xc
push 0x54c424
push ebp
push 0x5213b4
lea edx, [esp + 0xa58]
call fcn.004023a0
add esp, 0xc
lea edx, [esp + 0x24c]
push edx
lea eax, [esp + 0xa50]
push eax
call fcn.00402080
add esp, 8
test al, al
jne 0x4022b3
mov byte [esp + 0x1b], al
push 0x54c3f8
push edi
call ebx
test eax, eax
jne 0x4021e1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4022e5
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401c10
test al, al
jne 0x4022e5
mov byte [esp + 0x1b], al
cmp byte [esp + 0x12e], 0
jne 0x402307
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x402307
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x246], 0
jne 0x40232c
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x138]
cmp eax, ecx
je 0x40232c
push eax
call fcn.004ccef0
add esp, 4
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x1250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1238]
xor ecx, esp
call fcn.004ccee1
add esp, 0x1248
ret