Function at 0x140067d14
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
lea rdx, [0x14015723e]
lea rcx, [rax - 0x70]
call fcn.140003880
nop
lea rdx, [0x1401bb1d8]
lea rcx, [rsp + 0x48]
call fcn.140003940
mov rbx, qword [rsp + 0x48]
lea r12, [rbx - 0xc]
xor esi, esi
cmp dword [r12], esi
jl 0x140067d7b
mov qword [rsp + 0x50], rbx
lock add dword [r12], 1
mov rbx, qword [rsp + 0x48]
jmp 0x140067d9f
mov rax, qword [0x1401a8058]
mov qword [rsp + 0x50], rax
mov rcx, rbx
call qword [0x140155830]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1400035cc
lea rcx, [rsp + 0x50]
call fcn.1400de210
mov rdi, rax
cmp rax, 0x927c0
jae 0x140067de3
cmp r12, qword [0x1401a8050]
je 0x140068243
or ebp, 0xffffffff
mov eax, ebp
lock xadd dword [r12], eax
add eax, ebp
cmp eax, esi
jg 0x140068243
mov rcx, r12
call fcn.14011be18
jmp 0x140068243
mov rax, qword [0x1401a8058]
mov qword [rsp + 0xd8], rax
mov edx, edi
lea rcx, [rsp + 0xd8]
call fcn.140002cfc
cmp dword [r12], esi
jl 0x140067e19
mov qword [rsp + 0x58], rbx
lock add dword [r12], 1
mov rbx, qword [rsp + 0x48]
jmp 0x140067e3d
mov rax, qword [0x1401a8058]
mov qword [rsp + 0x58], rax
mov rcx, rbx
call qword [0x140155830]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.1400035cc
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x58]
call fcn.1400a8f14
mov r11, qword [rsp + 0xd8]
cmp dword [r11 - 8], 0x493e0
jae 0x140067ebc
add r11, 0xfffffffffffffff4
or ebp, 0xffffffff
cmp r11, qword [0x1401a8050]
je 0x140067e90
mov eax, ebp
lock xadd dword [r11], eax
add eax, ebp
cmp eax, esi
jg 0x140067e90
mov rcx, qword [rsp + 0xd8]
add rcx, 0xfffffffffffffff4
call fcn.14011be18
nop
cmp r12, qword [0x1401a8050]
je 0x140068243
mov eax, ebp
lock xadd dword [r12], eax
add eax, ebp
cmp eax, esi
jg 0x140068243
mov rcx, r12
call fcn.14011be18
jmp 0x140068243
mov r15d, dword [0x1401bb3a4]
mov dword [rsp + 0xd0], r15d
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.140002cfc
mov r14, rax
mov rcx, qword [0x1401a8058]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x40], rcx
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002cfc
mov r13d, esi
mov rcx, qword [rsp + 0xd8]
or ebp, 0xffffffff
cmp dword [rcx - 8], esi
jl 0x14006806d
lea rdx, [0x140157b18]
call fcn.14011b5ec
mov rsi, rax
test rax, rax
je 0x140068067
sub rsi, qword [rsp + 0xd8]
sar rsi, 1
cmp esi, ebp
je 0x14006806b
xor r15d, r15d
movsxd rdi, esi
movzx ebx, word [r14 + rdi*2]
mov word [r14 + rdi*2], r15w
movsxd rax, r13d
lea rdx, [r14 + rax*2]
lea rcx, [rsp + 0x68]
call fcn.14000a8dc
nop
mov word [r14 + rdi*2], bx
lea r13d, [rsi + 2]
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 8], 0x1388
jge 0x140067fef
cmp dword [rbx - 8], r15d
jl 0x140067fbf
lea rdx, str.Spatlen_
mov rcx, rbx
call fcn.14011b5ec
cmp rax, r15
je 0x140067fbf
sub rax, rbx
sar rax, 1
cmp eax, r15d
jne 0x140067fbf
cmp dword [rbx - 8], r15d
jl 0x140067fbf
lea rdx, [0x140159e98]
mov rcx, rbx
call fcn.14011b5ec
cmp rax, r15
je 0x140067fbf
sub rax, rbx
sar rax, 1
cmp eax, r15d
jg 0x140067fef
mov r8, rbx
mov edx, dword [rbx - 8]
lea rcx, [rsp + 0x40]
call fcn.1400026b8
lea rcx, [0x140157b18]
call qword [0x140155830]
lea r8, [0x140157b18]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400026b8
mov rax, qword [rsp + 0xd8]
cmp r13d, r15d
jl 0x14006802d
cmp r13d, dword [rax - 8]
jg 0x14006802d
movsxd rcx, r13d
lea rcx, [rax + rcx*2]
lea rdx, [0x140157b18]
call fcn.14011b5ec
cmp rax, r15
jne 0x14006801e
mov esi, ebp
jmp 0x14006802f
sub rax, qword [rsp + 0xd8]
sar rax, 1
mov esi, eax
jmp 0x14006802f
mov esi, ebp
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x1401a8050]
je 0x14006804e
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r15d
jg 0x14006804e
call fcn.14011be18
cmp esi, ebp
jne 0x140067f3f
mov rbx, qword [rsp + 0x48]
mov r15d, dword [rsp + 0xd0]
xor esi, esi
jmp 0x14006806d
xor esi, esi
jmp 0x14006806d
xor esi, esi
cmp dword [r12], esi
jl 0x140068080
mov qword [rsp + 0x60], rbx
lock add dword [r12], 1
jmp 0x1400680a5
mov rax, qword [0x1401a8058]
mov qword [rsp + 0x60], rax
mov rcx, rbx
call qword [0x140155830]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400035cc
nop
mov rax, qword [rsp + 0x40]
movsxd r14, dword [rax - 8]
mov eax, 0xfeff
mov word [rsp + 0xc8], ax
lea rdx, [0x140157588]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14011cecc
mov r13, rax
cmp r15d, esi
je 0x140068120
mov r9, rax
mov esi, 2
lea r8d, [rsi - 1]
mov rdx, rsi
lea rcx, [rsp + 0xc8]
call fcn.14011ccec
lea edx, [r14 + r14 + 1]
lea rcx, [rsp + 0x40]
call fcn.140002cfc
mov rcx, rax
mov r9, r13
mov r8, r14
mov rdx, rsi
call fcn.14011ccec
mov rcx, r13
call fcn.14011cad8
xor r15d, r15d
jmp 0x140068185
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140002cfc
mov rdi, rax
mov edx, r14d
lea rcx, [rsp + 0xd8]
call fcn.140002cfc
mov rsi, rax
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov r9d, ebp
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [0x140155790]
mov r8, r14
mov r9, r13
lea edx, [r15 + 1]
mov rcx, rsi
call fcn.14011ccec
mov rcx, r13
call fcn.14011cad8
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x1401a8050]
je 0x1400681a5
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r15d
jg 0x1400681a5
call fcn.14011be18
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1401a8050]
je 0x1400681ca
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r15d
jg 0x1400681ca
call fcn.14011be18
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1401a8050]
je 0x1400681ef
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r15d
jg 0x1400681ef
call fcn.14011be18
nop
mov rcx, qword [rsp + 0xd8]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x1401a8050]
je 0x140068223
mov eax, ebp
lock xadd dword [rcx], eax
add eax, ebp
cmp eax, r15d
jg 0x140068223
mov rcx, qword [rsp + 0xd8]
add rcx, 0xfffffffffffffff4
call fcn.14011be18
nop
cmp r12, qword [0x1401a8050]
je 0x140068243
mov eax, ebp
lock xadd dword [r12], eax
add eax, ebp
cmp eax, r15d
jg 0x140068243
mov rcx, r12
call fcn.14011be18
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret