Function at 0x140048580
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r13d, r9d
mov rbx, r8
mov r15, rdx
mov rsi, rcx
mov rbp, qword [rsp + 0xc8]
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [r12 + r13]
lea rdi, [rcx + 0x28]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rdi
mov rdx, rax
call fcn.1400039a0
mov rcx, qword [rsi + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x14004862f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebx, 0x19
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001bc70
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
jne 0x14004865e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebx, 0x1b
jmp 0x14004860f
mov r14, rax
mov edx, r13d
mov eax, r12d
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x1400486ab
test r12d, r12d
je 0x1400486ab
lea rdi, [r14 + rdx]
mov rcx, rdi
mov r12, rdx
mov rdx, rbx
mov r8, qword [rsp + 0x40]
call sub.ntdll.dll_memcpy
mov rdx, r12
xor eax, eax
mov rcx, qword [rdi + rax*8]
test rcx, rcx
je 0x1400486a2
sub rcx, rbx
mov qword [rdi + rax*8], rcx
inc rax
cmp rax, 0x40
jne 0x140048692
mov qword [sym.firefox.exe_g_shared_IPC_size], rdx
lea r8, [sym.firefox.exe_g_shared_IPC_size]
lea rdx, str.g_shared_IPC_size
mov r9d, 8
mov rcx, rsi
call fcn.140036050
mov qword [sym.firefox.exe_g_shared_IPC_size], 0
test eax, eax
je 0x1400486ed
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
jmp 0x14004860f
mov rax, qword [rsp + 0x40]
mov qword [sym.firefox.exe_g_shared_policy_size], rax
lea r8, [sym.firefox.exe_g_shared_policy_size]
lea rdx, str.g_shared_policy_size
mov r9d, 8
mov rcx, rsi
call fcn.140036050
mov qword [sym.firefox.exe_g_shared_policy_size], 0
test eax, eax
jne 0x1400486dd
mov ecx, 0x38
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
mov r9, qword [rsi + 0x40]
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi]
mov qword [rsp + 0x20], r15
mov rcx, rax
call fcn.14004ac00
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], rdi
test rbx, rbx
je 0x14004876a
mov rcx, rbx
call fcn.140048ee0
mov rcx, rbx
call fcn.14004ceb0
mov rdi, qword [rsi + 0x38]
mov rcx, rdi
mov rdx, r14
mov r8d, r13d
mov r9d, 0x400
call fcn.140048fb0
mov ebx, 4
test al, al
je 0x14004860f
mov rdi, qword [rsi]
mov rbx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 7
lea r9, [rsp + 0x48]
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400487d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebx, 0x1a
jmp 0x14004860f
mov rax, qword [rsp + 0x48]
mov qword [sym.firefox.exe_g_shared_section], rax
lea r8, [sym.firefox.exe_g_shared_section]
lea rdx, str.g_shared_section
mov r9d, 8
mov rcx, rsi
call fcn.140036050
mov qword [sym.firefox.exe_g_shared_section], 0
test eax, eax
jne 0x1400486dd
mov rcx, rsi
call fcn.14002bd50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x14004860f