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

Disassembly:
mov eax, 0x4104cb
call fcn.0040f350
sub esp, 0x2e0
push ebx
push esi
push edi
push 0x4147a0
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.00404b68
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x407cd9
mov eax, dword [eax]
lea ecx, [ebp - 0x2ec]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x9c], eax
and dword [ebp - 4], 0
push 1
xor edi, edi
lea esi, [ebp - 0x94]
call fcn.00402d33
cmp dword [ebp - 0x9c], 0xffffffff
je 0x407f52
mov eax, dword [ebp + 0xc]
call fcn.00407b56
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2ec]
and eax, 0x10
je 0x407d53
cmp word [ebp - 0x2c0], 0x2e
jne 0x407d53
cmp word [ebp - 0x2be], 0
je 0x407f22
cmp word [ebp - 0x2be], 0x2e
jne 0x407d53
cmp word [ebp - 0x2bc], 0
je 0x407f22
test dword [ebp - 0x2ec], 0x1600
jne 0x407f22
mov ecx, dword [ebp - 0x2ec]
and cl, 0x14
cmp cl, 4
je 0x407f22
test eax, eax
jne 0x407d82
cmp dword [ebp - 0x20], eax
je 0x407f22
xor esi, esi
push dword [esi + 0x418cd8]
lea eax, [ebp - 0x2c0]
push eax
call fcn.0040a8a0
pop ecx
pop ecx
test eax, eax
je 0x407f22
add esi, 4
cmp esi, 0x38
jb 0x407d84
test byte [ebp - 0x2ec], 0x10
je 0x407df6
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x78]
push eax
call fcn.00408ba5
pop ecx
lea ecx, [ebp - 0x2c0]
push ecx
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004024cd
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00407ca7
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x5c]
call fcn.00402d33
lea esi, [ebp - 0x78]
jmp 0x407f15
lea eax, [ebp - 0x2c0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407dff
mov ebx, dword [ebp - 0x2d0]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
xor eax, eax
or eax, dword [ebp - 0x2cc]
xor edx, edx
or ebx, edx
mov dword [ebp - 0x1c], eax
xor esi, esi
mov edi, dword [esi*8 + 0x413250]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e34
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
sub ecx, eax
lea ecx, [ebp + ecx*2 - 0x2c0]
cmp dword [ebp - 0x14], eax
jb 0x407e61
push edi
push ecx
call fcn.0040a8a0
pop ecx
pop ecx
test eax, eax
je 0x407e6f
inc esi
cmp esi, 0xb1
jb 0x407e28
jmp 0x407f22
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push eax
call fcn.00408ba5
pop ecx
lea ecx, [ebp - 0x2c0]
push ecx
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.004024cd
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov edi, dword [esi*8 + 0x413254]
push eax
lea esi, [ebp - 0x40]
call fcn.00402968
mov dword [ebp - 0x24], edi
push 1
xor edi, edi
lea esi, [ebp - 0x78]
call fcn.00402d33
push 1
lea esi, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00402d33
test ebx, ebx
jne 0x407ed0
cmp dword [ebp - 0x1c], 0x100000
jbe 0x407ed4
sub dword [ebp - 0x24], 5
test ebx, ebx
jne 0x407ee1
cmp dword [ebp - 0x1c], 0xa00000
jbe 0x407ee5
sub dword [ebp - 0x24], 0xa
test ebx, ebx
jne 0x407ef2
cmp dword [ebp - 0x1c], 0x6400000
jbe 0x407ef6
sub dword [ebp - 0x24], 0xa
test ebx, ebx
jne 0x407f03
cmp dword [ebp - 0x1c], 0x3e800000
jbe 0x407f07
sub dword [ebp - 0x24], 0xa
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
call fcn.004086b9
lea esi, [ebp - 0x40]
push 1
xor edi, edi
mov byte [ebp - 4], 0
call fcn.00402d33
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407d18
cmp dword [ebp - 0x9c], 0xffffffff
je 0x407f52
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret