Function at 0x405f00
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 [0x0043b050]
cmp dword [0x0043b048], ecx
mov esi, ecx
mov rbp, rdx
mov ebx, r8d
jge 0x405f30
test rdi, rdi
je 0x4061a0
mov rcx, rbp
call sym.strlen
xor r8d, r8d
add rax, rbp
cmp rbp, rax
je 0x405f63
nop dword [rax + rax]
movzx ecx, byte [rax - 1]
cmp cl, 0x2f
je 0x405f63
cmp cl, 0x5c
je 0x405f63
sub rax, 1
add r8, 1
cmp rbp, rax
jne 0x405f48
cmp ebx, 0x270f
jle 0x4060a8
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 0x4061f0
xor eax, eax
test r8b, 4
je 0x405fa9
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, 4
test r8b, 2
je 0x405fbd
movzx r9d, word [rdx + rax]
mov word [rcx + rax], r9w
add rax, 2
and r8d, 1
je 0x405fca
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 0x4061b0
test al, 4
jne 0x40629a
test rax, rax
jne 0x406230
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 0x406000
mov byte [rcx - 1], 0x3a
test rdi, rdi
je 0x406062
mov rcx, rdi
mov r14d, dword [0x0043b048]
call sym.strlen
mov r13, rax
test rax, rax
jne 0x40614c
cmp r14d, esi
jl 0x4061a0
mov r9, qword [0x0043b040]
test r9, r9
je 0x406280
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 0x406220
cmp ebx, 0x63
jg 0x406260
xor ebp, ebp
cmp ebx, 0xa
setge bpl
xor edx, edx
add rbp, 2
cmp ebx, 0xa
setl dl
add rdx, 0x14
jmp 0x405f79
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 0x406170
add rax, 1
mov rbx, rax
sub rbx, rdi
sub rbx, 1
cmp rbp, rbx
jb 0x406140
sub r15, rax
test rbx, rbx
jne 0x406180
nop word [rax + rax]
test r15, r15
jne 0x406250
nop dword [rax]
test r13, r13
je 0x406059
mov rdi, r9
xor ebx, ebx
jmp 0x40615d
add rbx, 1
cmp rbx, r13
je 0x406270
cmp byte [rdi + rbx], 0x2c
lea r15, [rdi + rbx]
jne 0x406150
jmp 0x4060e0
cmp rbp, rbx
jb 0x406140
xor r15d, r15d
test rbx, rbx
je 0x406140
nop dword [rax]
xor edx, edx
jmp 0x406191
add rdx, 1
cmp rdx, rbx
jae 0x406130
movzx ecx, byte [rdi + rdx]
cmp byte [r12 + rdx], cl
je 0x406188
jmp 0x406140
xor eax, eax
jmp 0x406090
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 0x406000
and rax, 0xfffffffffffffff8
xor edx, edx
mov qword [r9 + rdx], r8
add rdx, 8
cmp rdx, rax
jb 0x4061dd
jmp 0x406000
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 0x4061f9
lea rcx, [r12 + rdx]
add rdx, rax
jmp 0x405f98
mov ebp, 5
mov edx, 0x12
jmp 0x405f79
mov byte [rcx], 0x20
test al, 2
je 0x406000
mov edx, 0x2020
mov word [rcx + rax - 2], dx
jmp 0x406000
movsx r14d, byte [rax]
sub r14d, 0x30
jmp 0x406059
mov ebp, 4
mov edx, 0x13
jmp 0x405f79
lea r9, [rdi + rbx]
xor r13d, r13d
mov r15, r9
jmp 0x4060ed
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov qword [0x0043b040], rax
mov r9, rax
jmp 0x406072
mov dword [rcx], 0x20202020
mov dword [rcx + rax - 4], 0x20202020
jmp 0x406000