Function at 0x10045740
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 [0x100db010]
xor eax, ebp
mov dword [esi + 0x70], eax
test ecx, ecx
je 0x1004585d
lea ebx, [ecx + 0xffff]
and ebx, 0xffff0000
cmp ebx, ecx
jb 0x1004585d
test ebx, ebx
js 0x1004585d
cmp dword [ebp + 0xc], 0
je 0x10045a5f
lea edi, [esi + 0x48]
push 2
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x1004585a
lea eax, [esi + 0x34]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1004585a
push 0
push edi
push 1
lea edi, [esi + 0x34]
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1004585a
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
call fcn.10068a30
cmp eax, 6
jge 0x10045878
lea eax, [esi + 0x50]
push 0x20
push eax
call fcn.1005c3f0
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.1005b1a0
add esp, 0x28
movzx eax, byte [esi + 0x17]
test al, al
jns 0x10045837
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x18]
push eax
push edi
push ecx
call fcn.10055ed0
add esp, 0xc
cmp byte [esi + 0x33], 0
js 0x10045886
mov word [esi + 0x28], 0
mov byte [esi + 0x33], 0
lea edi, [esi + 0x34]
jmp 0x100458b0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10040870
mov ecx, dword [esi + 0x70]
xor ecx, ebp
call fcn.10099c81
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 0x100458f5
mov eax, dword [esi + 0x28]
mov word [eax], 0
mov dword [esi + 0x2c], 0
cmp byte [esi + 0x33], 0
lea edi, [esi + 0x34]
jns 0x100458b0
push dword [esi + 0x28]
call fcn.10099c44
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 0x100458e6
push dword [esi + 0xc]
call fcn.10099c44
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 0x100459a0
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 0x100459a0
mov edi, dword [esi + 0x50]
test edi, edi
je 0x100459a0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [edi + 1]
cmp eax, 2
jb 0x1004597d
mov dword [esi + 0xc], edi
call fcn.1003f7b0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100459af
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10040870
jmp 0x10045a20
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10040870
jmp 0x10045a42
mov dword [esi + 8], esp
sub esp, 0x10
mov ebx, esp
lea edi, [esi + 0x50]
push edi
call fcn.100427c0
add esp, 4
lea eax, [esi + 0xc]
mov ecx, ebx
push eax
call fcn.10003ea0
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.10003ea0
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 0x10045a1d
call fcn.1003f7b0
push dword [ebx]
call fcn.10045060
add esp, 4
mov dword [ebx], 0
mov esp, dword [esi + 8]
mov eax, dword [esi + 0xc]
add eax, 1
cmp eax, 2
jb 0x10045a42
call fcn.1003f7b0
push dword [esi + 0xc]
call fcn.10045060
add esp, 4
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
cmp byte [eax + 0xb], 0
jns 0x10045864
push dword [esi + 0x28]
call fcn.10099c44
add esp, 4
jmp 0x10045864
int3