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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9417
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x4de880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x328], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040dac0
movzx eax, al
test eax, eax
je 0x47608b
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401030
mov eax, dword [ebp - 0x2a8]
jmp 0x4763b2
push 0x4ba4d0
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.00406a00
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004018e0
sub eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0040dca0
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x476118
push 0x4ba4d8
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.00406a00
add esp, 0xc
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
mov dword [ebp - 0x330], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x330]
push edx
lea ecx, [ebp - 0x284]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
call fcn.00401030
mov dword [ebp - 0x288], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x284]
call fcn.00401050
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0xffffffff
je 0x476382
lea ecx, [ebp - 0x2a4]
call fcn.004015d0
mov byte [ebp - 4], 3
push 0x4ba4dc
lea ecx, [ebp - 0x238]
push ecx
call fcn.00440c9a
add esp, 8
test eax, eax
je 0x47618d
push 0x4ba4e0
lea edx, [ebp - 0x238]
push edx
call fcn.00440c9a
add esp, 8
test eax, eax
jne 0x476192
jmp 0x47634a
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0040dca0
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x47623d
push 0x4ba4e8
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.00406a00
add esp, 0xc
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x334]
mov dword [ebp - 0x338], ecx
mov byte [ebp - 4], 4
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x338]
push eax
lea ecx, [ebp - 0x2fc]
push ecx
call fcn.00406a00
add esp, 0xc
mov dword [ebp - 0x33c], eax
mov edx, dword [ebp - 0x33c]
mov dword [ebp - 0x340], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x340]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00401640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2fc]
call fcn.00401030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e0]
call fcn.00401030
jmp 0x47628e
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x318]
push eax
call fcn.00406a00
add esp, 0xc
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x348], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x348]
push edx
lea ecx, [ebp - 0x2a4]
call fcn.00401640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x318]
call fcn.00401030
mov ecx, dword [ebp - 0x328]
call fcn.00474c80
movzx eax, al
test eax, eax
je 0x4762e2
mov dword [ebp - 0x31c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a4]
call fcn.00401030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.00401030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401030
mov eax, dword [ebp - 0x31c]
jmp 0x4763b2
mov ecx, dword [ebp - 0x264]
and ecx, 0x10
je 0x47633b
movzx edx, byte [ebp + 0x24]
test edx, edx
je 0x476339
mov al, byte [ebp + 0x24]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x320], esp
lea edx, [ebp - 0x2a4]
push edx
call fcn.00403370
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x328]
call fcn.00476020
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x288]
add eax, dword [ebp - 0x350]
mov dword [ebp - 0x288], eax
jmp 0x47634a
mov ecx, dword [ebp - 0x288]
add ecx, 1
mov dword [ebp - 0x288], ecx
lea edx, [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47615d
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a4]
call fcn.00401030
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x324], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.00401030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401030
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f9e9
mov esp, ebp
pop ebp
ret 0x20