Function at 0x45b280
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e98f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
push 0
add eax, ecx
mov dword [ebp - 0x1c], ecx
push eax
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x1c], eax
je 0x45b32b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x45b30e
cmp ecx, 0xffffffff
je 0x45b30e
call fcn.00413e80
push dword [edi + 0x1c]
call fcn.00415030
add esp, 4
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45b322
cmp eax, 0xffffffff
je 0x45b322
mov dword [edi + 0x1c], eax
call fcn.00413e80
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x45b4ef
cmp eax, 0xffffffff
je 0x45b4ef
push 0
push 0
push 7
lea ecx, [ebp - 0x14]
push ecx
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x45b36f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, 0x1a
jmp 0x45b4fc
push 0
push 0
push 0
push 6
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x45b399
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, 0x1b
jmp 0x45b4fc
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x45b3d5
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x45b3d5
push edx
push ecx
push eax
call fcn.0056a3d0
mov edx, dword [ebp - 0x18]
add esp, 0xc
xor eax, eax
nop dword [eax]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x45b3cd
sub ecx, dword [ebp - 0x24]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x190
jb 0x45b3c0
mov eax, dword [ebp - 0x14]
mov ecx, edi
push 0
push 4
push 0x634c18
push str.g_shared_section
mov dword [0x634c18], eax
call fcn.004545d0
mov dword [ebp - 0x18], eax
mov dword [0x634c18], 0
test eax, eax
je 0x45b413
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
jmp 0x45b4fc
mov eax, dword [ebp - 0x1c]
mov ecx, edi
push 0
push 4
push 0x634b40
push str.g_shared_IPC_size
mov dword [0x634b40], eax
call fcn.004545d0
mov dword [ebp - 0x18], eax
mov dword [0x634b40], 0
test eax, eax
jne 0x45b403
mov eax, dword [ebp + 0x14]
mov ecx, edi
push 0
push 4
push 0x634b44
push str.g_shared_policy_size
mov dword [0x634b44], eax
call fcn.004545d0
mov dword [ebp - 0x18], eax
mov dword [0x634b44], 0
test eax, eax
jne 0x45b403
push 0x1c
call fcn.00406b5e
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x45b4ad
push dword [ebp - 0x28]
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
push dword [edi + 0x28]
push dword [edi + 8]
push dword [edi]
call fcn.0045b520
jmp 0x45b4af
xor eax, eax
push eax
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0045b5e0
mov ecx, dword [edi + 0x24]
push 0x20000
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0045b610
test al, al
jne 0x45b4dd
mov eax, 4
jmp 0x45b4fc
mov ecx, edi
call fcn.0045bad0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x45b4fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, 0x19
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 0x14