Function at 0x140070470
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, r9
mov rax, r8
mov rsi, rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
cmp qword [r8 + 0x18], 8
jb 0x1400704b5
mov rax, qword [r8]
lea r8, [0x140154348]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400b29d4
test eax, eax
je 0x1400704d8
mov dword [rsi], 9
jmp 0x140070943
mov rcx, qword [rbx]
mov r8, qword [rbx + 8]
cmp rcx, r8
je 0x140070504
sub r8, rcx
mov r9, qword [rsp + 0x30]
mov edx, 1
call fcn.1400e3c10
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
add qword [rsi + 0xa0], rax
mov edi, r15d
xor r14b, r14b
nop word [rax + rax]
test r14b, r14b
jne 0x140070900
cmp edi, dword [0x140198f6c]
jae 0x140070908
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x38], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.14011857b
cmp eax, 1
jne 0x14007082d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsi + 0x58]
call fcn.14011856f
test eax, eax
je 0x14007085d
mov edi, r15d
xor r9d, r9d
mov r8d, 0xfff
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x58]
call fcn.140118551
test eax, eax
jle 0x1400705e2
movsxd rbx, eax
mov r9, qword [rsp + 0x30]
mov r8, rbx
mov edx, 1
mov rcx, qword [rsi + 0x88]
call fcn.1400e3c10
add qword [rsi + 0xa0], rbx
mov rax, qword [rsi + 0x98]
cmp qword [rsi + 0xa0], rax
jb 0x140070510
test rax, rax
je 0x140070510
mov r14b, 1
jmp 0x140070510
je 0x140070600
mov rcx, qword [rsi + 0x58]
call fcn.140118515
mov qword [rsi + 0x58], 0xffffffffffffffff
mov dword [rsi], 0x13
jmp 0x140070828
mov dword [rsi], 0x15
lea rbx, [rsi + 0xa8]
mov r8d, 0x1c
lea rdx, [0x140154350]
mov rcx, rbx
call fcn.14005da50
mov rdx, qword [rsi + 0xa0]
lea rcx, [rsp + 0x260]
call fcn.140062f40
nop
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140070644
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rbx
call fcn.1400035c4
nop
mov rdx, qword [rsp + 0x278]
cmp rdx, 0x10
jb 0x140070694
inc rdx
mov rcx, qword [rsp + 0x260]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007068f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140070962
call fcn.14009da04
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x1400706db
lea rax, [rcx + 6]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400706bc
mov rax, qword [rbx]
lea rdi, [rax + rcx]
mov r8d, 6
lea rdx, [0x140154370]
mov rcx, rdi
call fcn.1400a0210
mov byte [rdi + 6], 0
jmp 0x1400706fa
mov qword [rsp + 0x20], 6
lea r9, [0x140154370]
xor r8d, r8d
lea edx, [r8 + 6]
mov rcx, rbx
call fcn.140003120
mov rax, qword [rsi + 0x98]
cmp qword [rsi + 0xa0], rax
jae 0x140070828
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xf
jb 0x140070755
lea rax, [rcx + 0xf]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140070736
mov rax, qword [rbx]
lea rdi, [rax + rcx]
mov r8d, 0xf
lea rdx, [0x140154378]
mov rcx, rdi
call fcn.1400a0210
mov byte [rdi + 0xf], 0
jmp 0x140070774
mov qword [rsp + 0x20], 0xf
lea r9, [0x140154378]
xor r8d, r8d
lea edx, [r8 + 0xf]
mov rcx, rbx
call fcn.140003120
lea rdx, [rsi + 0xc8]
cmp qword [rsi + 0xe0], 0x10
jb 0x14007078c
mov rdx, qword [rsi + 0xc8]
mov r8, qword [rsi + 0xd8]
mov rcx, rbx
call fcn.1400035c4
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x10
jb 0x1400707e2
lea rax, [rcx + 0x10]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400707c3
mov rax, qword [rbx]
lea rdi, [rax + rcx]
mov r8d, 0x10
lea rdx, [0x140154388]
mov rcx, rdi
call fcn.1400a0210
mov byte [rdi + 0x10], 0
jmp 0x140070801
mov qword [rsp + 0x20], 0x10
lea r9, [0x140154388]
xor r8d, r8d
lea edx, [r8 + 0x10]
mov rcx, rbx
call fcn.140003120
lea rdx, [rsi + 0xe8]
cmp qword [rsi + 0x100], 0x10
jb 0x140070819
mov rdx, qword [rsi + 0xe8]
mov r8, qword [rsi + 0xf8]
mov rcx, rbx
call fcn.1400035c4
jmp 0x140070943
test eax, eax
jne 0x14007085d
add edi, 0x3e8
mov rcx, qword [rsp + 0x30]
call fcn.1400ecaac
mov rax, qword [rsi + 0x98]
cmp qword [rsi + 0xa0], rax
jb 0x140070510
mov r14b, 1
jmp 0x140070510
mov rcx, qword [rsi + 0x58]
call fcn.140118515
mov qword [rsi + 0x58], 0xffffffffffffffff
mov dword [rsi], 0x19
mov r8d, 0x20
lea rdx, [0x1401543a0]
lea rcx, [rsi + 0xa8]
call fcn.14005da50
call fcn.140118581
movsxd rdx, eax
lea rcx, [rsp + 0x260]
call fcn.140062f40
nop
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400708b0
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsi + 0xa8]
call fcn.1400035c4
nop
mov rdx, qword [rsp + 0x278]
cmp rdx, 0x10
jb 0x140070900
inc rdx
mov rcx, qword [rsp + 0x260]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400708fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140070968
call fcn.14009da04
cmp edi, dword [0x140198f6c]
jb 0x140070938
lea rcx, [rsi + 0xa8]
mov r8d, 0x12
lea rdx, [0x1401543c8]
call fcn.14005da50
mov dword [rsi], 0x16
mov rcx, qword [rsi + 0x58]
call fcn.140118515
mov qword [rsi + 0x58], 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
call fcn.1400b2b48
nop
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14009ed10
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
call fcn.1400adfbc
int3
call fcn.1400adfbc
int3