Function at 0x14006a100
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov qword [rsp + 0x178], 0xfffffffffffffffe
mov rax, qword [0x140210cc8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov dword [rsp + 0x78], 0xffffffff
mov eax, dword [rsp + 0x1e8]
cmp dword [rsp + 0x78], eax
jne 0x14006a14d
mov dword [rsp + 0x5c], 1
jmp 0x14006a155
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x42], al
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x14006a1d4
mov dword [rsp + 0x7c], 0xffffffff
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x1e8], eax
je 0x14006a189
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x64], eax
jmp 0x14006a1b8
mov dword [rsp + 0x80], 0xffffffff
cmp dword [rsp + 0x80], 0
jne 0x14006a1a8
mov dword [rsp + 0x60], 1
jmp 0x14006a1b0
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
jmp 0x14006a7c0
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x14006a2bb
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x58]
movsxd rcx, dword [rcx]
add rcx, qword [rax]
mov rax, rcx
cmp qword [rsp + 0xc0], rax
jae 0x14006a2bb
movzx eax, byte [rsp + 0x1e8]
mov byte [rsp + 0x43], al
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
inc rax
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0xc8]
movzx ecx, byte [rsp + 0x43]
mov byte [rax], cl
mov eax, dword [rsp + 0x1e8]
jmp 0x14006a7c0
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x80], 0
jne 0x14006a2e4
mov dword [rsp + 0x88], 0xffffffff
mov eax, dword [rsp + 0x88]
jmp 0x14006a7c0
mov rcx, qword [rsp + 0x1e0]
call fcn.1400342a0
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x68], 0
jne 0x14006a389
movzx eax, byte [rsp + 0x1e8]
mov byte [rsp + 0x44], al
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0xd0], rax
movsx eax, byte [rsp + 0x44]
mov rdx, qword [rsp + 0xd0]
mov ecx, eax
call fcn.140086f08
cmp eax, 0xffffffff
je 0x14006a34a
mov dword [rsp + 0x68], 1
jmp 0x14006a352
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x14006a368
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x50], eax
jmp 0x14006a37b
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x50], 0xffffffff
mov eax, dword [rsp + 0x50]
jmp 0x14006a7c0
mov dword [rsp + 0xac], 8
movzx eax, byte [rsp + 0x1e8]
mov byte [rsp + 0x40], al
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x1a0]
call fcn.140030ab0
nop
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x1a0]
call fcn.140018b80
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
add rax, 0x10
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x1a0]
call fcn.140018b80
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x41]
mov r8, qword [rsp + 0x1e0]
add r8, 0x74
mov qword [rsp + 0x118], r8
lea r9, [rsp + 0x130]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x118]
mov rdx, rcx
mov rcx, qword [rsp + 0xa0]
call qword [rax + 0x38]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jl 0x14006a781
cmp dword [rsp + 0x54], 1
jle 0x14006a51b
cmp dword [rsp + 0x54], 3
je 0x14006a6e6
jmp 0x14006a781
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x1a0]
call fcn.140018b80
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jbe 0x14006a5f9
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x1a0]
call fcn.140018b80
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x1e0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x140]
call fcn.140087520
cmp qword [rsp + 0x70], rax
je 0x14006a5f9
mov dword [rsp + 0x8c], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.140018070
nop
mov eax, dword [rsp + 0x8c]
jmp 0x14006a7c0
mov rax, qword [rsp + 0x1e0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x148], rax
je 0x14006a641
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x90], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.140018070
nop
mov eax, dword [rsp + 0x90]
jmp 0x14006a7c0
cmp qword [rsp + 0x70], 0
jbe 0x14006a64e
jmp 0x14006a6e1
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
add rax, 0x10
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov rax, qword [rax]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0x20
jae 0x14006a6b7
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x1a0]
call fcn.14002a010
jmp 0x14006a6e1
mov dword [rsp + 0x94], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.140018070
nop
mov eax, dword [rsp + 0x94]
jmp 0x14006a7c0
jmp 0x14006a7a8
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x170], rax
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x48], al
movsx eax, byte [rsp + 0x48]
mov rdx, qword [rsp + 0x170]
mov ecx, eax
call fcn.140086f08
cmp eax, 0xffffffff
je 0x14006a729
mov dword [rsp + 0x6c], 1
jmp 0x14006a731
mov dword [rsp + 0x6c], 0
movzx eax, byte [rsp + 0x6c]
test eax, eax
je 0x14006a747
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x58], eax
jmp 0x14006a75a
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x58], 0xffffffff
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x98], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.140018070
nop
mov eax, dword [rsp + 0x98]
jmp 0x14006a7c0
mov dword [rsp + 0x9c], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.140018070
nop
mov eax, dword [rsp + 0x9c]
jmp 0x14006a7c0
jmp 0x14006a3b6
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14009ba30
add rsp, 0x1d8
ret