Function at 0x14006a940
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 [0x1402008c8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov dword [rsp + 0x78], 0xffffffff
mov eax, dword [rsp + 0x1e8]
cmp dword [rsp + 0x78], eax
jne 0x14006a98d
mov dword [rsp + 0x5c], 1
jmp 0x14006a995
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x42], al
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x14006aa14
mov dword [rsp + 0x7c], 0xffffffff
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x1e8], eax
je 0x14006a9c9
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x64], eax
jmp 0x14006a9f8
mov dword [rsp + 0x80], 0xffffffff
cmp dword [rsp + 0x80], 0
jne 0x14006a9e8
mov dword [rsp + 0x60], 1
jmp 0x14006a9f0
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 0x14006b000
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 0x14006aafb
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 0x14006aafb
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 0x14006b000
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x80], 0
jne 0x14006ab24
mov dword [rsp + 0x88], 0xffffffff
mov eax, dword [rsp + 0x88]
jmp 0x14006b000
mov rcx, qword [rsp + 0x1e0]
call fcn.140034ad0
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x68], 0
jne 0x14006abc9
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.14008776c
cmp eax, 0xffffffff
je 0x14006ab8a
mov dword [rsp + 0x68], 1
jmp 0x14006ab92
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x14006aba8
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x50], eax
jmp 0x14006abbb
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x50], 0xffffffff
mov eax, dword [rsp + 0x50]
jmp 0x14006b000
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.1400312e0
nop
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x1a0]
call fcn.1400192b0
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.1400192b0
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 0x14006afc1
cmp dword [rsp + 0x54], 1
jle 0x14006ad5b
cmp dword [rsp + 0x54], 3
je 0x14006af26
jmp 0x14006afc1
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x1a0]
call fcn.1400192b0
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 0x14006ae39
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x1a0]
call fcn.1400192b0
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.140087d84
cmp qword [rsp + 0x70], rax
je 0x14006ae39
mov dword [rsp + 0x8c], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.1400187a0
nop
mov eax, dword [rsp + 0x8c]
jmp 0x14006b000
mov rax, qword [rsp + 0x1e0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x148], rax
je 0x14006ae81
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x90], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.1400187a0
nop
mov eax, dword [rsp + 0x90]
jmp 0x14006b000
cmp qword [rsp + 0x70], 0
jbe 0x14006ae8e
jmp 0x14006af21
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 0x14006aef7
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x1a0]
call fcn.14002a760
jmp 0x14006af21
mov dword [rsp + 0x94], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.1400187a0
nop
mov eax, dword [rsp + 0x94]
jmp 0x14006b000
jmp 0x14006afe8
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.14008776c
cmp eax, 0xffffffff
je 0x14006af69
mov dword [rsp + 0x6c], 1
jmp 0x14006af71
mov dword [rsp + 0x6c], 0
movzx eax, byte [rsp + 0x6c]
test eax, eax
je 0x14006af87
mov eax, dword [rsp + 0x1e8]
mov dword [rsp + 0x58], eax
jmp 0x14006af9a
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.1400187a0
nop
mov eax, dword [rsp + 0x98]
jmp 0x14006b000
mov dword [rsp + 0x9c], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.1400187a0
nop
mov eax, dword [rsp + 0x9c]
jmp 0x14006b000
jmp 0x14006abf6
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14009c290
add rsp, 0x1d8
ret