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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp + 0x18]
push 0x419310
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x264], ebx
call fcn.00403c30
push 1
push 0x419310
lea ecx, [ebp + 8]
call fcn.004015c0
call fcn.00402700
mov ecx, eax
test ecx, ecx
je 0x407f0d
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push 0x419eb8
push eax
call fcn.00402620
mov esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x254]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x407c31
add esi, 0xfffffff0
or ebx, eax
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x407e56
mov ecx, dword [esi]
push esi
jmp 0x407e51
push 0x419ec0
lea ecx, [ebp - 0x25c]
call fcn.00403c30
call fcn.00402700
mov ecx, eax
test ecx, ecx
je 0x407f17
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
mov edi, edi
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c70
sub eax, edx
lea ecx, [ebp - 0x258]
sar eax, 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00403af0
mov esi, dword [ebp - 0x258]
mov ecx, 0x419448
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407cc6
test dx, dx
je 0x407cc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407cc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ca0
xor eax, eax
jmp 0x407ccb
sbb eax, eax
or eax, 1
test eax, eax
je 0x407df4
mov ecx, 0x419ec4
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407d06
test dx, dx
je 0x407d02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407d06
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ce0
xor eax, eax
jmp 0x407d0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407df4
mov ecx, dword [ebp - 0x254]
mov eax, ecx
and al, 4
cmp al, 1
jae 0x407df4
mov eax, ecx
and al, 0x10
cmp al, 1
jb 0x407dbc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00407290
mov ecx, dword [ebp - 0x270]
add esp, 0xc
push eax
call fcn.004090c0
mov edx, dword [ebp - 0x278]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407d7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x20]
add dword [ebx], 1
push ebx
push dword [ebp - 0x274]
adc dword [ebx + 4], 0
push edi
push dword [ebp - 0x270]
push dword [ebp - 0x268]
push ecx
mov eax, esp
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
push eax
call fcn.00407290
add esp, 0xc
call fcn.00407b60
add esp, 0x1c
jmp 0x407df4
mov ebx, dword [ebp - 0x238]
xor edi, edi
add edi, dword [ebp - 0x234]
adc ebx, 0
and cl, 2
cmp cl, 1
jae 0x407de8
mov eax, edi
or eax, ebx
jne 0x407e81
cmp dword [ebp + 0x20], eax
jne 0x407e8d
mov edi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x264]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407c60
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
add esi, 0xfffffff0
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407e37
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x25c]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407e56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x407e70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5e0
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x407e8d
test edi, edi
je 0x407de8
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00407290
add esp, 0xc
lea ecx, [ebp - 0x258]
push eax
call fcn.004012c0
mov edx, dword [ebp - 0x27c]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407ed6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x258]
push eax
call fcn.004090c0
mov eax, dword [ebp - 0x274]
mov esi, dword [ebp - 0x258]
add dword [eax], 1
adc dword [eax + 4], 0
mov eax, dword [ebp - 0x260]
add dword [eax], edi
mov edi, eax
adc dword [eax + 4], ebx
jmp 0x407dee
push 0x80004005
call fcn.004017a0
push 0x80004005
call fcn.004017a0
int3