Function at 0x49a930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, esp
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esi + 0x70], eax
test ecx, ecx
je 0x49aa4d
lea ebx, [ecx + 0xffff]
and ebx, 0xffff0000
cmp ebx, ecx
jb 0x49aa4d
test ebx, ebx
js 0x49aa4d
cmp dword [ebp + 0xc], 0
je 0x49ac4f
lea edi, [esi + 0x48]
push 2
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x49aa4a
lea eax, [esi + 0x34]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x49aa4a
push 0
push edi
push 1
lea edi, [esi + 0x34]
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x49aa4a
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
call fcn.00499680
cmp eax, 6
jge 0x49aa68
lea eax, [esi + 0x50]
push 0x20
push eax
call fcn.004d4c90
add esp, 8
movups xmm0, xmmword [esi + 0x50]
movups xmm1, xmmword [esi + 0x60]
sub esp, 0x28
movups xmmword [esp + 0x18], xmm1
movups xmmword [esp + 8], xmm0
lea edi, [esi + 0xc]
mov dword [esp], edi
mov dword [esp + 4], str.CrSharedMem__016llx_016llx_016llx_016llx
call fcn.0048b8d0
add esp, 0x28
movzx eax, byte [esi + 0x17]
test al, al
jns 0x49aa27
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x18]
push eax
push edi
push ecx
call fcn.0048c610
add esp, 0xc
cmp byte [esi + 0x33], 0
js 0x49aa76
mov word [esi + 0x28], 0
mov byte [esi + 0x33], 0
lea edi, [esi + 0x34]
jmp 0x49aaa0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00484770
mov ecx, dword [esi + 0x70]
xor ecx, ebp
call fcn.00596351
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
lea ecx, [esi + 0x28]
mov dword [esi + 4], ecx
xor ecx, ecx
xor edx, edx
jmp 0x49aae5
mov eax, dword [esi + 0x28]
mov word [eax], 0
mov dword [esi + 0x2c], 0
cmp byte [esi + 0x33], 0
lea edi, [esi + 0x34]
jns 0x49aaa0
push dword [esi + 0x28]
call fcn.00596316
add esp, 4
mov dword [esi + 0x30], 0
mov eax, dword [esi + 0x20]
mov dword [esi + 0x30], eax
movsd xmm0, qword [esi + 0x18]
movsd qword [esi + 0x28], xmm0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
cmp byte [esi + 0x17], 0
jns 0x49aad6
push dword [esi + 0xc]
call fcn.00596316
add esp, 4
lea eax, [esi + 0x28]
mov dword [esi + 4], eax
mov dl, byte [esi + 0x33]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x18], 0xc
test dl, dl
movzx edx, dl
cmovs edx, ecx
mov dword [esi + 0x1c], edi
lea ecx, [esi + 0x28]
cmovs ecx, eax
mov dword [esi + 0x20], 0
test edx, edx
cmove ecx, edx
lea eax, [esi + 0x18]
push ecx
push ebx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x49ab90
mov ebx, eax
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 0x49ab90
mov edi, dword [esi + 0x50]
test edi, edi
je 0x49ab90
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [edi + 1]
cmp eax, 2
jb 0x49ab6d
mov dword [esi + 0xc], edi
call fcn.004835e0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49ab9f
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00484770
jmp 0x49ac10
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00484770
jmp 0x49ac32
mov dword [esi + 8], esp
sub esp, 0x10
mov ebx, esp
lea edi, [esi + 0x50]
push edi
call fcn.0048f4c0
add esp, 4
lea eax, [esi + 0xc]
mov ecx, ebx
push eax
call fcn.0040894a
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
push ebx
call fcn.0040894a
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x10], xmm0
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jb 0x49ac0d
call fcn.004835e0
push dword [ebx]
call fcn.00498c60
add esp, 4
mov dword [ebx], 0
mov esp, dword [esi + 8]
mov eax, dword [esi + 0xc]
add eax, 1
cmp eax, 2
jb 0x49ac32
call fcn.004835e0
push dword [esi + 0xc]
call fcn.00498c60
add esp, 4
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
cmp byte [eax + 0xb], 0
jns 0x49aa54
push dword [esi + 0x28]
call fcn.00596316
add esp, 4
jmp 0x49aa54
int3