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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
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 + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0x14]
push 0x419310
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x26c], 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 0x407b46
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 - 0x270], eax
cmp eax, 0xffffffff
jne 0x4078b8
add esi, 0xfffffff0
or ebx, eax
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x407a8f
mov ecx, dword [esi]
push esi
jmp 0x407a8a
push 0x419ec0
lea ecx, [ebp - 0x25c]
call fcn.00403c30
call fcn.00402700
mov ecx, eax
test ecx, ecx
je 0x407b50
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
jmp 0x4078f0
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407900
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 0x407956
test dx, dx
je 0x407952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407956
add eax, 4
add ecx, 4
test dx, dx
jne 0x407930
xor eax, eax
jmp 0x40795b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407a2d
mov ecx, 0x419ec4
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407996
test dx, dx
je 0x407992
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407996
add eax, 4
add ecx, 4
test dx, dx
jne 0x407970
xor eax, eax
jmp 0x40799b
sbb eax, eax
or eax, 1
test eax, eax
je 0x407a2d
mov ecx, dword [ebp - 0x254]
mov eax, ecx
and al, 4
cmp al, 1
jae 0x407a2d
mov eax, ecx
and al, 0x10
cmp al, 1
jb 0x4079f5
push dword [ebp + 0x1c]
add dword [ebx], 1
push ebx
push dword [ebp - 0x26c]
adc dword [ebx + 4], 0
push edi
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.004077f0
add esp, 0x18
jmp 0x407a2d
mov ebx, dword [ebp - 0x238]
xor edi, edi
add edi, dword [ebp - 0x234]
adc ebx, 0
and cl, 2
cmp cl, 1
jae 0x407a21
mov eax, edi
or eax, ebx
jne 0x407aba
cmp dword [ebp + 0x1c], eax
jne 0x407ac6
mov edi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x264]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4078f0
push dword [ebp - 0x270]
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 0x407a70
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 0x407a8f
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 0x407aa9
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 0x407ac6
test edi, edi
je 0x407a21
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00407290
add esp, 0xc
lea ecx, [ebp - 0x258]
push eax
call fcn.004012c0
mov edx, dword [ebp - 0x274]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407b0f
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 - 0x26c]
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 0x407a27
push 0x80004005
call fcn.004017a0
push 0x80004005
call fcn.004017a0
int3