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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6aed
mov eax, dword fs:[0]
push eax
sub esp, 0x718
mov eax, dword [0x4ce208]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x684], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x680], eax
lea eax, [ebp - 0x420]
push 0
push eax
mov dword [ebp - 0x67c], ebx
call fcn.004517f0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
add esp, 0xc
push dword [ebx]
push eax
call edi
push 0x4ae118
lea eax, [ebp - 0x420]
push eax
call edi
mov eax, dword [esi]
dec eax
mov dword [ebp - 0x68c], eax
test eax, eax
jg 0x40f911
lea eax, [ebp - 0x688]
push eax
call fcn.0041abb0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x684]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov bl, al
test esi, esi
je 0x40f883
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x40f883
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40f883
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test bl, bl
je 0x40fb91
lea eax, [ebp - 0x688]
push eax
call fcn.0041abb0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x724]
mov dword [ebp - 4], 1
call fcn.0040b500
mov esi, eax
push str.dir_to_deep_return
push esi
mov byte [ebp - 4], 2
call fcn.0040bac0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x724]
call fcn.004033d0
mov esi, dword [ebp - 0x684]
test esi, esi
je 0x40fb91
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40fb91
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40fb91
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x40fb91
push 0x250
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.004517f0
add esp, 0xc
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004517f0
add esp, 0xc
cmp esi, 0xffffffff
je 0x40fb91
lea eax, [ebp - 0x670]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40fb8a
or ebx, 0xffffffff
nop word [eax + eax]
test byte [ebp - 0x670], 0x10
je 0x40fa93
cmp word [ebp - 0x644], 0x2e
jne 0x40f9bb
mov ax, word [ebp - 0x642]
test ax, ax
je 0x40fb74
cmp ax, 0x2e
jne 0x40f9bb
cmp word [ebp - 0x640], 0
je 0x40fb74
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004517f0
mov eax, dword [ebp - 0x67c]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
call fcn.00403e30
mov ecx, eax
test ecx, ecx
je 0x40fbaf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 3
test eax, 0xffff0000
jne 0x40fa34
movzx eax, ax
lea ecx, [ebp - 0x674]
push eax
call fcn.0040cbd0
jmp 0x40fa62
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fa40
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x674]
call fcn.004053e0
mov ecx, dword [ebp - 0x684]
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x674]
mov dword [ebp - 4], 4
push eax
push dword [ebp - 0x680]
call fcn.0040f7a0
mov edx, dword [ebp - 0x674]
jmp 0x40fb56
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004517f0
mov eax, dword [ebp - 0x67c]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
call fcn.00403e30
mov ecx, eax
test ecx, ecx
je 0x40fbaf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 5
test eax, 0xffff0000
jne 0x40fb0c
movzx eax, ax
lea ecx, [ebp - 0x678]
push eax
call fcn.0040cbd0
jmp 0x40fb37
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fb15
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x678]
call fcn.004053e0
mov ecx, dword [ebp - 0x680]
lea eax, [ebp - 0x678]
push eax
mov dword [ebp - 4], 6
call fcn.0041bbb0
mov edx, dword [ebp - 0x678]
mov eax, ebx
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fb74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x670]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f980
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004441aa
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403b20
int3