Function at 0x140009520
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 ebx, r9d
mov rdi, r8
mov r12, rdx
mov rsi, rcx
mov r14, qword [rsp + 0xc8]
mov r15d, dword [rsp + 0xc0]
mov rax, qword [0x140062018]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [r15 + rbx]
lea rbp, [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, rbp
mov rdx, rax
call fcn.140009c00
mov rcx, qword [rsi + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
jbe 0x140009790
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400097a0
mov r12, rax
mov rbp, rbx
mov r14d, ebx
mov r13d, r15d
test rdi, rdi
je 0x140009614
test r15d, r15d
je 0x140009614
lea rbx, [r12 + r14]
mov rcx, rbx
mov rdx, rdi
mov r8, r13
call sub.ntdll.dll_memcpy
xor eax, eax
mov rcx, qword [rbx + rax*8]
test rcx, rcx
jne 0x14000960b
inc rax
cmp rax, 0x40
jne 0x1400095f7
jmp 0x140009614
sub rcx, rdi
mov qword [rbx + rax*8], rcx
jmp 0x140009600
mov qword [sym.firefox.exe_g_shared_IPC_size], r14
lea r8, [sym.firefox.exe_g_shared_IPC_size]
lea rdx, str.g_shared_IPC_size
mov r9d, 8
mov rcx, rsi
call fcn.140008c10
mov qword [sym.firefox.exe_g_shared_IPC_size], 0
test eax, eax
jne 0x14000977c
mov qword [sym.firefox.exe_g_shared_policy_size], r13
lea r8, [sym.firefox.exe_g_shared_policy_size]
lea rdx, str.g_shared_policy_size
mov r9d, 8
mov rcx, rsi
call fcn.140008c10
mov qword [sym.firefox.exe_g_shared_policy_size], 0
test eax, eax
jne 0x14000977c
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 rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.140009880
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], rdi
test rbx, rbx
jne 0x1400097b7
mov rcx, rdi
mov rdx, r12
mov r8d, ebp
mov r9d, 0x400
call fcn.140009910
test al, al
je 0x1400097d0
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
je 0x1400097d7
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.140008c10
mov qword [sym.firefox.exe_g_shared_section], 0
test eax, eax
jne 0x14000977c
mov rcx, rsi
call fcn.140009800
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002fae0
mov eax, edi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
jmp 0x14000975c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov edi, 0x19
jmp 0x14000975c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov edi, 0x1b
jmp 0x14000975c
mov rcx, rbx
call fcn.140002aa0
mov rcx, rbx
call fcn.140052570
mov rdi, qword [rsi + 0x38]
jmp 0x1400096bb
mov edi, 4
jmp 0x14000975c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov edi, 0x1a
jmp 0x14000975c