Function at 0x140079030
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
call fcn.140066de0
mov edi, 0x1da
mov word [rbx], ax
cmp ax, di
je 0x14007906a
movzx ecx, ax
call fcn.140065f90
cmp ax, di
je 0x14007906a
mov eax, 2
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x48], r12
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 2], ax
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 4], ax
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 6], ax
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 8], ax
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 0xa], ax
call fcn.140066b70
mov rcx, rsi
mov dword [rbx + 0xc], eax
call fcn.140066b70
mov rcx, rsi
mov dword [rbx + 0x10], eax
call fcn.140066b70
mov r12d, 1
mov dword [rbx + 0x14], eax
mov r9, qword [rsi]
lea rcx, [rbx + 0x18]
lea edx, [r12 + 0x4f]
mov r8d, r12d
call fcn.1401c1e14
cmp rax, r12
jne 0x14007919f
mov rcx, rsi
call fcn.140066b70
mov rcx, rsi
mov dword [rbx + 0x68], eax
call fcn.140066b70
mov rcx, rsi
call fcn.140066de0
mov rcx, rsi
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 0x7a], ax
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 0x7c], ax
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 0x7e], ax
call fcn.140066de0
mov rcx, rsi
mov word [rbx + 0x80], ax
call fcn.140066de0
mov rcx, rsi
call fcn.140066b70
mov rcx, rsi
call fcn.140066b70
mov rcx, rsi
call fcn.140066b70
mov rcx, rsi
call fcn.140066b70
mov rcx, rsi
mov dword [rbx + 0xa0], eax
call fcn.140066b70
mov rcx, rsi
call fcn.140066b70
mov rcx, rsi
call fcn.140066b70
mov r9, qword [rsi]
lea rcx, [rbx + 0xb8]
mov r8d, r12d
mov edx, 0x168
call fcn.1401c1e14
cmp rax, r12
je 0x1400791b1
mov eax, 2
mov r12, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
movzx ecx, word [rbx]
mov qword [rsp + 0x58], r15
xor r15d, r15d
mov qword [rbx + 0xa8], r15
mov qword [rbx + 0xb0], r15
mov qword [rbx + 0x88], r15
mov qword [rbx + 0x90], r15
mov qword [rbx + 0x98], r15
mov word [rbx + 0x82], r15w
call fcn.140065f90
cmp ax, di
jne 0x1400792b2
movzx ecx, word [rbx]
mov word [rbx + 0x7a], r12w
call fcn.140065f90
movzx ecx, word [rbx + 2]
mov word [rbx], ax
call fcn.140065f90
movzx ecx, word [rbx + 4]
mov word [rbx + 2], ax
call fcn.140065f90
movzx ecx, word [rbx + 6]
mov word [rbx + 4], ax
call fcn.140065f90
movzx ecx, word [rbx + 8]
mov word [rbx + 6], ax
call fcn.140065f90
movzx ecx, word [rbx + 0xa]
mov word [rbx + 8], ax
call fcn.140065f90
mov ecx, dword [rbx + 0xc]
mov word [rbx + 0xa], ax
call fcn.140065f60
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0xc], eax
call fcn.140065f60
mov ecx, dword [rbx + 0x14]
mov dword [rbx + 0x10], eax
call fcn.140065f60
mov ecx, dword [rbx + 0x68]
mov dword [rbx + 0x14], eax
call fcn.140065f60
movzx ecx, word [rbx + 0x7c]
mov dword [rbx + 0x68], eax
call fcn.140065f90
movzx ecx, word [rbx + 0x7e]
mov word [rbx + 0x7c], ax
call fcn.140065f90
movzx ecx, word [rbx + 0x80]
mov word [rbx + 0x7e], ax
call fcn.140065f90
mov ecx, dword [rbx + 0xa0]
mov word [rbx + 0x80], ax
call fcn.140065f60
mov dword [rbx + 0xa0], eax
jmp 0x1400792b7
mov word [rbx + 0x7a], r15w
movzx eax, word [rbx + 2]
mov ecx, 0xff00
mov qword [rsp + 0x40], rbp
and ax, cx
mov ecx, 0x100
mov qword [rsp + 0x50], r14
cmp ax, cx
jne 0x1400793b5
movzx eax, word [rbx + 0xa]
movzx r14d, word [rbx + 8]
mov edx, 8
imul r14d, eax
movsxd rbp, r14d
mov rcx, rbp
call fcn.1401be1f8
mov edx, 8
mov rcx, rbp
mov rdi, rax
mov qword [rbx + 0xa8], rax
call fcn.1401be1f8
mov qword [rbx + 0xb0], rax
test rdi, rdi
je 0x1400793d8
test rax, rax
je 0x1400793d8
lea eax, [r14*8 + 0x200]
mov rdi, r15
mov dword [rbx + 0xa4], eax
test r14d, r14d
jle 0x140079375
nop
mov rcx, qword [rsi]
call fcn.1401c1a94
test eax, eax
jne 0x140079375
mov rcx, rsi
cmp word [rbx + 0x7a], r15w
je 0x14007935d
call fcn.140066b20
jmp 0x140079362
call fcn.140066b70
mov rcx, qword [rbx + 0xa8]
inc rdi
mov dword [rcx + rdi*4 - 4], eax
cmp rdi, rbp
jl 0x140079340
mov rdi, r15
test r14d, r14d
jle 0x1400793b5
nop dword [rax]
mov rcx, qword [rsi]
call fcn.1401c1a94
test eax, eax
jne 0x1400793b5
mov rcx, rsi
cmp word [rbx + 0x7a], r15w
je 0x14007939d
call fcn.140066b20
jmp 0x1400793a2
call fcn.140066b70
mov rcx, qword [rbx + 0xb0]
inc rdi
mov dword [rcx + rdi*4 - 4], eax
cmp rdi, rbp
jl 0x140079380
movzx ecx, word [rbx + 6]
mov eax, ecx
sar eax, 4
and eax, 0xfffffffc
lea eax, [rax + rcx*4]
movsxd rcx, eax
call fcn.1401bee78
mov qword [rbx + 0x98], rax
test rax, rax
jne 0x1400793de
movzx eax, r12w
jmp 0x1400793f9
mov dword [rbx + 0x7e], r15d
mov word [rbx + 0x7c], r15w
mov rcx, qword [rsi]
call fcn.1401c1a94
neg eax
sbb ecx, ecx
and ecx, 4
movzx eax, cx
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret