Function at 0x10039a70
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 ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x10039c8f
lea eax, [ecx + 0xffff]
and eax, 0xffff0000
cmp eax, ecx
jb 0x10039c8f
test eax, eax
js 0x10039c8f
mov dword [esi], eax
cmp dword [ebp + 0xc], 0
je 0x10039c98
xor eax, eax
dec eax
lea ebx, [esi + 0x48]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [esi + 0x40], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x30], xmm0
push 2
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x10039c8c
lea edi, [esi + 0x30]
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x10039c8c
push 0
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x10039c8c
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
call fcn.100a6b30
cmp eax, 5
jle 0x10039c9b
mov dword [esi + 0x14], 0xc
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0
movzx eax, byte [esi + 0x2b]
test al, al
jns 0x10039b49
mov edx, dword [esi + 0x24]
jmp 0x10039b4e
mov edx, eax
and edx, 0x7f
xor ecx, ecx
test edx, edx
jne 0x10039cf0
lea eax, [esi + 0x14]
push ecx
push dword [esi]
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x10039c5d
mov ebx, eax
lea edi, [esi + 0x50]
mov dword [edi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
push ecx
push ecx
push 7
push edi
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 0x10039c5d
mov edi, dword [esi + 0x50]
test edi, edi
je 0x10039c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [edi + 1]
cmp eax, 2
jb 0x10039c85
call fcn.1007c020
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10039d10
mov dword [esi], esp
sub esp, 0x10
mov ebx, esp
lea eax, [esi + 0x50]
push eax
call fcn.10081260
add esp, 4
mov dword [ebx], 0
test edi, edi
je 0x10039c25
cmp edi, 0xffffffff
je 0x10039d1f
call fcn.1007c020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [ebx], edi
call fcn.1007c020
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
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.100845b0
mov esp, dword [esi]
xor edi, edi
lea eax, [edi + 1]
cmp eax, 2
jb 0x10039c67
call fcn.1007c020
push edi
call fcn.10084410
add esp, 4
jmp 0x10039c67
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.100354c0
cmp byte [esi + 0x2b], 0
js 0x10039d00
mov ecx, dword [esi + 0x78]
xor ecx, ebp
call fcn.100c2603
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x10039bc9
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.100354c0
jmp 0x10039c71
int3
pcmpeqd xmm0, xmm0
lea ebx, [esi + 0x50]
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
push 0x20
push ebx
call fcn.10084670
add esp, 8
movaps xmm0, xmmword [ebx]
movaps xmm1, xmmword [ebx + 0x10]
sub esp, 0x28
movups xmmword [esp + 0x18], xmm1
movups xmmword [esp + 8], xmm0
lea ebx, [esi + 8]
mov dword [esp], ebx
mov dword [esp + 4], str.CrSharedMem__016llx_016llx_016llx_016llx
call fcn.10099130
add esp, 0x28
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x10039d2d
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0xc]
jmp 0x10039d30
test al, al
jns 0x10039d82
mov ecx, dword [esi + 0x20]
jmp 0x10039b58
push dword [esi + 0x20]
call fcn.100c1c31
add esp, 4
jmp 0x10039c71
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.100354c0
jmp 0x10039c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x10039c1c
and eax, 0x7f
lea ecx, [esi + 0x14]
push eax
push ebx
push ecx
call fcn.100953a0
add esp, 0xc
cmp byte [esi + 0x2b], 0
jns 0x10039d4f
push dword [esi + 0x20]
call fcn.100c1c31
add esp, 4
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], eax
movq xmm0, qword [esi + 0x14]
movq qword [esi + 0x20], xmm0
mov byte [esi + 0x1f], 0
mov word [esi + 0x14], 0
cmp byte [esi + 0x13], 0
jns 0x10039d7a
push dword [esi + 8]
call fcn.100c1c31
add esp, 4
lea edi, [esi + 0x30]
jmp 0x10039b2b
lea ecx, [esi + 0x20]
jmp 0x10039b58