Function at 0x140013380
Capabilities:
Write file on windows

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov qword [rsp + 0xc8], 0xfffffffffffffffe
call fcn.140012f20
mov word [rsp + 0x90], ax
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x90]
call fcn.140012fe0
movzx eax, al
test eax, eax
je 0x1400133dd
lea rcx, [rsp + 0x118]
call fcn.1400137e0
jmp 0x1400137d6
mov rcx, qword [rsp + 0x110]
call fcn.140017370
test rax, rax
je 0x14001345a
mov rcx, qword [rsp + 0x110]
call fcn.140017370
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x110]
call fcn.1400176a0
mov rcx, qword [rsp + 0xd0]
cmp rcx, rax
jae 0x14001345a
lea rcx, [rsp + 0x118]
call fcn.140013160
mov word [rsp + 0xd8], ax
mov rcx, qword [rsp + 0x110]
call fcn.140017810
movzx ecx, word [rsp + 0xd8]
mov word [rax], cx
movzx eax, word [rsp + 0x118]
jmp 0x1400137d6
mov rax, qword [rsp + 0x110]
cmp qword [rax + 0x98], 0
jne 0x140013476
call fcn.140012f20
jmp 0x1400137d6
mov rcx, qword [rsp + 0x110]
call fcn.140018140
mov rax, qword [rsp + 0x110]
cmp qword [rax + 0x80], 0
jne 0x1400134f1
lea rcx, [rsp + 0x118]
call fcn.140013160
mov rcx, qword [rsp + 0x110]
mov rdx, qword [rcx + 0x98]
movzx ecx, ax
call fcn.140013850
movzx eax, al
test eax, eax
je 0x1400134d2
movzx eax, word [rsp + 0x118]
mov word [rsp + 0xda], ax
jmp 0x1400134df
call fcn.140012f20
mov word [rsp + 0xda], ax
movzx eax, word [rsp + 0xda]
jmp 0x1400137d6
mov dword [rsp + 0x40], 8
lea rcx, [rsp + 0x118]
call fcn.140013160
mov word [rsp + 0x50], ax
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.140006de0
nop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x60]
call fcn.140006e50
mov rcx, rax
call fcn.14000be90
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x60]
call fcn.140006e90
mov rcx, qword [rsp + 0xe0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe8], rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.140006e50
mov rcx, rax
call fcn.14000be90
lea rcx, [rsp + 0x52]
mov rdx, qword [rsp + 0x110]
add rdx, 0x8c
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], r8
mov r8, qword [rsp + 0xe8]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x50]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x80]
call fcn.140018b60
mov dword [rsp + 0xf0], eax
cmp dword [rsp + 0xf0], 0
jl 0x1400137a5
cmp dword [rsp + 0xf0], 1
jle 0x140013602
cmp dword [rsp + 0xf0], 3
je 0x140013742
jmp 0x1400137a5
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x60]
call fcn.140006e50
mov rcx, rax
call fcn.14000be90
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jbe 0x1400136a6
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.140006e50
mov rcx, rax
call fcn.14000be90
mov rcx, qword [rsp + 0x110]
mov r9, qword [rcx + 0x98]
mov r8, qword [rsp + 0x88]
mov edx, 1
mov rcx, rax
call fcn.140034720
cmp qword [rsp + 0x88], rax
je 0x1400136a6
call fcn.140012f20
mov word [rsp + 0xb8], ax
lea rcx, [rsp + 0x60]
call fcn.1400030c0
movzx eax, word [rsp + 0xb8]
jmp 0x1400137d6
mov rax, qword [rsp + 0x110]
mov byte [rax + 0x8a], 1
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x48], rax
je 0x1400136e8
movzx eax, word [rsp + 0x118]
mov word [rsp + 0xba], ax
lea rcx, [rsp + 0x60]
call fcn.1400030c0
movzx eax, word [rsp + 0xba]
jmp 0x1400137d6
cmp qword [rsp + 0x88], 0
jbe 0x1400136f5
jmp 0x14001373d
lea rcx, [rsp + 0x60]
call fcn.140006e90
cmp rax, 0x20
jae 0x140013719
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.140005ae0
jmp 0x14001373d
call fcn.140012f20
mov word [rsp + 0xbc], ax
lea rcx, [rsp + 0x60]
call fcn.1400030c0
movzx eax, word [rsp + 0xbc]
jmp 0x1400137d6
jmp 0x1400137c6
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x98]
movzx ecx, word [rsp + 0x50]
call fcn.140013850
movzx eax, al
test eax, eax
je 0x140013774
movzx eax, word [rsp + 0x118]
mov word [rsp + 0xf4], ax
jmp 0x140013781
call fcn.140012f20
mov word [rsp + 0xf4], ax
movzx eax, word [rsp + 0xf4]
mov word [rsp + 0xbe], ax
lea rcx, [rsp + 0x60]
call fcn.1400030c0
movzx eax, word [rsp + 0xbe]
jmp 0x1400137d6
call fcn.140012f20
mov word [rsp + 0xc0], ax
lea rcx, [rsp + 0x60]
call fcn.1400030c0
movzx eax, word [rsp + 0xc0]
jmp 0x1400137d6
jmp 0x14001351e
add rsp, 0x108
ret