Function at 0x4061a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, qword [0x0043b060]
cmp dword [0x0043b058], ecx
mov esi, ecx
mov rbp, rdx
mov ebx, r8d
jge 0x4061d0
test rdi, rdi
je 0x406440
mov rcx, rbp
call sym.strlen
xor r8d, r8d
add rax, rbp
cmp rbp, rax
je 0x406203
nop dword [rax + rax]
movzx ecx, byte [rax - 1]
cmp cl, 0x2f
je 0x406203
cmp cl, 0x5c
je 0x406203
sub rax, 1
add r8, 1
cmp rbp, rax
jne 0x4061e8
cmp ebx, 0x270f
jle 0x406348
mov ebp, 6
mov edx, 0x11
cmp r8, rdx
lea r12, [rsp + 0x30]
cmova r8, rdx
mov rcx, r12
mov rdx, rax
add rbp, r8
cmp r8d, 8
jae 0x406490
xor eax, eax
test r8b, 4
je 0x406249
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, 4
test r8b, 2
je 0x40625d
movzx r9d, word [rdx + rax]
mov word [rcx + rax], r9w
add rax, 2
and r8d, 1
je 0x40626a
movzx edx, byte [rdx + rax]
mov byte [rcx + rax], dl
mov eax, 0x18
lea rcx, [r12 + rbp]
movabs r8, 0x2020202020202020
sub rax, rbp
cmp rax, 8
jae 0x406450
test al, 4
jne 0x40653a
test rax, rax
jne 0x4064d0
nop dword [rax + rax]
movsxd rax, ebx
mov edx, ebx
mov r11d, ebx
sub rcx, 1
imul rax, rax, 0x66666667
sar edx, 0x1f
sar rax, 0x22
sub eax, edx
lea edx, [rax + rax*4]
add edx, edx
sub r11d, edx
mov edx, r11d
add edx, 0x30
mov byte [rcx], dl
mov edx, ebx
mov ebx, eax
cmp edx, 9
jg 0x4062a0
mov byte [rcx - 1], 0x3a
test rdi, rdi
je 0x406302
mov rcx, rdi
mov r14d, dword [0x0043b058]
call sym.strlen
mov r13, rax
test rax, rax
jne 0x4063ec
cmp r14d, esi
jl 0x406440
mov r9, qword [0x0043b050]
test r9, r9
je 0x406520
mov r8d, 0x18
mov edx, 1
mov rcx, r12
mov dword [0x004320e0], esi
call sym.fwrite
mov eax, 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp ebx, 0x3e7
jg 0x4064c0
cmp ebx, 0x63
jg 0x406500
xor ebp, ebp
cmp ebx, 0xa
setge bpl
xor edx, edx
add rbp, 2
cmp ebx, 0xa
setl dl
add rdx, 0x14
jmp 0x406219
lea r9, [r15 + 1]
mov rax, r9
sub rax, rdi
sub r13, rax
mov r8, rbx
mov edx, 0x3d
mov rcx, rdi
mov qword [rsp + 0x28], r9
call sym.memchr
mov r9, qword [rsp + 0x28]
test rax, rax
je 0x406410
add rax, 1
mov rbx, rax
sub rbx, rdi
sub rbx, 1
cmp rbp, rbx
jb 0x4063e0
sub r15, rax
test rbx, rbx
jne 0x406420
nop word [rax + rax]
test r15, r15
jne 0x4064f0
nop dword [rax]
test r13, r13
je 0x4062f9
mov rdi, r9
xor ebx, ebx
jmp 0x4063fd
add rbx, 1
cmp rbx, r13
je 0x406510
cmp byte [rdi + rbx], 0x2c
lea r15, [rdi + rbx]
jne 0x4063f0
jmp 0x406380
cmp rbp, rbx
jb 0x4063e0
xor r15d, r15d
test rbx, rbx
je 0x4063e0
nop dword [rax]
xor edx, edx
jmp 0x406431
add rdx, 1
cmp rdx, rbx
jae 0x4063d0
movzx ecx, byte [rdi + rdx]
cmp byte [r12 + rdx], cl
je 0x406428
jmp 0x4063e0
xor eax, eax
jmp 0x406330
lea r9, [rcx + 8]
mov rdx, rcx
mov qword [rcx], r8
and r9, 0xfffffffffffffff8
mov qword [rcx + rax - 8], r8
sub rdx, r9
add rax, rdx
and rax, 0xfffffffffffffff8
cmp rax, 8
jb 0x4062a0
and rax, 0xfffffffffffffff8
xor edx, edx
mov qword [r9 + rdx], r8
add rdx, 8
cmp rdx, rax
jb 0x40647d
jmp 0x4062a0
mov r10d, r8d
xor edx, edx
and r10d, 0xfffffff8
mov ecx, edx
add edx, 8
mov r9, qword [rax + rcx]
mov qword [r12 + rcx], r9
cmp edx, r10d
jb 0x406499
lea rcx, [r12 + rdx]
add rdx, rax
jmp 0x406238
mov ebp, 5
mov edx, 0x12
jmp 0x406219
mov byte [rcx], 0x20
test al, 2
je 0x4062a0
mov edx, 0x2020
mov word [rcx + rax - 2], dx
jmp 0x4062a0
movsx r14d, byte [rax]
sub r14d, 0x30
jmp 0x4062f9
mov ebp, 4
mov edx, 0x13
jmp 0x406219
lea r9, [rdi + rbx]
xor r13d, r13d
mov r15, r9
jmp 0x40638d
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov qword [0x0043b050], rax
mov r9, rax
jmp 0x406312
mov dword [rcx], 0x20202020
mov dword [rcx + rax - 4], 0x20202020
jmp 0x4062a0