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

Disassembly:
push 0xffffffffffffffff
push 0x43e4cd
mov eax, dword fs:[0]
push eax
sub esp, 0x724
mov eax, dword [0x44a2b8]
xor eax, esp
mov dword [esp + 0x720], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a2b8]
xor eax, esp
push eax
lea eax, [esp + 0x738]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x748]
mov eax, dword [ebx]
mov edi, dword [esp + 0x74c]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ebx
jbe 0x40cf10
add eax, 0xffffffff
mov dword [ebx], eax
mov eax, edi
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], ebp
mov word [esp + 0xbc], bp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40caf0
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0xc0]
call fcn.00401d00
push 0x206
lea eax, [esp + 0x32a]
push ebp
mov dword [esp + 0x748], ebp
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov word [esp + 0x330], bp
call fcn.00429d70
add esp, 0xc
push 0x206
lea ecx, [esp + 0x532]
push ebp
push ecx
mov word [esp + 0x538], bp
call fcn.00429d70
add esp, 0xc
push 0x250
lea edx, [esp + 0xd8]
push ebp
push edx
mov dword [esp + 0x34], 1
call fcn.00429d70
mov eax, edi
add esp, 0xc
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40cb90
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x50]
call fcn.00401d00
mov byte [esp + 0x740], 1
mov eax, dword [esp + 0x5c]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40cbc2
call fcn.0042588d
mov eax, dword [esp + 0x4c]
mov edi, 8
cmp dword [esp + 0x60], edi
jae 0x40cbd5
lea eax, [esp + 0x4c]
cmp word [eax + esi*2], 0x5c
je 0x40cc25
lea eax, [esp + 0x48]
push eax
mov ebx, 0x4420e8
lea esi, [esp + 0x68]
call fcn.004100d0
add esp, 4
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x748], 2
call fcn.00401da0
mov byte [esp + 0x740], 1
cmp dword [esp + 0x7c], edi
jb 0x40cc21
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004250ac
add esp, 4
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
lea edi, [esp + 0x9c]
call fcn.0040c8b0
mov byte [esp + 0x740], 3
mov ecx, dword [esp + 0xa0]
mov edi, 8
cmp dword [esp + 0xb4], edi
jae 0x40cc59
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x324]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x40cc60
lea edx, [esp + 0xd4]
push edx
lea eax, [esp + 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40ce92
cmp dword [esp + 0x28], ebp
je 0x40ce89
cmp dword [ebx], ebp
jbe 0x40ce89
lea eax, [esp + 0x100]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40ccc1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x104]
push ecx
lea esi, [esp + 0x6c]
call fcn.00401d00
mov byte [esp + 0x740], 4
mov eax, dword [esp + 0x78]
push 0x442410
mov edi, 1
mov ecx, esi
call fcn.00410180
test eax, eax
je 0x40ce22
mov eax, dword [esp + 0x78]
push 0x442414
mov edi, 2
mov ecx, esi
call fcn.00410180
test eax, eax
je 0x40ce22
test byte [esp + 0xd4], 0x10
je 0x40ce5e
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x50]
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebp
mov word [esp + 0x8c], bp
call fcn.00401da0
lea edx, [esp + 0x80]
push edx
lea ebx, [esp + 0x104]
lea esi, [esp + 0x30]
mov byte [esp + 0x744], 5
call fcn.004100d0
add esp, 4
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x88]
mov byte [esp + 0x748], 6
call fcn.00401da0
mov esi, 8
mov byte [esp + 0x740], 5
cmp dword [esp + 0x44], esi
jb 0x40cdb9
mov eax, dword [esp + 0x30]
push eax
call fcn.004250ac
add esp, 4
cmp dword [esp + 0x98], esi
mov ecx, dword [esp + 0x84]
jae 0x40cdd0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x52c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x40cdd7
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x52c]
push ecx
push edx
call fcn.0040ca70
add esp, 8
add dword [esp + 0x1c], eax
adc dword [esp + 0x20], edx
cmp dword [esp + 0x98], esi
jb 0x40ce1e
mov eax, dword [esp + 0x84]
push eax
call fcn.004250ac
add esp, 4
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xd4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [esp + 0x740], 3
cmp dword [esp + 0x7c], 8
mov dword [esp + 0x28], eax
jb 0x40cc94
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004250ac
add esp, 4
jmp 0x40cc94
mov ecx, dword [esp + 0xf0]
push 1
push ebp
push ebp
push ecx
call fcn.00435da0
mov ecx, dword [esp + 0xf4]
xor esi, esi
add eax, ecx
adc edx, esi
add dword [esp + 0x1c], eax
adc dword [esp + 0x20], edx
add dword [ebx], 0xffffffff
jmp 0x40ce22
mov eax, dword [esp + 0x24]
mov edi, 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0xb4], edi
jb 0x40ceb2
mov edx, dword [esp + 0xa0]
push edx
call fcn.004250ac
add esp, 4
cmp dword [esp + 0x60], edi
mov esi, 7
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebp
mov word [esp + 0xa0], bp
jb 0x40cee0
mov eax, dword [esp + 0x4c]
push eax
call fcn.004250ac
add esp, 4
cmp dword [esp + 0xd0], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
jb 0x40cf06
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.004250ac
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x40cf14
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x738]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x720]
xor ecx, esp
call fcn.00424e88
add esp, 0x730
ret