Function at 0x140003be0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, qword [r8 + 0x18]
mov eax, dword [rbx + 0x84]
cmp eax, 0x10
mov ecx, 0x10
cmovb ecx, eax
cmp ecx, 1
jbe 0x140003d8b
mov r14, r8
mov r12, qword [r8 + 0x10]
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 0x140003dac
add rbx, 0x90
mov eax, ebx
sub eax, r12d
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x38]
mov rcx, rdi
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003ddd
cmp dword [rsp + 0x38], 8
jne 0x140003ddd
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14000e240
mov rax, qword [r14 + 0x30]
mov rdx, rbx
test rax, rax
je 0x140003d08
mov rdx, rbx
cmp qword [r14 + 0x10], rbx
ja 0x140003d08
mov rdx, rbx
cmp qword [r14 + 0x20], rbx
jb 0x140003d08
mov rcx, rbx
sub rcx, qword [r14 + 8]
add rax, rcx
mov rdx, rax
mov rcx, qword [r14]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], 8
mov qword [rsp + 0x50], rcx
lea r12, [rsp + 0x58]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], r12
mov r8d, 8
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140003e0b
mov ecx, dword [rsp + 0x5c]
test ecx, ecx
js 0x140003e2b
lea rcx, [rsp + 0x68]
mov rdx, r14
call fcn.14000e240
cmp byte [rsp + 0x78], 0
je 0x140003eb3
mov rax, qword [rsp + 0x68]
mov edx, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x74]
mov byte [rsi + 0x10], 1
mov qword [rsi], rax
mov dword [rsi + 8], edx
jmp 0x140003e40
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_obj_x86_64_w64_mingw32_dist_include_mozilla_ImportDir.h
mov qword [rsi], rax
movabs rax, 0x800700c100000035
mov qword [rsi + 8], rax
jmp 0x140003e88
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_obj_x86_64_w64_mingw32_dist_include_mozilla_ImportDir.h
mov qword [rsi], rax
mov dword [rsi + 8], 0x3c
mov dword [rsi + 0xc], ecx
jmp 0x140003e73
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_obj_x86_64_w64_mingw32_dist_include_mozilla_ImportDir.h
mov qword [rsi], rax
mov dword [rsi + 8], 0x16
mov dword [rsi + 0xc], ecx
jmp 0x140003e73
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x5c], ecx
test ecx, ecx
jns 0x140003d57
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_obj_x86_64_w64_mingw32_dist_include_mozilla_ImportDir.h
mov qword [rsi], rax
mov dword [rsi + 8], 0x51
mov dword [rsi + 0xc], ecx
xor ebx, ebx
cmp dword [rsp + 0x5c], 0
js 0x140003e6b
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x58]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
je 0x140003e73
mov byte [rsi + 0x10], 0
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140003e88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140003f2a
mov rax, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [r14]
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x140003ed2
cmp qword [r14 + 0x10], rbx
ja 0x140003ed2
cmp qword [r14 + 0x20], rbx
jb 0x140003ed2
sub rbx, qword [r14 + 8]
add rbx, rax
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
mov r9d, 8
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003f05
mov bl, 1
cmp dword [rsp + 0x5c], 0
jns 0x140003e4c
jmp 0x140003e6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, [0x1400f79ef]
mov edx, 0x5e6
jmp 0x140003d7c
call fcn.1400c8850
int3