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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da1e1
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x66c334]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x668c2c]
mov byte [ebp - 0x2a9], 1
cmp eax, dword [ecx + 0x10]
jg 0x4702a6
push ebx
lea ecx, [ebp - 0x28]
call fcn.0046e3c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
call fcn.00471a90
mov edx, dword [ebp - 0x18]
mov eax, SysReAllocString
mov ebx, dword [0x65dba4]
sub eax, edx
add esp, 4
cmp eax, ebx
jb 0x4702fb
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push ebx
cmovae ecx, dword [ebp - 0x28]
mov eax, 0x65db94
cmp dword [0x65dba8], 8
cmovae eax, dword [0x65db94]
push eax
push edx
push ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2b0]
lea ecx, [ebp - 0x40]
call fcn.0042947e
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x2c]
mov ebx, eax
mov dword [ebp - 0x2b0], ebx
cmp edx, 8
jb 0x4700d1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4700c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470300
push edx
push ecx
call fcn.00599f8e
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ebx, 0xffffffff
je 0x47024c
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp word [ebp - 0x27c], 0x2e
jne 0x470122
mov ax, word [ebp - 0x27a]
test ax, ax
je 0x47021d
cmp ax, 0x2e
jne 0x470122
cmp word [ebp - 0x278], 0
je 0x47021d
test esi, esi
je 0x470133
push 0
push esi
call ebx
test eax, eax
je 0x4701fa
mov eax, dword [ebp - 0x2a8]
test al, 0x10
je 0x47020a
test eax, 0x400
jne 0x47021d
lea eax, [ebp - 0x27c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x470155
sub eax, edx
mov ecx, SysReAllocString
mov edx, dword [ebp - 0x18]
sub ecx, edx
sar eax, 1
cmp ecx, eax
jb 0x4702fb
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x27c]
push eax
push edx
push ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2b0]
lea ecx, [ebp - 0x58]
call fcn.0042947e
push esi
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.0046ffb0
mov edx, dword [ebp - 0x44]
add esp, 0xc
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4701ed
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4701e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470300
push edx
push ecx
call fcn.00599f8e
add esp, 8
test esi, esi
je 0x47021d
push 0
push esi
call ebx
test eax, eax
jne 0x47021d
push dword [ebp - 0x2b0]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x47024e
mov ecx, dword [ebp - 0x28c]
xor eax, eax
or eax, dword [ebp - 0x288]
add dword [edi], eax
adc dword [edi + 4], ecx
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4700f4
push dword [ebp - 0x2b0]
mov bl, byte [ebp - 0x2a9]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x47024e
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x470288
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47027e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470305
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
push 0x668c2c
call fcn.0059a45b
add esp, 4
cmp dword [0x668c2c], 0xffffffff
jne 0x47000e
push 3
push 0x5edef0
mov ecx, 0x65db94
mov dword [ebp - 4], 0
call fcn.004049aa
push 0x5e8c20
call fcn.0059a313
push 0x668c2c
mov dword [ebp - 4], 0xffffffff
call fcn.0059a411
add esp, 8
jmp 0x47000e
call fcn.00404949
call fcn.005a1930
call fcn.005a1930
int3