Function at 0x1400c3630
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1418]
mov eax, 0x1518
call fcn.1401c2680
sub rsp, rax
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0x1400], rax
xor eax, eax
mov rdi, r9
mov r9, qword [r8 + 0x28]
mov dword [rsp + 0x30], eax
movzx esi, ax
mov eax, dword [rbp + 0x1480]
mov r15, r8
mov r8, rdi
mov r13, rdx
mov dword [rsp + 0x20], eax
mov r12, rcx
call fcn.1400c42b0
movsx r14d, word [r15 + 0x12]
movsxd rbx, dword [rdi + 0x18]
mov edx, 4
sar r14d, 3
mov rcx, rbx
mov dword [rsp + 0x34], r14d
call fcn.1401be1f8
mov edx, 4
mov rcx, rbx
mov qword [rsp + 0x40], rax
call fcn.1401be1f8
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400c3c29
test rax, rax
je 0x1400c3c29
mov ebx, 6
mov ecx, 0x1000
mov edx, ebx
call fcn.1401be1f8
mov edx, 0x80b2
mov qword [rbp + 0x3e0], rax
test rax, rax
je 0x1400c3af5
movzx ecx, word [rdi + 0xe]
lea eax, [rcx - 3]
cmp ax, 1
jbe 0x1400c375a
cmp cx, 7
jne 0x1400c373c
movsx edx, word [r13 + 0x13a]
lea rcx, [rbp - 0x20]
mov dword [rbp + 0x3c0], ebx
call fcn.140164bd0
lea rcx, [rbp - 0x20]
mov r8, r12
mov edx, r14d
call fcn.140164d60
jmp 0x1400c3765
cmp cx, dx
jne 0x1400c3765
lea rcx, [rsp + 0x60]
call fcn.140165510
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.140165620
jmp 0x1400c3765
mov rdx, rdi
mov rcx, r12
call fcn.140164290
cmp dword [rdi + 0x18], 0
mov ecx, dword [r13 + 0x54]
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], ecx
mov ebx, 1
jle 0x1400c3ae2
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
movsxd rbx, r14d
sub rax, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rax
nop
mov eax, dword [rdi + 0x14]
cmp ecx, eax
jge 0x1400c37ac
mov dword [rdi + 0x14], ecx
jmp 0x1400c37b2
sub ecx, eax
mov dword [rsp + 0x3c], ecx
mov rcx, qword [r12]
call fcn.1401c2310
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
test al, 1
je 0x1400c37dc
cmp word [rdi + 0xe], 7
je 0x1400c37dc
inc eax
mov dword [rcx], eax
mov rdx, qword [r12]
xor ecx, ecx
call fcn.1401c1ae4
movzx ecx, word [rdi + 0xe]
cmp cx, 1
jne 0x1400c382d
mov r8d, dword [rdi + 0x14]
or edx, 0xffffffff
mov rcx, r13
call fcn.1400629c0
mov eax, dword [rdi + 0x1c]
mov r9, qword [r12]
imul eax, dword [rdi + 0x14]
mov rcx, qword [r15 + 8]
mov r8d, 1
movsxd rdx, eax
call fcn.1401c24f8
xor esi, esi
cmp rax, 1
mov eax, 6
cmovne si, ax
mov eax, dword [rdi + 0x1c]
imul eax, dword [rdi + 0x14]
jmp 0x1400c3aa8
mov eax, 0x8005
cmp cx, ax
jne 0x1400c388a
mov r8d, dword [rdi + 0x14]
or edx, 0xffffffff
mov rcx, r13
call fcn.1400629c0
xor r14d, r14d
cmp dword [rdi + 0x14], r14d
jle 0x1400c3880
nop
test si, si
jne 0x1400c3880
mov r8d, dword [rdi + 0x1c]
lea r9, [rsp + 0x30]
mov rcx, r12
mov eax, r8d
imul eax, r14d
movsxd rdx, eax
add rdx, qword [r15 + 8]
call fcn.140138280
inc r14d
movzx esi, ax
cmp r14d, dword [rdi + 0x14]
jl 0x1400c3850
mov r14d, dword [rsp + 0x34]
jmp 0x1400c3aac
lea eax, [rcx - 3]
cmp ax, 1
jbe 0x1400c3a2b
mov eax, 0x80b2
cmp cx, ax
jne 0x1400c38f4
lea rcx, [rsp + 0x60]
call fcn.1401655f0
test eax, eax
je 0x1400c395b
mov r8d, dword [rdi + 0x14]
or edx, 0xffffffff
mov rcx, r13
call fcn.1400629c0
mov r8d, dword [rdi + 0x1c]
mov rdx, qword [r15 + 8]
imul r8d, dword [rdi + 0x14]
lea rcx, [rsp + 0x60]
call fcn.140165470
test eax, eax
jne 0x1400c38e0
lea esi, [rax + 6]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140165540
jmp 0x1400c3aac
cmp cx, 7
jne 0x1400c3965
mov r9d, dword [rdi + 0x14]
mov r8d, dword [r13 + 0x50]
lea rcx, [rbp - 0x20]
mov edx, r14d
call fcn.140164c50
test ax, ax
je 0x1400c395b
mov r8d, dword [rdi + 0x14]
or edx, 0xffffffff
mov rcx, r13
call fcn.1400629c0
mov eax, dword [rdi + 0x1c]
mov r9d, dword [rdi + 0x14]
mov r8d, dword [r13 + 0x50]
mov rdx, qword [r15 + 8]
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x20], eax
call fcn.140164b20
test ax, ax
jne 0x1400c3948
mov esi, 6
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140164c20
jmp 0x1400c3aac
mov esi, 0xb
jmp 0x1400c3aac
mov r8d, dword [rdi + 0x14]
or edx, 0xffffffff
mov rcx, r13
call fcn.1400629c0
cmp word [rdi + 0x10], 0
je 0x1400c39f8
mov r9d, dword [rdi + 0x14]
mov r8, qword [r15 + 8]
test r9d, r9d
jle 0x1400c39f8
nop dword [rax]
mov eax, dword [r15 + 0x1c]
sub eax, r14d
movsxd rdx, eax
test eax, eax
jle 0x1400c39e9
mov rax, rdx
sub rax, rbx
add rax, 2
add rax, r8
nop dword [rax + rax]
movzx ecx, byte [rax - 2]
sub byte [rbx + rax - 2], cl
cmp rbx, 1
jle 0x1400c39de
movzx ecx, byte [rax - 1]
sub byte [rdx + r8 + 1], cl
movzx ecx, byte [rax]
sub byte [rdx + r8 + 2], cl
cmp rbx, 3
jle 0x1400c39de
movzx ecx, byte [rax + 1]
sub byte [rdx + r8 + 3], cl
sub rdx, rbx
sub rax, rbx
test rdx, rdx
jg 0x1400c39b0
movsxd rax, dword [r15 + 0x1c]
dec r9d
add r8, rax
test r9d, r9d
jg 0x1400c3990
movzx r9d, word [rdi + 0x14]
mov r8d, dword [rdi + 0x1c]
mov rdx, qword [r15 + 8]
lea rax, [rbp + 0x3e0]
mov rcx, r12
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400c4080
movzx esi, ax
jmp 0x1400c3aac
mov r8d, dword [rdi + 0x14]
or edx, 0xffffffff
mov rcx, r13
call fcn.1400629c0
xor eax, eax
mov edx, eax
mov r8d, eax
mov eax, dword [rdi + 0x14]
imul eax, dword [rdi]
test eax, eax
jle 0x1400c3a69
nop dword [rax + rax]
mov rcx, qword [r15 + 8]
inc edx
lea r8, [r8 + 1]
not byte [rcx + r8 - 1]
mov eax, dword [rdi + 0x14]
imul eax, dword [rdi]
cmp edx, eax
jl 0x1400c3a50
mov rcx, qword [r12]
call fcn.1401c2310
mov rcx, rdi
mov dword [rsp + 0x30], eax
call fcn.1401643a0
mov edx, dword [rdi + 0x14]
imul edx, dword [rdi]
mov rcx, qword [r15 + 8]
mov r8, rdi
call fcn.140163d10
mov rcx, rdi
movzx esi, ax
call fcn.140164310
mov rcx, qword [r12]
call fcn.1401c2310
sub eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x30]
mov dword [rdx + rcx], eax
mov edx, dword [rsp + 0x38]
add rcx, 4
inc edx
mov qword [rsp + 0x48], rcx
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x38], edx
cmp edx, dword [rdi + 0x18]
jl 0x1400c37a0
mov ebx, 1
mov rcx, qword [rbp + 0x3e0]
call fcn.1401be23c
mov edx, 0x80b2
jmp 0x1400c3afd
mov ebx, 1
movzx esi, bx
movzx ecx, word [rdi + 0xe]
lea eax, [rcx - 3]
cmp ax, 1
jbe 0x1400c3bc2
cmp cx, dx
jne 0x1400c3b22
lea rcx, [rsp + 0x60]
call fcn.1401654e0
jmp 0x1400c3bca
cmp cx, 7
jne 0x1400c3bca
mov rcx, qword [r12]
call fcn.1401c2310
mov dword [rsp + 0x34], eax
test al, 1
je 0x1400c3b4c
mov rdx, qword [r12]
xor ecx, ecx
call fcn.1401c1ae4
inc dword [rsp + 0x34]
movsxd rdx, dword [rbp + 0x3a8]
mov r9, qword [r12]
mov rcx, qword [rbp + 0x3b0]
mov r8, rbx
call fcn.1401c24f8
test byte [rbp + 0x3a8], 1
je 0x1400c3b7a
mov rdx, qword [r12]
xor ecx, ecx
call fcn.1401c1ae4
mov edx, dword [rdi + 0x2c]
mov rcx, qword [r12]
xor r8d, r8d
call fcn.1401c1f88
mov r9, qword [r12]
lea rcx, [rbp + 0x3a8]
mov r8, rbx
mov edx, 4
call fcn.1401c24f8
mov r9, qword [r12]
lea rcx, [rsp + 0x34]
mov r8, rbx
mov edx, 4
call fcn.1401c24f8
lea rcx, [rbp - 0x20]
call fcn.140164ba0
jmp 0x1400c3bca
mov rcx, rdi
call fcn.1401641c0
mov edx, dword [rdi + 0x20]
mov rcx, qword [r12]
xor r8d, r8d
call fcn.1401c1f88
movsxd rdx, dword [rdi + 0x18]
mov r9, qword [r12]
mov rcx, qword [rsp + 0x40]
mov r8d, 4
call fcn.1401c24f8
mov edx, dword [rdi + 0x24]
mov rcx, qword [r12]
xor r8d, r8d
call fcn.1401c1f88
movsxd rdx, dword [rdi + 0x18]
mov r9, qword [r12]
mov rcx, qword [rsp + 0x50]
mov r8d, 4
call fcn.1401c24f8
mov rcx, qword [rsp + 0x40]
call fcn.1401be23c
mov rcx, qword [rsp + 0x50]
jmp 0x1400c3c33
mov esi, 1
test rcx, rcx
je 0x1400c3c38
call fcn.1401be23c
mov rcx, r13
call fcn.14005dcb0
movzx eax, si
mov rcx, qword [rbp + 0x1400]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x1518
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret