Function at 0x140067bd0
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.1400ba8b0
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.140001f60
nop
lea rdx, [0x1400c378c]
mov rcx, rdi
call fcn.140086b4c
mov rsi, rax
cmp rax, rbx
jne 0x140067c63
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
je 0x140067c5c
call fcn.1400a86a4
xor al, al
jmp 0x140068187
mov r9, rax
mov r8, r12
mov r12d, 1
mov rdx, r12
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400a9fd4
mov r15, rax
mov rcx, rsi
call fcn.1400aa410
cmp r15, 0x16
jb 0x140068163
cmp word [rdi], bx
jne 0x140068163
cmp word [rdi + 2], r12w
jne 0x140068163
xor edx, edx
mov r8d, 0x8010
lea rcx, [rsp + 0x50]
call fcn.1400a9164
lea esi, [r12 + 5]
mov r13d, ebx
movzx eax, word [rdi + 4]
mov r12, rsi
cmp eax, ebx
jbe 0x140067db1
lea r8d, [rsi - 2]
lea r14d, [rsi + 2]
lea r11d, [rsi - 4]
lea rcx, [r15 - 0x10]
mov eax, esi
cmp rax, rcx
jae 0x140067dc5
mov edx, dword [r12 + rdi + 0xc]
mov r10d, dword [r12 + rdi + 8]
lea ecx, [r10 + rdx]
cmp rcx, r15
ja 0x140067dbd
lea r9, [rdi + rdx]
mov rdx, r8
mov eax, dword [r9 + 4]
cmp eax, 0x10
jne 0x140067d1c
cmp word [r9 + 0xe], r8w
cmove rdx, rbx
cmp eax, 0x10
jne 0x140067d2d
cmp word [r9 + 0xe], r14w
lea ecx, [rax - 0xf]
cmove rdx, rcx
cmp eax, 0x20
jne 0x140067d3b
cmp word [r9 + 0xe], r8w
cmove rdx, r11
cmp eax, 0x20
jne 0x140067d4e
cmp word [r9 + 0xe], r14w
mov eax, 3
cmove rdx, rax
cmp rdx, r8
je 0x140067d92
mov cl, byte [r9 + 0xe]
mov eax, 1
shl eax, cl
cmp eax, dword [r9 + 0x20]
je 0x140067d6a
cmp dword [r9 + 0x20], ebx
jne 0x140067d92
imul rdx, rdx, 0x2004
lea rcx, [rsp + rdx + 0x50]
mov dword [rcx + 0x2000], r10d
mov r8, r10
mov rdx, r9
call fcn.1400a8e30
mov r8d, 4
lea r11d, [r8 - 2]
add esi, 0x10
add r12, 0x10
inc r13d
movzx eax, word [rdi + 4]
cmp r13d, eax
jb 0x140067cdd
mov r15d, 3
jmp 0x140067dcb
mov r14d, 8
lea r15d, [r14 - 5]
jmp 0x140067dcb
mov r15d, 3
jmp 0x140067dcb
mov r15d, 3
mov eax, dword [rsp + 0x4054]
cmp eax, ebx
jne 0x140067e91
cmp dword [rsp + 0x2050], ebx
je 0x140067e91
mov esi, 0x2004
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2054]
call fcn.1400a8e30
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.1400a9164
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 0x140067e3b
lea rcx, [rsp + 0x257c]
lea rdx, [rsp + 0x138]
mov r8d, 0x40
call fcn.1400a8e30
mov eax, 0x568
mov dword [rsp + 0x4054], eax
jmp 0x140067ea1
mov esi, 0x2004
mov r12d, 0x80
lea r13d, [r12 - 0x7f]
mov ecx, dword [rsp + 0x805c]
cmp ecx, ebx
jne 0x140067f60
cmp dword [rsp + 0x6058], ebx
je 0x140067f60
mov r8, rsi
lea rdx, [rsp + 0x4058]
lea rcx, [rsp + 0x605c]
call fcn.1400a8e30
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.1400a9164
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 0x140067f04
lea rcx, [rsp + 0x6884]
lea rdx, [rsp + 0x42c0]
mov r8, r12
call fcn.1400a8e30
mov ecx, 0x8a8
mov dword [rsp + 0x805c], ecx
mov eax, dword [rsp + 0x4054]
cmp eax, ebx
jne 0x140068073
cmp ecx, ebx
je 0x140068073
mov r8, rsi
lea rdx, [rsp + 0x605c]
lea rcx, [rsp + 0x2054]
call fcn.1400a8e30
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 0x140067fba
add rcx, 2
cmp rcx, 0x20
jl 0x140067fb7
xor edx, edx
lea r8d, [rdx + 0x40]
mov rcx, rsi
call fcn.1400a9164
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 0x14006803b
mov ecx, 4
sub ecx, eax
sar r9d, cl
jmp 0x140068040
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 0x140068000
add rsi, 4
add r11, r14
cmp r11, r12
jl 0x140067ff5
mov dword [rsp + 0x4054], 0x568
lea rdx, [0x1400c378c]
mov rcx, qword [rsp + 0x40]
call fcn.140086b4c
mov rsi, rax
cmp rax, rbx
jne 0x14006809b
mov rcx, rdi
call fcn.1400a86a4
xor al, al
jmp 0x140068187
mov r9, rax
mov r8d, 0x40000
mov r15d, 1
mov rdx, r15
mov rcx, rdi
call fcn.1400a9fd4
mov r13, rax
mov rcx, rsi
call fcn.1400aa410
mov r12, rbx
lea rcx, [r13 - 0x28]
cmp rcx, rbx
jbe 0x140068142
mov rsi, rbx
mov rcx, rsi
imul rcx, rcx, 0x2004
movsxd r8, dword [rsp + rcx + 0x2050]
cmp r8d, ebx
je 0x14006812d
lea r9, [rdi + r12]
lea r10, [rsp + rcx + 0x50]
mov rax, r10
mov rcx, r9
mov rdx, qword [r10]
cmp rdx, qword [r9]
jne 0x140068119
add rax, r14
add rcx, r14
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x140068119
mov edx, dword [rax + r14]
cmp edx, dword [rcx + r14]
jne 0x140068119
mov eax, ebx
jmp 0x14006811e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x14006812d
mov rdx, r10
mov rcx, r9
call fcn.1400a8e30
add rsi, r15
cmp rsi, 4
jb 0x1400680cf
add r12, r15
lea rcx, [r13 - 0x28]
cmp r12, rcx
jb 0x1400680cc
mov r9, qword [rsp + 0x38]
mov r8, r13
mov rdx, r15
mov rcx, rdi
call fcn.1400aa698
nop
mov rcx, rdi
call fcn.1400a86a4
mov al, r15b
jmp 0x140068187
cmp rdi, rbx
je 0x140068170
mov rcx, rdi
call fcn.1400a86a4
xor al, al
jmp 0x140068187
mov rcx, qword [rsp + 0x8060]
xor rcx, rsp
call fcn.1400a8530
add rsp, 0x8070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret