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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46baf1
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x496d50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x2f8], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
xor edx, edx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], dx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], cx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edi
mov word [ebp - 0x68], dx
push 0xffffffffffffffff
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.004015e0
push 0xffffffffffffffff
push edi
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004015e0
push 1
mov eax, 0x47469c
lea esi, [ebp - 0x30]
call fcn.00412040
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x407032
mov eax, esi
lea edx, [ebp - 0x2f4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2fc], esi
jmp 0x407050
cmp esi, 0xffffffff
je 0x4071fd
mov ecx, 0x4746a0
lea eax, [ebp - 0x2c8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40708a
cmp dx, di
je 0x407086
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40708a
add eax, 4
add ecx, 4
cmp dx, di
jne 0x407064
xor eax, eax
jmp 0x40708f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4071fd
mov ecx, 0x4746a4
lea eax, [ebp - 0x2c8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4070c8
cmp dx, di
je 0x4070c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4070c8
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4070a2
xor eax, eax
jmp 0x4070cd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4071fd
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x68]
call fcn.004015e0
lea eax, [ebp - 0x2c8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4070f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2c8]
lea esi, [ebp - 0x68]
call fcn.00412040
test byte [ebp - 0x2f4], 0x10
je 0x4071b7
push 0xffffffffffffffff
push edi
mov ecx, esi
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004015e0
push 1
mov eax, 0x4743e0
lea esi, [ebp - 0x4c]
call fcn.00412040
mov edx, esi
lea esi, [ebp - 0xa4]
call fcn.00414f60
mov ecx, eax
mov edx, ebx
mov byte [ebp - 4], 5
call fcn.00416cf0
push eax
push ebx
lea edi, [ebp - 0x310]
call fcn.00415a60
mov byte [ebp - 4], 4
cmp dword [ebp - 0x90], 8
jb 0x40717b
mov edx, dword [ebp - 0xa4]
push edx
call fcn.0044e60d
add esp, 4
mov eax, dword [ebp - 0x2f8]
push eax
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x300], esp
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x4c]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.004015e0
call fcn.00406f80
add esp, 0x24
jmp 0x4071fb
lea edx, [ebp - 0x68]
lea esi, [ebp - 0xa4]
call fcn.00414f30
mov ecx, eax
mov edx, ebx
mov byte [ebp - 4], 6
call fcn.00416cf0
push eax
push ebx
lea edi, [ebp - 0x308]
call fcn.00415a60
mov byte [ebp - 4], 4
cmp dword [ebp - 0x90], 8
jb 0x4071fb
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.0044e60d
add esp, 4
xor edi, edi
mov esi, dword [ebp - 0x2fc]
lea edx, [ebp - 0x2f4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407050
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x54], 8
jb 0x407232
mov eax, dword [ebp - 0x68]
push eax
call fcn.0044e60d
add esp, 4
xor ecx, ecx
mov ebx, 8
mov esi, 7
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], edi
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x38], ebx
jb 0x407259
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0044e60d
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0x70], ebx
jb 0x407279
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.0044e60d
add esp, 4
xor edx, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], dx
cmp dword [ebp - 0x1c], ebx
jb 0x407299
mov eax, dword [ebp - 0x30]
push eax
call fcn.0044e60d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp dword [ebp + 0x1c], ebx
jb 0x4072b6
mov edx, dword [ebp + 8]
push edx
call fcn.0044e60d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044e488
mov esp, ebp
pop ebp
ret