Function at 0x140067ca8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x8070
call fcn.1400baa60
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x8060], rax
mov rdi, r9
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
mov r12d, 0x40000
mov rdx, r12
lea rcx, [rsp + 0x20]
call fcn.140001fa8
nop
lea rdx, [0x1400c378c]
mov rcx, rdi
call fcn.140086cc4
mov rsi, rax
cmp rax, rbx
jne 0x140067d3b
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
je 0x140067d34
call fcn.1400a8854
xor al, al
jmp 0x14006825f
mov r9, rax
mov r8, r12
mov r12d, 1
mov rdx, r12
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400aa184
mov r15, rax
mov rcx, rsi
call fcn.1400aa5c0
cmp r15, 0x16
jb 0x14006823b
cmp word [rdi], bx
jne 0x14006823b
cmp word [rdi + 2], r12w
jne 0x14006823b
xor edx, edx
mov r8d, 0x8010
lea rcx, [rsp + 0x50]
call fcn.1400a9314
lea esi, [r12 + 5]
mov r13d, ebx
movzx eax, word [rdi + 4]
mov r12, rsi
cmp eax, ebx
jbe 0x140067e89
lea r8d, [rsi - 2]
lea r14d, [rsi + 2]
lea r11d, [rsi - 4]
lea rcx, [r15 - 0x10]
mov eax, esi
cmp rax, rcx
jae 0x140067e9d
mov edx, dword [r12 + rdi + 0xc]
mov r10d, dword [r12 + rdi + 8]
lea ecx, [r10 + rdx]
cmp rcx, r15
ja 0x140067e95
lea r9, [rdi + rdx]
mov rdx, r8
mov eax, dword [r9 + 4]
cmp eax, 0x10
jne 0x140067df4
cmp word [r9 + 0xe], r8w
cmove rdx, rbx
cmp eax, 0x10
jne 0x140067e05
cmp word [r9 + 0xe], r14w
lea ecx, [rax - 0xf]
cmove rdx, rcx
cmp eax, 0x20
jne 0x140067e13
cmp word [r9 + 0xe], r8w
cmove rdx, r11
cmp eax, 0x20
jne 0x140067e26
cmp word [r9 + 0xe], r14w
mov eax, 3
cmove rdx, rax
cmp rdx, r8
je 0x140067e6a
mov cl, byte [r9 + 0xe]
mov eax, 1
shl eax, cl
cmp eax, dword [r9 + 0x20]
je 0x140067e42
cmp dword [r9 + 0x20], ebx
jne 0x140067e6a
imul rdx, rdx, 0x2004
lea rcx, [rsp + rdx + 0x50]
mov dword [rcx + 0x2000], r10d
mov r8, r10
mov rdx, r9
call fcn.1400a8fe0
mov r8d, 4
lea r11d, [r8 - 2]
add esi, 0x10
add r12, 0x10
inc r13d
movzx eax, word [rdi + 4]
cmp r13d, eax
jb 0x140067db5
mov r15d, 3
jmp 0x140067ea3
mov r14d, 8
lea r15d, [r14 - 5]
jmp 0x140067ea3
mov r15d, 3
jmp 0x140067ea3
mov r15d, 3
mov eax, dword [rsp + 0x4054]
cmp eax, ebx
jne 0x140067f69
cmp dword [rsp + 0x2050], ebx
je 0x140067f69
mov esi, 0x2004
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2054]
call fcn.1400a8fe0
mov word [rsp + 0x2062], r14w
mov dword [rsp + 0x2068], ebx
mov dword [rsp + 0x2074], ebx
xor edx, edx
mov r8d, 0x3c0
lea rcx, [rsp + 0x20bc]
call fcn.1400a9314
mov r11, rbx
mov r12d, 0x80
lea r13d, [r12 - 0x7f]
mov al, byte [rsp + r11 + 0xb8]
sar al, 4
mov byte [rsp + r11*2 + 0x247c], al
mov al, byte [rsp + r11 + 0xb8]
and al, 0xf
mov byte [rsp + r11*2 + 0x247d], al
add r11, r13
cmp r11, r12
jl 0x140067f13
lea rcx, [rsp + 0x257c]
lea rdx, [rsp + 0x138]
mov r8d, 0x40
call fcn.1400a8fe0
mov eax, 0x568
mov dword [rsp + 0x4054], eax
jmp 0x140067f79
mov esi, 0x2004
mov r12d, 0x80
lea r13d, [r12 - 0x7f]
mov ecx, dword [rsp + 0x805c]
cmp ecx, ebx
jne 0x140068038
cmp dword [rsp + 0x6058], ebx
je 0x140068038
mov r8, rsi
lea rdx, [rsp + 0x4058]
lea rcx, [rsp + 0x605c]
call fcn.1400a8fe0
mov word [rsp + 0x606a], r14w
mov dword [rsp + 0x6070], ebx
mov dword [rsp + 0x607c], ebx
xor edx, edx
mov r8d, 0x3c0
lea rcx, [rsp + 0x60c4]
call fcn.1400a9314
mov r11, rbx
mov al, byte [rsp + r11 + 0x40c0]
sar al, 4
mov byte [rsp + r11*2 + 0x6484], al
mov al, byte [rsp + r11 + 0x40c0]
and al, 0xf
mov byte [rsp + r11*2 + 0x6485], al
add r11, r13
cmp r11, 0x200
jl 0x140067fdc
lea rcx, [rsp + 0x6884]
lea rdx, [rsp + 0x42c0]
mov r8, r12
call fcn.1400a8fe0
mov ecx, 0x8a8
mov dword [rsp + 0x805c], ecx
mov eax, dword [rsp + 0x4054]
cmp eax, ebx
jne 0x14006814b
cmp ecx, ebx
je 0x14006814b
mov r8, rsi
lea rdx, [rsp + 0x605c]
lea rcx, [rsp + 0x2054]
call fcn.1400a8fe0
mov dword [rsp + 0x2058], 0x10
mov dword [rsp + 0x205c], 0x20
mov dword [rsp + 0x2068], ebx
mov dword [rsp + 0x2074], ebx
lea rsi, [rsp + 0x247c]
mov rcx, rbx
mov rdx, rbx
mov rax, rcx
shl rax, 5
add rax, rdx
mov al, byte [rsp + rax + 0x6484]
mov byte [rsi], al
add rsi, r13
add rdx, 2
cmp rdx, 0x20
jl 0x140068092
add rcx, 2
cmp rcx, 0x20
jl 0x14006808f
xor edx, edx
lea r8d, [rdx + 0x40]
mov rcx, rsi
call fcn.1400a9314
mov r11, rbx
lea r13, [rsp + r11 + 0x6884]
mov r10d, ebx
mov eax, r10d
cdq
and edx, r15d
add eax, edx
mov r8d, eax
and eax, r15d
sub eax, edx
sar r8d, 2
lea ecx, [rax + rax]
mov r9d, r12d
sar r9d, cl
movsxd rcx, r8d
movsx edx, byte [rcx + r13]
and r9d, edx
test r10b, 4
je 0x140068113
mov ecx, 4
sub ecx, eax
sar r9d, cl
jmp 0x140068118
mov ecx, eax
shl r9d, cl
mov eax, r10d
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd r8, eax
or byte [r8 + rsi], r9b
inc r10d
cmp r10d, 0x10
jl 0x1400680d8
add rsi, 4
add r11, r14
cmp r11, r12
jl 0x1400680cd
mov dword [rsp + 0x4054], 0x568
lea rdx, [0x1400c378c]
mov rcx, qword [rsp + 0x40]
call fcn.140086cc4
mov rsi, rax
cmp rax, rbx
jne 0x140068173
mov rcx, rdi
call fcn.1400a8854
xor al, al
jmp 0x14006825f
mov r9, rax
mov r8d, 0x40000
mov r15d, 1
mov rdx, r15
mov rcx, rdi
call fcn.1400aa184
mov r13, rax
mov rcx, rsi
call fcn.1400aa5c0
mov r12, rbx
lea rcx, [r13 - 0x28]
cmp rcx, rbx
jbe 0x14006821a
mov rsi, rbx
mov rcx, rsi
imul rcx, rcx, 0x2004
movsxd r8, dword [rsp + rcx + 0x2050]
cmp r8d, ebx
je 0x140068205
lea r9, [rdi + r12]
lea r10, [rsp + rcx + 0x50]
mov rax, r10
mov rcx, r9
mov rdx, qword [r10]
cmp rdx, qword [r9]
jne 0x1400681f1
add rax, r14
add rcx, r14
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x1400681f1
mov edx, dword [rax + r14]
cmp edx, dword [rcx + r14]
jne 0x1400681f1
mov eax, ebx
jmp 0x1400681f6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x140068205
mov rdx, r10
mov rcx, r9
call fcn.1400a8fe0
add rsi, r15
cmp rsi, 4
jb 0x1400681a7
add r12, r15
lea rcx, [r13 - 0x28]
cmp r12, rcx
jb 0x1400681a4
mov r9, qword [rsp + 0x38]
mov r8, r13
mov rdx, r15
mov rcx, rdi
call fcn.1400aa848
nop
mov rcx, rdi
call fcn.1400a8854
mov al, r15b
jmp 0x14006825f
cmp rdi, rbx
je 0x140068248
mov rcx, rdi
call fcn.1400a8854
xor al, al
jmp 0x14006825f
mov rcx, qword [rsp + 0x8060]
xor rcx, rsp
call fcn.1400a86e0
add rsp, 0x8070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret