Function at 0x10019000
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 0x100192c8
cmp dword [ebp + 0x18], 1
jne 0x100192c8
cmp dword [ebp + 0x20], 1
jne 0x100192c8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100192c8
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x100192c8
cmp eax, ecx
jb 0x100192c8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], eax
jae 0x100192c8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x1c], eax
ja 0x100192c8
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 0x10019311
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 0x10019144
test ebx, ebx
je 0x10019166
call fcn.1007c020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1001915d
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 0x10019321
push 0xc8
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.100184f0
mov esp, dword [esi + 0x18]
test ebx, ebx
je 0x1001922b
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 0x10019349
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x18]
mov dword [ebx + 0xc0], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0xc4], eax
mov al, byte [edi + 0x20]
and al, 1
mov byte [ebx + 0xba], al
mov ecx, ebx
call fcn.100185c0
test al, al
je 0x100192d8
mov eax, dword [edi + 0xc]
cmp eax, dword [ebx + 0x90]
ja 0x100192d8
mov ecx, ebx
call fcn.10019360
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 0x10019334
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 0x100192b0
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 0x1001928b
lock dec dword [ebx + 4]
jne 0x1001928b
mov eax, dword [ebx]
mov edi, dword [eax + 0x70]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
jmp 0x1001928b
call fcn.100106c0
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x100192a8
call fcn.100106c0
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x1001928b
call fcn.1007c020
push dword [esi + 0x1c]
call fcn.10084410
add esp, 4
jmp 0x100192a8
mov ecx, dword [esi + 0xc]
call fcn.10084100
jmp 0x10019240