Function at 0x4d31e0
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 [0x674014]
xor eax, ebp
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x4d3350
lea ebx, [ecx + 0xffff]
and ebx, 0xffff0000
cmp ebx, ecx
jb 0x4d3350
test ebx, ebx
js 0x4d3350
cmp dword [ebp + 0xc], 0
je 0x4d34a3
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 0x4d334d
lea eax, [esi + 0x30]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4d334d
push 0
push edi
push 1
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4d334d
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
call fcn.004d1ef0
cmp eax, 5
jg 0x4d336b
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
lea eax, [esi + 0x50]
push 0x20
push eax
call fcn.00450050
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.004c0cb0
add esp, 0x28
movzx eax, byte [esi + 0x13]
test al, al
jns 0x4d3306
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x14]
push eax
push edi
push ecx
call fcn.004c1a40
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 0x4d333f
push dword [esi + 8]
call fcn.005dc756
add esp, 4
mov dl, byte [esi + 0x2b]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
lea edi, [esi + 0x30]
jmp 0x4d3371
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004b9db0
mov ecx, dword [esi + 0x78]
xor ecx, ebp
call fcn.005dd6f3
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 0x4d3426
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 0x4d3426
mov edi, dword [esi + 0x50]
test edi, edi
je 0x4d3426
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
lea ecx, [edi + 1]
cmp ecx, 2
jb 0x4d3406
mov dword [esi + 8], edi
mov ebx, eax
call fcn.004b63a0
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 0x4d3432
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004b9db0
jmp 0x4d3473
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004b9db0
jmp 0x4d3489
mov edi, esp
sub esp, 0x10
mov ebx, esp
lea eax, [esi + 0x50]
push eax
call fcn.004c4ef0
add esp, 4
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.0041dad8
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.004d2f80
mov esp, edi
mov edi, ebx
mov ebx, dword [esi + 8]
inc ebx
cmp ebx, 2
jb 0x4d3489
call fcn.004b63a0
push dword [esi + 8]
call fcn.004d0370
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x4d3357
push dword [esi + 0x20]
call fcn.005dc756
add esp, 4
jmp 0x4d3357
int3