Function at 0x10017f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x10146014]
xor ecx, ebp
mov dword [esi + 0x88], ecx
cmp eax, 0x38
jne 0x10018241
cmp dword [ebp + 0x18], 1
jne 0x10018241
cmp dword [ebp + 0x20], 1
jne 0x10018241
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10018241
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x10018241
cmp eax, ecx
jb 0x10018241
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], eax
jae 0x10018241
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x1c], eax
ja 0x10018241
call fcn.1006b2d0
mov ecx, eax
call fcn.10068e50
mov ebx, eax
xor eax, eax
dec eax
lea edi, [esi + 0x20]
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
mov ecx, edi
call fcn.10094d10
mov dword [esi + 0xc], ebx
mov ecx, dword [ebx + 0x18]
push edi
push dword [ebp + 0x14]
call fcn.100879e0
test eax, eax
jne 0x10018231
mov edi, esp
lea eax, [esi + 0x1c]
mov dword [eax], 0xffffffff
push eax
sub esp, 0x10
mov ebx, esp
lea ecx, [ebx + 0xc]
call fcn.10094e00
lea ecx, [ebx + 4]
push dword [ebp + 0x1c]
call fcn.10094e10
lea eax, [esi + 0x1c]
mov dword [ebx], eax
call fcn.100237c0
add esp, 0x14
mov esp, edi
mov dword [esi + 0x18], esp
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x60], xmm0
push eax
sub esp, 0x10
mov edi, esp
mov ebx, dword [ebp + 0xc]
movdqu xmm0, xmmword [ebx + 0x21]
sub esp, 0x14
movdqu xmmword [esp + 4], xmm0
lea eax, [esi + 0x40]
mov dword [esp], eax
call fcn.10081280
add esp, 0x14
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
lea ecx, [esi + 0x1c]
mov ebx, dword [ecx]
mov dword [ecx], eax
mov dword [edi + 4], eax
cmp ebx, 0xffffffff
je 0x100180a4
test ebx, ebx
je 0x100180c6
call fcn.1007c020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x100180bd
mov dword [edi + 4], ebx
call fcn.1007c020
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi + 0x60]
mov dword [edi], eax
mov dword [edi + 8], 2
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc], eax
lea eax, [esi + 0x40]
mov dword [edi + 0x10], eax
call fcn.10039680
add esp, 0x14
mov esp, dword [esi + 0x18]
mov edi, esp
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
push eax
sub esp, 0x20
mov ebx, esp
lea ecx, [ebx + 4]
lea eax, [esi + 0x60]
push eax
call fcn.1007e160
lea eax, [esi + 0x40]
mov dword [ebx], eax
call fcn.10035bf0
add esp, 0x24
mov esp, edi
lea ecx, [esi + 0x40]
call fcn.1007ee00
test al, al
je 0x1001828a
push 0xd8
call fcn.100c1c01
add esp, 4
mov ebx, eax
mov dword [esi + 0x18], esp
sub esp, 0x34
mov edi, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x10], eax
lea ecx, [edi + 8]
lea eax, [esi + 0x40]
push eax
call fcn.1007edf0
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [esi + 0x20]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x2c], eax
mov ecx, ebx
call fcn.10016ec0
mov esp, dword [esi + 0x18]
test ebx, ebx
je 0x1001818b
lock inc dword [ebx + 4]
lea eax, [ebx + 0x40]
mov dword [esi + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x100182b2
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x18]
mov dword [ebx + 0xc8], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0xcc], eax
test eax, eax
setne byte [ebx + 0xd0]
mov al, byte [edi + 0x20]
and al, 1
mov byte [ebx + 0xc2], al
mov ecx, ebx
call fcn.10016fa0
test al, al
je 0x10018251
mov eax, dword [edi + 0xc]
cmp eax, dword [ebx + 0x90]
ja 0x10018251
mov ecx, ebx
call fcn.1006aa60
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 8]
mov dword [eax], ebx
lea ecx, [esi + 0x40]
call fcn.1007ede0
lea ecx, [esi + 0x60]
call fcn.1007e1f0
mov eax, dword [esi + 0x1c]
inc eax
cmp eax, 2
jae 0x1001829d
lea ecx, [esi + 0x20]
call fcn.10094ce0
mov ecx, dword [esi + 0x88]
xor ecx, ebp
call fcn.100c2603
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100106c0
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x10018211
call fcn.100106c0
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x10018219
call fcn.100106c0
mov eax, dword [ebp + 8]
mov dword [eax], 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
je 0x100181f4
lock dec dword [ebx + 4]
jne 0x100181f4
mov eax, dword [ebx]
mov edi, dword [eax + 0x70]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
jmp 0x100181f4
call fcn.100106c0
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x100181f4
call fcn.1007c020
push dword [esi + 0x1c]
call fcn.10084410
add esp, 4
jmp 0x10018211
mov ecx, dword [esi + 0xc]
call fcn.10084100
jmp 0x100181a0