Function at 0x100ce3a0
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 0x101c13aa
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x10223008]
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.100050f0
mov dword [ebp - 4], 0
mov ecx, 0x102296c4
mov dword [ebp - 0x68], 0x102296c4
call fcn.100ce310
mov byte [ebp - 4], 1
cmp dword [0x102296c0], 0
jne 0x100ce438
push 1
call fcn.1018d5b5
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 1
mov dword [0x102296c0], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.100ce650
cmp dword [ebp - 0x1c], 0
je 0x100ce465
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 0x100ce544
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
jb 0x100ce483
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x100ce483
lea ecx, [ebp - 0x5c]
call fcn.1000bfc0
jmp 0x100ce4a4
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.100d3340
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.100d36a0
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.100049f0
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.10004770
and esi, 0xfffffffe
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 0
call fcn.10004890
mov eax, dword [0x10229778]
test eax, eax
jne 0x100ce57e
mov ecx, dword [0x10229780]
mov edx, dword [ecx]
test edx, edx
je 0x100ce56d
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x10229780]
mov eax, dword [0x10229778]
mov esi, dword [eax]
mov eax, dword [ecx]
test eax, eax
je 0x100ce580
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100ce580
mov esi, dword [eax]
push dword [ebp - 0x6c]
lea eax, [ebp - 0x2c]
push eax
push edi
push ecx
mov ecx, esi
call fcn.100d9c50
add esp, 4
mov ecx, eax
call fcn.100d2850
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004770
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.1018d5a4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc