Function at 0x140009660
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 [0x140061018]
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.140009d40
mov rcx, qword [rsi + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
jbe 0x1400098d0
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 0x1400098e0
mov r12, rax
mov rbp, rbx
mov r14d, ebx
mov r13d, r15d
test rdi, rdi
je 0x140009754
test r15d, r15d
je 0x140009754
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 0x14000974b
inc rax
cmp rax, 0x40
jne 0x140009737
jmp 0x140009754
sub rcx, rdi
mov qword [rbx + rax*8], rcx
jmp 0x140009740
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.140008d50
mov qword [sym.firefox.exe_g_shared_IPC_size], 0
test eax, eax
jne 0x1400098bc
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.140008d50
mov qword [sym.firefox.exe_g_shared_policy_size], 0
test eax, eax
jne 0x1400098bc
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.1400099c0
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x38], rdi
test rbx, rbx
jne 0x1400098f7
mov rcx, rdi
mov rdx, r12
mov r8d, ebp
mov r9d, 0x400
call fcn.140009a50
test al, al
je 0x140009910
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 0x140009917
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.140008d50
mov qword [sym.firefox.exe_g_shared_section], 0
test eax, eax
jne 0x1400098bc
mov rcx, rsi
call fcn.140009940
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002f4d0
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 0x14000989c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov edi, 0x19
jmp 0x14000989c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov edi, 0x1b
jmp 0x14000989c
mov rcx, rbx
call fcn.140002cf0
mov rcx, rbx
call fcn.140051ea0
mov rdi, qword [rsi + 0x38]
jmp 0x1400097fb
mov edi, 4
jmp 0x14000989c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov edi, 0x1a
jmp 0x14000989c