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

Disassembly:
push 0xffffffffffffffff
push 0x50c376
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.004d75e0
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x1238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f5a0]
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.004024b0
mov ebx, ebp
lea edi, [esp + 0x1c]
mov dword [esp + 0x1258], 0
call fcn.004024b0
mov al, 1
push 0x54b0c0
push esi
mov byte [esp + 0x1260], al
mov byte [esp + 0x23], al
call fcn.004cc568
add esp, 8
test eax, eax
je 0x40216e
cmp byte [esp + 0x12e], 0
jne 0x402142
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x402142
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x246], 0
jne 0x402167
mov eax, dword [esp + 0x240]
lea edx, [esp + 0x138]
cmp eax, edx
je 0x402167
push eax
call fcn.004cc2c0
add esp, 4
xor al, al
jmp 0x402340
mov eax, 0x4000
test word [0x54b0c6], ax
je 0x4022dc
lea ecx, [esp + 0x1c]
call fcn.00401680
test al, al
jne 0x4021b8
push 0
lea ecx, [esp + 0x20]
call fcn.00401aa0
test al, al
jne 0x4021b8
lea eax, [esp + 0x1c]
call fcn.00402520
lea eax, [esp + 0x134]
call fcn.00402520
xor al, al
jmp 0x402340
push esi
push str._s.
lea edx, [esp + 0x254]
call fcn.004023b0
add esp, 8
push 0x54ae70
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4022f5
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x51f1cc
mov eax, 0x54ae9c
jmp 0x402200
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402226
test dx, dx
je 0x402222
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402226
add eax, 4
add ecx, 4
test dx, dx
jne 0x402200
xor eax, eax
jmp 0x40222b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4022c3
mov ecx, 0x51f1d0
mov eax, 0x54ae9c
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402266
test dx, dx
je 0x402262
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402266
add eax, 4
add ecx, 4
test dx, dx
jne 0x402240
xor eax, eax
jmp 0x40226b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4022c3
push 0x54ae9c
push esi
push str._s_s
lea edx, [esp + 0x258]
call fcn.004023b0
add esp, 0xc
push 0x54ae9c
push ebp
push str._s_s
lea edx, [esp + 0xa58]
call fcn.004023b0
add esp, 0xc
lea edx, [esp + 0x24c]
push edx
lea eax, [esp + 0xa50]
push eax
call fcn.00402090
add esp, 8
test al, al
jne 0x4022c3
mov byte [esp + 0x1b], al
push 0x54ae70
push edi
call ebx
test eax, eax
jne 0x4021f1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4022f5
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401c20
test al, al
jne 0x4022f5
mov byte [esp + 0x1b], al
cmp byte [esp + 0x12e], 0
jne 0x402317
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x402317
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x246], 0
jne 0x40233c
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x138]
cmp eax, ecx
je 0x40233c
push eax
call fcn.004cc2c0
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.004cc2b1
add esp, 0x1248
ret