Function at 0x4667f0
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, 0x26c
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46682a
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 0x46684a
xor ecx, ecx
jmp 0x46685f
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466850
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 0x466be0
cmp ecx, 3
je 0x4668a4
lea edx, [ecx - 1]
test edx, edx
js 0x4669aa
cmp edx, ecx
jg 0x4669aa
cmp word [eax + edx*2], 0x5c
je 0x4668a4
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402280
push 1
push 0x48ceb4
lea ecx, [ebp - 0x10]
call fcn.00402570
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x466be0
test byte [ebp - 0x278], 0x10
push esi
push edi
mov edi, dword [ebp + 0xc]
jne 0x4669d2
lea eax, [ebp - 0x24c]
push 0x2e
push eax
call fcn.0044ede1
add esp, 8
test eax, eax
je 0x4669d2
push eax
call fcn.0044d217
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x10]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [edi + 0xc], eax
jbe 0x466916
call fcn.0044e19c
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x466923
call fcn.0044e19c
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
push esi
call fcn.00464900
mov esi, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [edi + 0xc], esi
jbe 0x46694b
call fcn.0044e19c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x466956
cmp eax, dword [edi]
je 0x46695b
call fcn.0044e19c
cmp dword [ebp - 0x18], esi
jne 0x46696d
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xfffffffc
jne 0x4669d2
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401f00
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402280
lea eax, [ebp - 0x24c]
push eax
call fcn.0044d217
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.00402280
cmp dword [ebp + 0x1c], 0
jne 0x4669b4
cmp dword [ebp - 0x258], 0
jmp 0x4669be
push 0x80070057
call fcn.00402670
cmp dword [ebp - 0x258], 0x1770
ja 0x4669c6
cmp dword [ebp + 0x18], 0
jne 0x4669d2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.0040b660
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x466bd5
lea ebx, [ebx]
cmp dword [ebp + 0x14], 0
je 0x466a8a
mov esi, dword [ebp - 0x278]
push 0x47dac0
lea eax, [ebp - 0x24c]
push eax
shr esi, 4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb ebx, ebx
push 0x48ceb8
lea eax, [ebp - 0x24c]
push eax
neg ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb eax, eax
neg eax
and esi, 1
je 0x466a8a
test ebx, ebx
je 0x466a8a
test eax, eax
je 0x466a8a
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401f00
push 1
push 0x47da80
lea ecx, [ebp - 0x10]
call fcn.00402570
lea eax, [ebp - 0x24c]
push eax
call fcn.0044d217
add esp, 4
lea ecx, [ebp - 0x10]
push eax
call fcn.00402280
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x10]
call fcn.004667f0
add esp, 0x18
test byte [ebp - 0x278], 0x10
jne 0x466bbd
lea eax, [ebp - 0x24c]
push 0x2e
push eax
call fcn.0044ede1
add esp, 8
test eax, eax
je 0x466bbd
push eax
call fcn.0044d217
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x10]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [edi + 0xc], eax
jbe 0x466acc
call fcn.0044e19c
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x466ad9
call fcn.0044e19c
mov ebx, dword [edi]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
push esi
call fcn.00464900
mov esi, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [edi + 0xc], esi
jbe 0x466afe
call fcn.0044e19c
test ebx, ebx
je 0x466b06
cmp ebx, dword [edi]
je 0x466b0b
call fcn.0044e19c
cmp dword [ebp - 0x14], esi
jne 0x466b21
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xfffffffc
jne 0x466bbd
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x466b2c
xor eax, eax
jmp 0x466b40
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466b31
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 - 0x24c]
push eax
call fcn.0044d217
mov edx, eax
add esp, 4
test edx, edx
jne 0x466b72
xor ecx, ecx
jmp 0x466b86
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466b77
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00402570
cmp dword [ebp + 0x1c], 0
jne 0x466b9f
cmp dword [ebp - 0x258], 0
jmp 0x466ba9
cmp dword [ebp - 0x258], 0x1770
ja 0x466bb1
cmp dword [ebp + 0x18], 0
jne 0x466bbd
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.0040b660
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4669f0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
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 0x466c05
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