Function at 0x1006de20
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 [0x10123014]
xor eax, ebp
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x1006df91
lea ebx, [ecx + 0xffff]
and ebx, 0xffff0000
cmp ebx, ecx
jb 0x1006df91
test ebx, ebx
js 0x1006df91
cmp dword [ebp + 0xc], 0
je 0x1006e0e4
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 0x1006df8e
lea eax, [esi + 0x30]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1006df8e
push 0
push edi
push 1
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1006df8e
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
call fcn.100a1d90
cmp eax, 5
jg 0x1006dfac
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
lea eax, [esi + 0x50]
push 0x20
push eax
call fcn.1006e110
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.1008a320
add esp, 0x28
movzx eax, byte [esi + 0x13]
test al, al
jns 0x1006df46
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x14]
push eax
push edi
push ecx
call fcn.10081730
add esp, 0xc
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
cmp byte [esi + 0x13], 0
jns 0x1006df7f
push dword [esi + 8]
call fcn.100de098
add esp, 4
movzx edx, byte [esi + 0x2b]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
lea edi, [esi + 0x30]
jmp 0x1006dfb2
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10064b10
mov ecx, dword [esi + 0x78]
xor ecx, ebp
call fcn.100dea63
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 0x1006e067
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 0x1006e067
mov edi, dword [esi + 0x50]
test edi, edi
je 0x1006e067
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
lea ecx, [edi + 1]
cmp ecx, 2
jb 0x1006e047
mov dword [esi + 8], edi
mov ebx, eax
call fcn.10060950
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 0x1006e073
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10064b10
jmp 0x1006e0b4
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10064b10
jmp 0x1006e0ca
mov edi, esp
sub esp, 0x10
mov ebx, esp
lea eax, [esi + 0x50]
push eax
call fcn.10069d50
add esp, 4
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.100185c0
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
lea eax, [esi + 0x50]
mov dword [ebx + 0xc], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.1006dba0
mov esp, edi
mov edi, ebx
mov ebx, dword [esi + 8]
inc ebx
cmp ebx, 2
jb 0x1006e0ca
call fcn.10060950
push dword [esi + 8]
call fcn.1006d7a0
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x1006df98
push dword [esi + 0x20]
call fcn.100de098
add esp, 4
jmp 0x1006df98
int3