Function at 0x100667b0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015599f
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x101a154c]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x880], edi
mov dword [ebp - 0x888], eax
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.101213d0
add esp, 0xc
mov dword [ebp - 0x884], 0
lea ecx, [ebp - 0x884]
push 0x1015fecc
call fcn.10012f50
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x10066844
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
mov esi, dword [ebp + 0x10]
sar eax, 2
cmp esi, eax
jae 0x1006694b
nop dword [eax]
mov eax, dword [ecx + esi*4]
lea edi, [ecx + esi*4]
cmp dword [eax - 0xc], 0
jl 0x1006688b
push 0x10161818
push eax
call fcn.10121589
add esp, 8
test eax, eax
je 0x1006688b
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x1006692f
mov edi, dword [ebp - 0x880]
inc dword [ebp + 0x10]
mov eax, dword [edi]
push dword [eax + esi*4]
lea eax, [ebp - 0x420]
push eax
call ebx
mov eax, dword [edi + 4]
inc esi
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10066860
mov ebx, edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x10066d77
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov esi, dword [ebp + 0x10]
sar eax, 2
cmp esi, eax
jne 0x1006698f
mov eax, dword [ebp - 0x884]
cmp dword [eax - 0xc], 0
jne 0x1006698f
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x87c]
call fcn.10012f50
mov ebx, dword [ebp - 0x888]
mov byte [ebp - 4], 2
mov esi, dword [ebx + 4]
cmp dword [ebx + 8], esi
je 0x10066956
mov eax, dword [ebp - 0x87c]
add eax, 0xfffffff0
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [esi], eax
add dword [ebx + 4], 4
jmp 0x10066965
mov ebx, dword [ebp - 0x880]
lea ecx, [ebp - 0x884]
mov eax, dword [ebx]
lea eax, [eax + esi*4]
push eax
call fcn.100190c0
jmp 0x100668b3
mov ebx, dword [ebp - 0x880]
jmp 0x100668b3
lea eax, [ebp - 0x87c]
mov ecx, ebx
push eax
push esi
call fcn.10018530
mov edx, dword [ebp - 0x87c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10066d77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10066d77
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.101213d0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x10161c78
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x208
mov dword [ebp - 0x88c], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.101213d0
mov eax, dword [ebp - 0x88c]
or edi, 0xffffffff
add esp, 0xc
cmp eax, edi
je 0x10066d77
lea ecx, [ebp - 0x878]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10066d6b
nop word [eax + eax]
test byte [ebp - 0x878], 0x10
je 0x10066bc0
cmp word [ebp - 0x84c], 0x2e
jne 0x10066a5b
mov ax, word [ebp - 0x84a]
test ax, ax
je 0x10066d50
cmp ax, 0x2e
jne 0x10066a5b
cmp word [ebp - 0x848], 0
je 0x10066d50
push dword [ebp - 0x884]
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10066d50
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ecx
mov ebx, esp
mov dword [ebp - 0x890], ebx
call fcn.10017d20
test eax, eax
je 0x10066dd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x10066b91
movzx esi, ax
push 0
push esi
call fcn.10037d50
mov edi, eax
add esp, 8
test edi, edi
je 0x10066b6b
mov ecx, esi
shr ecx, 4
push 6
inc ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10066b6b
push esi
push eax
push edi
call fcn.10015080
add esp, 0xc
mov dword [ebp - 0x87c], eax
test eax, eax
je 0x10066b6b
mov ecx, dword [ebx]
mov edx, 1
movzx esi, word [eax]
mov edi, esi
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
mov ecx, esi
jge 0x10066b36
push edi
mov ecx, ebx
call fcn.10014de0
mov eax, dword [ebp - 0x87c]
movzx ecx, word [eax]
jmp 0x10066b3c
mov eax, dword [ebp - 0x87c]
movzx ecx, cx
add eax, 2
push ecx
push eax
push edi
push dword [ebx]
call fcn.1012488d
push eax
call fcn.1002f3d0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x10066ddd
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
or edi, 0xffffffff
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x880]
inc eax
push eax
push dword [ebp - 0x888]
mov byte [ebp - 4], 1
push ebx
call fcn.100667b0
add esp, 0x10
jmp 0x10066d4d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066ba0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.1001c8c0
jmp 0x10066b6e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
cmp esi, eax
jb 0x10066d50
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.10017d20
test eax, eax
je 0x10066dd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x87c], esi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x10066ce0
movzx edi, ax
push 0
push edi
call fcn.10037d50
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10066cab
mov ecx, edi
shr ecx, 4
push 6
inc ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10066cab
push edi
push eax
push ebx
call fcn.10015080
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10066cab
movzx edx, word [ebx]
mov ecx, 1
mov eax, dword [esi - 8]
mov edi, edx
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x10066c81
push edi
lea ecx, [ebp - 0x87c]
call fcn.10014de0
movzx edx, word [ebx]
mov esi, dword [ebp - 0x87c]
movzx ecx, dx
lea eax, [ebx + 2]
push ecx
push eax
push edi
push esi
call fcn.1012488d
push eax
call fcn.1002f3d0
add esp, 0x14
cmp edi, dword [esi - 8]
jg 0x10066ddd
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov ebx, dword [ebp - 0x880]
mov eax, dword [ebp - 0x888]
mov byte [ebp - 4], 5
mov edi, dword [eax + 4]
cmp dword [eax + 8], edi
je 0x10066d1a
lea eax, [esi - 0x10]
push eax
call fcn.10019b20
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x888]
add dword [eax + 4], 4
jmp 0x10066d2f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066cf0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.1001c8c0
mov esi, dword [ebp - 0x87c]
jmp 0x10066cb1
lea ecx, [ebp - 0x87c]
push ecx
push edi
mov ecx, eax
call fcn.10018530
mov esi, dword [ebp - 0x87c]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10066d4d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x878]
push eax
push dword [ebp - 0x88c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10066a20
push dword [ebp - 0x88c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x884]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10066d98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10066db7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100f8fe1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100142b0
push 0x80070057
call fcn.100142b0
int3