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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push edi
cmp dword [ebp + 8], 0
je 0x40c3c9
mov eax, dword [ebp + 8]
push eax
call fcn.0043139f
add esp, 4
test eax, eax
jne 0x40c3ce
jmp 0x40c739
mov dword [ebp - 0x260], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x25c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40c406
jmp 0x40c739
push 0x5d7e0c
lea ecx, [ebp - 0x264]
call fcn.00449fa0
mov dword [ebp - 4], 0
push 0x5b7f68
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40c449
push 0x5b7f70
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40c44e
jmp 0x40c704
push 0x5d7e10
lea ecx, [ebp - 0x264]
call fcn.0044aaf0
mov edx, dword [ebp + 8]
push edx
call fcn.00408e2f
add esp, 4
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
je 0x40c4f0
mov eax, dword [ebp - 0x26c]
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, 1
jle 0x40c4f0
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x26c]
sub edx, dword [ebp + 8]
sar edx, 1
sub edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x274]
call fcn.0044a2a0
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x27c]
mov eax, dword [edx]
push eax
push 0x5b7f74
lea ecx, [ebp - 0x264]
push ecx
call fcn.0044d820
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.0044a810
lea ecx, [ebp - 0x264]
call fcn.004035e0
test eax, eax
je 0x40c504
jmp 0x40c704
lea ecx, [ebp - 0x264]
call fcn.00403dd0
cmp eax, 0x104
jl 0x40c5d0
push 0x5b7f80
lea ecx, [ebp - 0x264]
call fcn.0044ba50
test eax, eax
jne 0x40c542
push 0x3f
push 2
lea ecx, [ebp - 0x264]
call fcn.0044bdd0
jmp 0x40c5d0
push 0x5b7f8c
lea ecx, [ebp - 0x264]
call fcn.0044ba50
test eax, eax
je 0x40c5d0
push 0x5b7f98
lea ecx, [ebp - 0x270]
call fcn.00449fa0
mov byte [ebp - 4], 2
push 0x5b7fa4
lea ecx, [ebp - 0x264]
call fcn.0044ba50
test eax, eax
jne 0x40c59d
push 0x5b7fac
lea ecx, [ebp - 0x270]
call fcn.0044aaf0
push 2
push 0
lea ecx, [ebp - 0x264]
call fcn.0044c2a0
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x270]
call fcn.0044b4b0
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x264]
call fcn.0044a9c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.0044a810
mov dword [ebp - 0x268], 0
mov ecx, dword [ebp - 0x260]
and ecx, 0x10
test ecx, ecx
je 0x40c6b3
mov edx, dword [ebp - 0x260]
and edx, 0x400
test edx, edx
jne 0x40c62f
push 0x5b7fc0
lea ecx, [ebp - 0x264]
call fcn.0044b450
lea ecx, [ebp - 0x264]
call fcn.00403620
push eax
call fcn.0040c394
add esp, 4
push 0x5b7fc8
lea ecx, [ebp - 0x264]
call fcn.0044e1f0
mov eax, dword [ebp - 0x260]
and eax, 1
test eax, eax
je 0x40c664
mov ecx, dword [ebp - 0x260]
and ecx, 0xfffffffe
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x260]
push edx
lea ecx, [ebp - 0x264]
call fcn.00403620
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.00403620
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x40c6b1
lea ecx, [ebp - 0x264]
call fcn.00403620
push eax
call fcn.0040bc0e
add esp, 4
lea ecx, [ebp - 0x264]
call fcn.00403620
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x268], eax
jmp 0x40c704
lea ecx, [ebp - 0x264]
call fcn.00403620
push eax
call fcn.004680c0
add esp, 4
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x40c704
lea ecx, [ebp - 0x264]
call fcn.00403620
push eax
call fcn.0040bc0e
add esp, 4
lea ecx, [ebp - 0x264]
call fcn.00403620
push eax
call fcn.004680c0
add esp, 4
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c41d
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.0044a810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret