Function at 0x140002800
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r15, r9
mov r14, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, qword [r8 + 8]
mov eax, dword [rbx + 0x84]
cmp eax, 1
jbe 0x140002a24
sub ebx, dword [r8]
add ebx, 0x90
cmp eax, 1
jbe 0x140002a2f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002a51
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
lea rsi, [rsp + 0x40]
mov rcx, rdi
mov r8d, 8
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400029af
cmp dword [rsp + 0x40], 8
jne 0x1400029af
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov eax, ebx
lea rbx, sym.firefox.exe_Ordinal_0
and rbx, 0xfffffffffffffffc
add rbx, rax
lea rcx, [rsp + 0x50]
mov r8d, 8
mov rdx, rbx
mov r9, r15
call fcn.140007e10
mov eax, dword [rsp + 0x6c]
test eax, eax
js 0x140002a85
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x48]
mov r9d, 8
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400029e0
xor esi, esi
cmp qword [rsp + 0x40], 8
jne 0x1400029e0
cmp dword [rsp + 0x6c], 0
js 0x140002971
lea rax, [rsp + 0x68]
mov r9d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test esi, esi
jne 0x14000297a
mov byte [r14 + 0x10], 0
mov rax, rdi
add rax, 1
cmp rax, 2
jb 0x140002990
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14004ce20
mov rax, r14
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x16
mov dword [r14 + 0xc], ecx
jmp 0x14000297a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x63
mov dword [r14 + 0xc], ecx
mov esi, 1
cmp dword [rsp + 0x6c], 0
jns 0x14000294d
jmp 0x140002971
xor ebx, ebx
cmp eax, 1
ja 0x140002848
mov byte [r14 + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rax
movabs rax, 0x800700c10000003c
mov qword [r14 + 8], rax
jmp 0x140002990
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x43
mov dword [r14 + 0xc], ecx
jmp 0x14000297a
mov byte [r14 + 0x10], 1
lea rcx, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [r14], rcx
mov dword [r14 + 8], 0x5c
mov dword [r14 + 0xc], eax
jmp 0x14000297a