Function at 0x475570
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 [0x7a8498]
xor eax, ebp
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x475746
lea ebx, [ecx + 0xffff]
and ebx, 0xffff0000
cmp ebx, ecx
jb 0x475746
test ebx, ebx
js 0x475746
mov dword [esi + 0x50], 0xffffffff
cmp dword [ebp + 0xc], 0
jne 0x475625
push 0
call fcn.00458ed0
add esp, 4
mov edi, eax
push 0
call fcn.00458ed0
add esp, 4
lea ecx, [esi + 0x50]
push edi
push eax
push str.mode___Mode::kReadOnly
call fcn.004592d0
cmp dword [esi + 0x50], 0
je 0x475625
lea edi, [esi + 0x30]
lea eax, [esi + 0x50]
push eax
push 0xec
push str..._.._base_memory_platform_shared_memory_region_win.cc
push edi
call fcn.00458dc0
add esp, 0x10
mov ecx, edi
call fcn.00458d80
push 0x51
push str.Creating_a_region_in_read_only_mode_will_lead_to_this_region_being_non_modifiable
push eax
call fcn.00402ac0
add esp, 0xc
mov ecx, edi
call fcn.00458d90
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 0x475743
lea eax, [esi + 0x30]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x475743
push 0
push edi
push 1
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x475743
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
call fcn.004cebb0
cmp eax, 5
jg 0x475761
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
lea eax, [esi + 0x50]
push 0x20
push eax
call fcn.004be230
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.00468c80
add esp, 0x28
movzx eax, byte [esi + 0x13]
test al, al
jns 0x4756fc
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x14]
push eax
push edi
push ecx
call fcn.004697e0
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 0x475735
push dword [esi + 8]
call fcn.006c90e6
add esp, 4
mov dl, byte [esi + 0x2b]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
lea edi, [esi + 0x30]
jmp 0x475767
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00463c60
mov ecx, dword [esi + 0x78]
xor ecx, ebp
call fcn.006c9121
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 0x47581c
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 0x47581c
mov edi, dword [esi + 0x50]
test edi, edi
je 0x47581c
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
lea ecx, [edi + 1]
cmp ecx, 2
jb 0x4757fc
mov dword [esi + 8], edi
mov ebx, eax
call fcn.0045f9d0
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 0x475828
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00463c60
jmp 0x475869
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00463c60
jmp 0x475881
mov edi, esp
sub esp, 0x10
mov ebx, esp
lea eax, [esi + 0x50]
push eax
call fcn.0046d580
add esp, 4
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.0041cae0
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.00475140
mov esp, edi
mov edi, ebx
mov ebx, dword [esi + 8]
add ebx, 1
cmp ebx, 2
jb 0x475881
call fcn.0045f9d0
push dword [esi + 8]
call fcn.00474ca0
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x47574d
push dword [esi + 0x20]
call fcn.006c90e6
add esp, 4
jmp 0x47574d