Function at 0x100cc5f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bf33a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x10221008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
add eax, 4
mov edi, dword [ebx + 8]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x60], 0
call fcn.10005100
mov dword [ebp - 4], 0
mov ecx, 0x102276b4
mov dword [ebp - 0x68], 0x102276b4
call fcn.100cc560
mov byte [ebp - 4], 1
cmp dword [0x102276b0], 0
jne 0x100cc688
push 1
call fcn.1018b705
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 1
mov dword [0x102276b0], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.100cc8a0
cmp dword [ebp - 0x1c], 0
je 0x100cc6b5
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100cc794
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
jb 0x100cc6d3
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x100cc6d3
lea ecx, [ebp - 0x5c]
call fcn.1000bfd0
jmp 0x100cc6f4
lea eax, [ebp - 0x61]
mov byte [ebp - 0x62], 0
push eax
lea eax, [ebp - 0x62]
mov byte [ebp - 0x61], 0
push eax
push ecx
push 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x5c]
call fcn.100d14d0
add esp, 0x14
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x60], 3
mov byte [ebp - 4], 5
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
push ecx
push dword [ebp - 0x4c]
cmovae edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x44]
call fcn.100d1830
mov esi, 0xb
mov dword [ebp - 0x60], 0xb
mov dword [ebp - 0x60], esi
lea ecx, [ebp - 0x2c]
and esi, 0xfffffff7
add esp, 8
mov dword [ebp - 0x60], esi
or esi, 4
mov dword [ebp - 4], 4
mov dword [ebp - 0x60], esi
call fcn.10004a00
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
lea ecx, [ebp - 0x44]
and esi, 0xfffffffb
mov word [ebp - 0x44], ax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 3
call fcn.10004780
and esi, 0xfffffffe
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 0
call fcn.100048a0
mov eax, dword [0x10227768]
test eax, eax
jne 0x100cc7ce
mov ecx, dword [0x10227770]
mov edx, dword [ecx]
test edx, edx
je 0x100cc7bd
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x10227770]
mov eax, dword [0x10227768]
mov esi, dword [eax]
mov eax, dword [ecx]
test eax, eax
je 0x100cc7d0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100cc7d0
mov esi, dword [eax]
push dword [ebp - 0x6c]
lea eax, [ebp - 0x2c]
push eax
push edi
push ecx
mov ecx, esi
call fcn.100d7d10
add esp, 4
mov ecx, eax
call fcn.100d09e0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004780
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1018b6f4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc