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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018535f
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x101dd594]
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.10150460
add esp, 0xc
mov dword [ebp - 0x884], 0
lea ecx, [ebp - 0x884]
push 0x10193fcc
call fcn.10016670
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x1006ccb4
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 0x1006cdbb
nop dword [eax]
mov eax, dword [ecx + esi*4]
lea edi, [ecx + esi*4]
cmp dword [eax - 0xc], 0
jl 0x1006ccfb
push 0x10195918
push eax
call fcn.10150619
add esp, 8
test eax, eax
je 0x1006ccfb
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x1006cd9f
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 0x1006ccd0
mov ebx, edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x1006d1e7
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov esi, dword [ebp + 0x10]
sar eax, 2
cmp esi, eax
jne 0x1006cdff
mov eax, dword [ebp - 0x884]
cmp dword [eax - 0xc], 0
jne 0x1006cdff
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x87c]
call fcn.10016670
mov ebx, dword [ebp - 0x888]
mov byte [ebp - 4], 2
mov esi, dword [ebx + 4]
cmp dword [ebx + 8], esi
je 0x1006cdc6
mov eax, dword [ebp - 0x87c]
add eax, 0xfffffff0
push eax
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [esi], eax
add dword [ebx + 4], 4
jmp 0x1006cdd5
mov ebx, dword [ebp - 0x880]
lea ecx, [ebp - 0x884]
mov eax, dword [ebx]
lea eax, [eax + esi*4]
push eax
call fcn.1001c9f0
jmp 0x1006cd23
mov ebx, dword [ebp - 0x880]
jmp 0x1006cd23
lea eax, [ebp - 0x87c]
mov ecx, ebx
push eax
push esi
call fcn.1001bef0
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 0x1006d1e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1006d1e7
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10150460
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x10195e30
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.10150460
mov eax, dword [ebp - 0x88c]
or edi, 0xffffffff
add esp, 0xc
cmp eax, edi
je 0x1006d1e7
lea ecx, [ebp - 0x878]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1006d1db
nop word [eax + eax]
test byte [ebp - 0x878], 0x10
je 0x1006d030
cmp word [ebp - 0x84c], 0x2e
jne 0x1006cecb
mov ax, word [ebp - 0x84a]
test ax, ax
je 0x1006d1c0
cmp ax, 0x2e
jne 0x1006cecb
cmp word [ebp - 0x848], 0
je 0x1006d1c0
push dword [ebp - 0x884]
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x1006d1c0
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.1001b540
test eax, eax
je 0x1006d243
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 0x1006d001
movzx esi, ax
push 0
push esi
call fcn.1003b8a0
mov edi, eax
add esp, 8
test edi, edi
je 0x1006cfdb
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 0x1006cfdb
push esi
push eax
push edi
call fcn.100187f0
add esp, 0xc
mov dword [ebp - 0x87c], eax
test eax, eax
je 0x1006cfdb
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 0x1006cfa6
push edi
mov ecx, ebx
call fcn.10018550
mov eax, dword [ebp - 0x87c]
movzx ecx, word [eax]
jmp 0x1006cfac
mov eax, dword [ebp - 0x87c]
movzx ecx, cx
add eax, 2
push ecx
push eax
push edi
push dword [ebx]
call fcn.10153a5d
push eax
call fcn.10032c20
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x1006d24d
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.1006cc20
add esp, 0x10
jmp 0x1006d1bd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d010
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10020080
jmp 0x1006cfde
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
cmp esi, eax
jb 0x1006d1c0
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.1001b540
test eax, eax
je 0x1006d243
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 0x1006d150
movzx edi, ax
push 0
push edi
call fcn.1003b8a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1006d11b
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 0x1006d11b
push edi
push eax
push ebx
call fcn.100187f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1006d11b
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 0x1006d0f1
push edi
lea ecx, [ebp - 0x87c]
call fcn.10018550
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.10153a5d
push eax
call fcn.10032c20
add esp, 0x14
cmp edi, dword [esi - 8]
jg 0x1006d24d
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 0x1006d18a
lea eax, [esi - 0x10]
push eax
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x888]
add dword [eax + 4], 4
jmp 0x1006d19f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d160
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.10020080
mov esi, dword [ebp - 0x87c]
jmp 0x1006d121
lea ecx, [ebp - 0x87c]
push ecx
push edi
mov ecx, eax
call fcn.1001bef0
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 0x1006d1bd
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 0x1006ce90
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 0x1006d208
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 0x1006d227
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.10128191
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10017a40
push 0x80070057
call fcn.10017a40
int3