Function at 0x140012c20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, qword [r8 + 0x18]
mov eax, dword [rbx + 0x84]
cmp eax, 0x10
mov ecx, 0x10
cmovb ecx, eax
cmp ecx, 1
jbe 0x140012e7c
mov r14, r8
add rbx, 0x90
mov eax, dword [r8 + 0x10]
mov ebp, ebx
sub ebp, eax
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 0x140012e9a
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov dword [rax + 0x10], ebp
lea rdx, [rsp + 0x60]
mov qword [rdx], 0
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rcx, rdi
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140012e4e
cmp dword [rsp + 0x38], 8
jne 0x140012e4e
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140012ac0
mov rcx, qword [r14]
mov rax, qword [r14 + 0x30]
mov rdx, rbx
test rax, rax
je 0x140012d3f
mov rdx, rbx
cmp qword [r14 + 0x10], rbx
ja 0x140012d3f
mov rdx, rbx
cmp qword [r14 + 0x20], rbx
jb 0x140012d3f
mov rdx, rbx
sub rdx, qword [r14 + 8]
add rax, rdx
mov rdx, rax
lea r12, [rsp + 0x58]
mov qword [r12 - 0x18], rdx
mov qword [r12 - 0x10], 8
mov qword [r12 - 8], rcx
mov qword [r12], 0
mov qword [rsp + 0x20], r12
mov r8d, 8
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140012ec5
mov ecx, dword [rsp + 0x5c]
test ecx, ecx
js 0x140012ee2
lea r15, [rsp + 0x60]
mov rcx, r14
mov rdx, r15
call fcn.140012ac0
cmp byte [r15 + 0x10], 0
jne 0x140012ef9
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x140012dc1
cmp qword [r14 + 0x10], rbx
ja 0x140012dc1
cmp qword [r14 + 0x20], rbx
jb 0x140012dc1
sub rbx, qword [r14 + 8]
add rbx, rax
mov rcx, qword [r14]
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 0x140012f08
mov bl, 1
cmp dword [rsp + 0x5c], 0
js 0x140012e11
mov r9d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
je 0x140012e19
mov byte [rsi + 0x10], 0
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140012e2e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002ef70
nop
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
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 [rsi + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [rsi], rax
mov dword [rsi + 8], 0x16
mov dword [rsi + 0xc], ecx
jmp 0x140012e19
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [rsi], rax
movabs rax, 0x800700c100000035
mov qword [rsi + 8], rax
jmp 0x140012e2e
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._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [rsi], rax
mov dword [rsi + 8], 0x3c
jmp 0x140012e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x5c], ecx
jmp 0x140012d82
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_ImportDir.h
mov qword [rsi], rax
mov dword [rsi + 8], 0x51
jmp 0x140012f32
mov rax, qword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
jmp 0x140012f28
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_NativeNt.h
mov edx, 0x5f3
mov byte [rsi + 0x10], 1
mov qword [rsi], rax
mov dword [rsi + 8], edx
mov dword [rsi + 0xc], ecx
xor ebx, ebx
jmp 0x140012deb