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

Disassembly:
push 0xffffffffffffffff
push 0x4f115c
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov edx, dword [esp + 0x2d0]
mov ebp, dword [esp + 0x2d4]
xor edi, edi
xor eax, eax
mov word [esp + 0x54], ax
mov eax, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407823
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x58]
call fcn.00401760
mov dword [esp + 0x2c8], edi
mov eax, dword [esp + 0x64]
lea esi, [eax - 1]
cmp eax, esi
ja 0x407854
call fcn.004c85c2
mov eax, dword [esp + 0x54]
mov ebx, 8
cmp dword [esp + 0x68], ebx
jae 0x407867
lea eax, [esp + 0x54]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x407881
push 1
push 0x4fea60
lea eax, [esp + 0x58]
call fcn.004088a0
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x58]
xor ecx, ecx
mov esi, 7
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov word [esp + 0x44], cx
call fcn.00401850
push 3
push 0x4fea64
lea eax, [esp + 0x3c]
mov byte [esp + 0x2d0], 1
call fcn.004088a0
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x4078cc
lea eax, [esp + 0x38]
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x407917
cmp dword [esp + 0x4c], ebx
jb 0x4078f4
mov edx, dword [esp + 0x38]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edi
mov word [esp + 0x38], ax
cmp dword [esp + 0x68], ebx
jb 0x407aaf
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x407aa7
test byte [esp + 0x6c], 0x10
je 0x4079d3
cmp word [esp + 0x98], 0x2e
je 0x407a57
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x58]
xor edx, edx
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
call fcn.00401850
lea eax, [esp + 0x98]
mov byte [esp + 0x2c8], 2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407963
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x20]
call fcn.004088a0
lea edx, [esp + 0x18]
push edx
push ebp
call fcn.00403d30
push 1
push 0x4fea60
lea eax, [esp + 0x20]
call fcn.004088a0
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebx
jae 0x4079ad
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.004077c0
add esp, 8
mov byte [esp + 0x2c8], 1
cmp dword [esp + 0x30], ebx
jb 0x407a57
mov eax, dword [esp + 0x1c]
push eax
jmp 0x407a4f
cmp word [esp + 0x98], 0x2e
je 0x407a57
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x58]
xor ecx, ecx
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
call fcn.00401850
lea eax, [esp + 0x98]
mov byte [esp + 0x2c8], 3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407a10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x20]
call fcn.004088a0
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.00403d30
mov byte [esp + 0x2c8], 1
cmp dword [esp + 0x30], ebx
jb 0x407a57
mov edx, dword [esp + 0x1c]
push edx
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407917
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x4c], ebx
jb 0x407a8d
mov eax, dword [esp + 0x38]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edi
mov word [esp + 0x38], cx
cmp dword [esp + 0x68], ebx
jb 0x407aaf
mov edx, dword [esp + 0x54]
push edx
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.004c8f08
add esp, 0x2b8
ret