Function at 0x1400338a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x1402008c8]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x68], 0
je 0x1400338e9
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400338f5
mov al, 1
jmp 0x140033c0a
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x48], 0xffffffff
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
call qword [rax + 0x18]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], 0xffffffff
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jne 0x14003393f
mov dword [rsp + 0x3c], 1
jmp 0x140033947
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140033960
xor al, al
jmp 0x140033c0a
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0xf8]
call fcn.1400312e0
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xf8]
call fcn.1400192b0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x10
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xf8]
call fcn.1400192b0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x130]
add rdx, 0x74
lea r8, [rsp + 0xb8]
mov qword [rsp + 0x20], r8
mov r9, rcx
mov r8, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call qword [rax + 0x40]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140033a88
cmp dword [rsp + 0x38], 1
je 0x140033a94
cmp dword [rsp + 0x38], 3
je 0x140033bb4
jmp 0x140033bd3
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x71], 0
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xf8]
call fcn.1400192b0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140033b66
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xf8]
call fcn.1400192b0
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x130]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0xc8]
call fcn.140087d84
cmp qword [rsp + 0x40], rax
je 0x140033b66
mov byte [rsp + 0x31], 0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.1400187a0
nop
movzx eax, byte [rsp + 0x31]
jmp 0x140033c0a
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140033b95
mov byte [rsp + 0x32], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.1400187a0
nop
movzx eax, byte [rsp + 0x32]
jmp 0x140033c0a
cmp qword [rsp + 0x40], 0
jne 0x140033bb2
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0xf8]
call fcn.14002a760
jmp 0x140033bf2
mov byte [rsp + 0x33], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.1400187a0
nop
movzx eax, byte [rsp + 0x33]
jmp 0x140033c0a
mov byte [rsp + 0x34], 0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.1400187a0
nop
movzx eax, byte [rsp + 0x34]
jmp 0x140033c0a
jmp 0x140033976
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14009c290
add rsp, 0x128
ret