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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476698
push eax
mov dword fs:[0], esp
sub esp, 0x264
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46608a
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
push ebx
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4660aa
xor ecx, ecx
jmp 0x4660bf
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4660b0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402570
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
cmp ecx, 2
jl 0x46631a
cmp ecx, 3
je 0x466104
lea edx, [ecx - 1]
test edx, edx
js 0x466244
cmp edx, ecx
jg 0x466244
cmp word [eax + edx*2], 0x5c
je 0x466104
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402280
push edi
push 1
push 0x48ceb4
lea ecx, [ebp - 0x10]
call fcn.00402570
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x466319
test byte [ebp - 0x270], 0x10
push esi
mov esi, dword [ebp + 0xc]
je 0x466196
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401f00
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402280
lea eax, [ebp - 0x244]
push eax
call fcn.0044d217
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.00402280
push 0x48cec0
lea ecx, [ebp - 0x10]
call fcn.0040fcc0
push 0x48cec8
lea ecx, [ebp - 0x10]
call fcn.0040fcc0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00469fd0
lea eax, [ebp - 0x270]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x466311
lea esp, [esp]
cmp dword [ebp + 0x10], 0
je 0x466254
mov esi, dword [ebp - 0x270]
push 0x47dac0
lea eax, [ebp - 0x244]
push eax
shr esi, 4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb edi, edi
push 0x48ceb8
lea eax, [ebp - 0x244]
push eax
neg edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb eax, eax
neg eax
and esi, 1
je 0x46624e
test edi, edi
je 0x46624e
test eax, eax
je 0x46624e
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401f00
push 1
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402570
lea eax, [ebp - 0x244]
push eax
call fcn.0044d217
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.00402280
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp - 0x10]
call fcn.00466050
add esp, 0xc
jmp 0x466251
push 0x80070057
call fcn.00402670
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
test byte [ebp - 0x270], 0x10
je 0x4662fb
test ebx, ebx
jne 0x466269
xor eax, eax
jmp 0x46627f
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466270
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.00408f60
push 1
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402570
lea eax, [ebp - 0x244]
push eax
call fcn.0044d217
mov edx, eax
add esp, 4
test edx, edx
jne 0x4662b1
xor ecx, ecx
jmp 0x4662c8
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4662b6
sub ecx, esi
mov esi, dword [ebp + 0xc]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00402570
push 0x48cec0
lea ecx, [ebp - 0x10]
call fcn.0040fcc0
push 0x48cec8
lea ecx, [ebp - 0x10]
call fcn.0040fcc0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00469fd0
lea eax, [ebp - 0x270]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4661b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
pop ebx
test ecx, ecx
jg 0x46633f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret