Function at 0x10171d70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x10171ee0
lea ebx, [ecx + 0xffff]
and ebx, 0xffff0000
cmp ebx, ecx
jb 0x10171ee0
test ebx, ebx
js 0x10171ee0
cmp dword [ebp + 0xc], 0
je 0x10172034
mov dword [esi + 0x4c], 0xffffffff
mov dword [esi + 0x48], 0xffffffff
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], 0xffffffff
lea edi, [esi + 0x48]
push 2
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x10171edd
lea eax, [esi + 0x30]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x10171edd
push 0
push edi
push 1
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x10171edd
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
call fcn.10170970
cmp eax, 5
jg 0x10171efb
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
lea eax, [esi + 0x50]
push 0x20
push eax
call fcn.10172040
add esp, 8
movaps xmm0, xmmword [esi + 0x50]
movaps xmm1, xmmword [esi + 0x60]
sub esp, 0x28
movups xmmword [esp + 0x18], xmm1
movups xmmword [esp + 8], xmm0
lea edi, [esi + 8]
mov dword [esp], edi
mov dword [esp + 4], str.CrSharedMem__016llx_016llx_016llx_016llx
call fcn.1015e100
add esp, 0x28
movzx eax, byte [esi + 0x13]
test al, al
jns 0x10171e96
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x14]
push eax
push edi
push ecx
call fcn.1015f230
add esp, 0xc
cmp byte [esi + 0x13], 0
movq xmm0, qword [esi + 0x14]
movq qword [esi + 0x20], xmm0
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], eax
mov byte [esi + 0x1f], 0
mov word [esi + 0x14], 0
jns 0x10171ecf
push dword [esi + 8]
call fcn.10205096
add esp, 4
mov dl, byte [esi + 0x2b]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
lea edi, [esi + 0x30]
jmp 0x10171f01
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10151970
mov ecx, dword [esi + 0x78]
xor ecx, ebp
call fcn.10205d16
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x14], 0xc
test dl, dl
movzx edx, dl
cmovs edx, ecx
mov dword [esi + 0x18], edi
lea ecx, [esi + 0x20]
cmovs ecx, eax
mov dword [esi + 0x1c], 0
test edx, edx
cmove ecx, edx
lea eax, [esi + 0x14]
push ecx
push ebx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
test eax, eax
je 0x10171fb6
mov ebx, eax
mov dword [esi + 0x50], 0xffffffff
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
lea ecx, [esi + 0x50]
push 0
push 0
push 7
push ecx
push eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
mov edi, eax
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test edi, edi
je 0x10171fb6
mov edi, dword [esi + 0x50]
test edi, edi
je 0x10171fb6
mov dword [esi + 8], 0
call dword [sym.imp.kernel32.dll_GetLastError]
xor ebx, ebx
lea ecx, [edi + 1]
cmp ecx, 2
jb 0x10171f96
mov dword [esi + 8], edi
mov ebx, eax
call fcn.1014e410
mov eax, ebx
mov ebx, edi
push eax
call dword [sym.imp.kernel32.dll_SetLastError]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10171fc2
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10151970
jmp 0x10172002
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10151970
jmp 0x1017201a
mov dword [esi + 4], esp
sub esp, 0x10
mov ebx, esp
lea edi, [esi + 0x50]
push edi
call fcn.10163130
add esp, 4
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.1007f268
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov edx, ebx
call fcn.10171a30
mov esp, dword [esi + 4]
mov ebx, dword [esi + 8]
add ebx, 1
cmp ebx, 2
jb 0x1017201a
call fcn.1014e410
push dword [esi + 8]
call fcn.1016f280
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x10171ee7
push dword [esi + 0x20]
call fcn.10205096
add esp, 4
jmp 0x10171ee7
int3