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

Disassembly:
push 0xffffffffffffffff
push 0x475fdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x49ae1c]
push ebx
push ebp
push esi
mov dword [esp + 0x168], eax
push edi
push 0x47c070
lea ecx, [esp + 0x18]
mov dword [esp + 0x17c], 1
call fcn.00403160
push eax
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x20]
mov bl, 2
push ecx
mov byte [esp + 0x184], bl
call fcn.004051f0
lea edx, [esp + 0x190]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x190], 3
call fcn.004051f0
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4067a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x178], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x178], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, 0xffffffff
je 0x4069c6
mov edi, dword [esp + 0x188]
mov bl, 8
lea ecx, [ecx]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.00403160
mov esi, eax
push 0x47c070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 4
call fcn.00403160
push eax
lea ecx, [esp + 0x184]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x184], 5
call fcn.004051f0
push esi
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x190], 6
call fcn.004051f0
add esp, 0x18
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x178], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40687e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x178], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x178], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test byte [esp + 0x2c], 0x10
mov ebp, dword [esp + 0x10]
je 0x406932
cmp byte [esp + 0x58], 0x2e
jne 0x4068e5
mov eax, ebp
add eax, 0xfffffff0
jmp 0x40698b
mov eax, dword [esp + 0x184]
push edi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00402640
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x30], esp
mov esi, esp
push eax
mov byte [esp + 0x188], 0xb
call fcn.00402640
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x184], bl
call fcn.004066f0
add esp, 0xc
jmp 0x406988
mov edx, dword [edi + 4]
test edx, edx
jne 0x40693d
xor ecx, ecx
jmp 0x406945
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x406976
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x406976
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 8]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
call fcn.00405660
add esp, 0x14
add esi, 4
mov dword [edi + 8], esi
jmp 0x406988
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.00406440
lea eax, [ebp - 0x10]
mov byte [esp + 0x178], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406800
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
mov byte [esp + 0x178], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4069f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x184]
add eax, 0xfffffff0
mov dword [esp + 0x178], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x16c]
call fcn.00447453
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret