Function at 0x140033070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x140210cc8]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x68], 0
je 0x1400330b9
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400330c5
mov al, 1
jmp 0x1400333da
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 0x14003310f
mov dword [rsp + 0x3c], 1
jmp 0x140033117
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140033130
xor al, al
jmp 0x1400333da
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0xf8]
call fcn.140030ab0
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xf8]
call fcn.140018b80
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.140018b80
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 0x140033258
cmp dword [rsp + 0x38], 1
je 0x140033264
cmp dword [rsp + 0x38], 3
je 0x140033384
jmp 0x1400333a3
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x71], 0
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xf8]
call fcn.140018b80
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 0x140033336
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xf8]
call fcn.140018b80
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.140087520
cmp qword [rsp + 0x40], rax
je 0x140033336
mov byte [rsp + 0x31], 0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.140018070
nop
movzx eax, byte [rsp + 0x31]
jmp 0x1400333da
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140033365
mov byte [rsp + 0x32], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.140018070
nop
movzx eax, byte [rsp + 0x32]
jmp 0x1400333da
cmp qword [rsp + 0x40], 0
jne 0x140033382
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0xf8]
call fcn.14002a010
jmp 0x1400333c2
mov byte [rsp + 0x33], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.140018070
nop
movzx eax, byte [rsp + 0x33]
jmp 0x1400333da
mov byte [rsp + 0x34], 0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xf8]
call fcn.140018070
nop
movzx eax, byte [rsp + 0x34]
jmp 0x1400333da
jmp 0x140033146
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14009ba30
add rsp, 0x128
ret