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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014ac9f
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x1019646c]
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.101166b0
add esp, 0xc
mov dword [ebp - 0x884], 0
lea ecx, [ebp - 0x884]
push 0x10154eac
call fcn.10012770
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x10066944
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 0x10066a4b
nop dword [eax]
mov eax, dword [ecx + esi*4]
lea edi, [ecx + esi*4]
cmp dword [eax - 0xc], 0
jl 0x1006698b
push 0x101567f8
push eax
call fcn.10116869
add esp, 8
test eax, eax
je 0x1006698b
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x10066a2f
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 0x10066960
mov ebx, edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x10066e77
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov esi, dword [ebp + 0x10]
sar eax, 2
cmp esi, eax
jne 0x10066a8f
mov eax, dword [ebp - 0x884]
cmp dword [eax - 0xc], 0
jne 0x10066a8f
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x87c]
call fcn.10012770
mov ebx, dword [ebp - 0x888]
mov byte [ebp - 4], 2
mov esi, dword [ebx + 4]
cmp dword [ebx + 8], esi
je 0x10066a56
mov eax, dword [ebp - 0x87c]
add eax, 0xfffffff0
push eax
call fcn.10019550
add eax, 0x10
add esp, 4
mov dword [esi], eax
add dword [ebx + 4], 4
jmp 0x10066a65
mov ebx, dword [ebp - 0x880]
lea ecx, [ebp - 0x884]
mov eax, dword [ebx]
lea eax, [eax + esi*4]
push eax
call fcn.10018af0
jmp 0x100669b3
mov ebx, dword [ebp - 0x880]
jmp 0x100669b3
lea eax, [ebp - 0x87c]
mov ecx, ebx
push eax
push esi
call fcn.10017ff0
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 0x10066e77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10066e77
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.101166b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x10156c58
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.101166b0
mov eax, dword [ebp - 0x88c]
or edi, 0xffffffff
add esp, 0xc
cmp eax, edi
je 0x10066e77
lea ecx, [ebp - 0x878]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10066e6b
nop word [eax + eax]
test byte [ebp - 0x878], 0x10
je 0x10066cc0
cmp word [ebp - 0x84c], 0x2e
jne 0x10066b5b
mov ax, word [ebp - 0x84a]
test ax, ax
je 0x10066e50
cmp ax, 0x2e
jne 0x10066b5b
cmp word [ebp - 0x848], 0
je 0x10066e50
push dword [ebp - 0x884]
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10066e50
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.10017640
test eax, eax
je 0x10066ed3
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 0x10066c91
movzx esi, ax
push 0
push esi
call fcn.10037810
mov edi, eax
add esp, 8
test edi, edi
je 0x10066c6b
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 0x10066c6b
push esi
push eax
push edi
call fcn.100148f0
add esp, 0xc
mov dword [ebp - 0x87c], eax
test eax, eax
je 0x10066c6b
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 0x10066c36
push edi
mov ecx, ebx
call fcn.10014650
mov eax, dword [ebp - 0x87c]
movzx ecx, word [eax]
jmp 0x10066c3c
mov eax, dword [ebp - 0x87c]
movzx ecx, cx
add eax, 2
push ecx
push eax
push edi
push dword [ebx]
call fcn.10119b6d
push eax
call fcn.1002ed20
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x10066edd
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.100668b0
add esp, 0x10
jmp 0x10066e4d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066ca0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.1001c180
jmp 0x10066c6e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
cmp esi, eax
jb 0x10066e50
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.10017640
test eax, eax
je 0x10066ed3
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 0x10066de0
movzx edi, ax
push 0
push edi
call fcn.10037810
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10066dab
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 0x10066dab
push edi
push eax
push ebx
call fcn.100148f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10066dab
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 0x10066d81
push edi
lea ecx, [ebp - 0x87c]
call fcn.10014650
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.10119b6d
push eax
call fcn.1002ed20
add esp, 0x14
cmp edi, dword [esi - 8]
jg 0x10066edd
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 0x10066e1a
lea eax, [esi - 0x10]
push eax
call fcn.10019550
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x888]
add dword [eax + 4], 4
jmp 0x10066e2f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066df0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.1001c180
mov esi, dword [ebp - 0x87c]
jmp 0x10066db1
lea ecx, [ebp - 0x87c]
push ecx
push edi
mov ecx, eax
call fcn.10017ff0
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 0x10066e4d
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 0x10066b20
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 0x10066e98
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 0x10066eb7
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.100f5f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10013b40
push 0x80070057
call fcn.10013b40
int3