Function at 0x403d60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x0043b058], 3
mov rsi, qword [0x0043b060]
jg 0x403d89
test rsi, rsi
je 0x403ff0
lea r9, [0x00433257]
lea r10, str._home_ubuntu_windows_test_mjs.c
mov rax, r9
jmp 0x403dae
movzx edx, byte [rax - 1]
cmp dl, 0x2f
je 0x403dbd
cmp dl, 0x5c
je 0x403dbd
sub rax, 1
mov r8, r9
sub r8, rax
cmp rax, r10
jne 0x403da0
cmp ecx, 0x270f
jle 0x403f08
mov ebx, 6
mov edx, 0x11
cmp rdx, r8
lea r12, [rsp + 0x20]
cmovbe r8, rdx
mov r9, r12
mov rdx, rax
add rbx, r8
cmp r8d, 8
jae 0x404040
xor eax, eax
test r8b, 4
je 0x403e04
mov eax, dword [rdx]
mov dword [r9], eax
mov eax, 4
test r8b, 2
je 0x403e18
movzx r10d, word [rdx + rax]
mov word [r9 + rax], r10w
add rax, 2
and r8d, 1
je 0x403e26
movzx edx, byte [rdx + rax]
mov byte [r9 + rax], dl
mov eax, 0x18
lea r8, [r12 + rbx]
movabs r9, 0x2020202020202020
sub rax, rbx
cmp rax, 8
jae 0x404000
test al, 4
jne 0x4040ea
test rax, rax
jne 0x404080
nop word [rax + rax]
movsxd rax, ecx
mov edx, ecx
mov edi, ecx
sub r8, 1
imul rax, rax, 0x66666667
sar edx, 0x1f
sar rax, 0x22
sub eax, edx
lea edx, [rax + rax*4]
add edx, edx
sub edi, edx
mov edx, edi
add edx, 0x30
mov byte [r8], dl
mov edx, ecx
mov ecx, eax
cmp edx, 9
jg 0x403e60
mov byte [r8 - 1], 0x3a
test rsi, rsi
je 0x403ec0
mov rcx, rsi
mov ebp, dword [0x0043b058]
call sym.strlen
mov r13, rax
test rax, rax
jne 0x403f9c
cmp ebp, 3
jle 0x403ff0
mov r9, qword [0x0043b050]
test r9, r9
je 0x4040d0
mov r8d, 0x18
mov edx, 1
mov rcx, r12
mov dword [0x004320e0], 4
call sym.fwrite
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp ecx, 0x3e7
jg 0x404070
cmp ecx, 0x63
jg 0x4040b0
xor ebx, ebx
cmp ecx, 0xa
setge bl
xor edx, edx
add rbx, 2
cmp ecx, 0xa
setl dl
add rdx, 0x14
jmp 0x403dd3
lea r14, [r15 + 1]
mov rax, r14
sub rax, rsi
sub r13, rax
mov r8, rdi
mov edx, 0x3d
mov rcx, rsi
call sym.memchr
test rax, rax
je 0x403fc0
add rax, 1
mov rdi, rax
sub rdi, rsi
sub rdi, 1
cmp rbx, rdi
jb 0x403f90
sub r15, rax
test rdi, rdi
jne 0x403fd0
nop dword [rax]
test r15, r15
jne 0x4040a0
nop dword [rax]
test r13, r13
je 0x403eb7
mov rsi, r14
xor edi, edi
jmp 0x403fad
add rdi, 1
cmp rdi, r13
je 0x4040c0
cmp byte [rsi + rdi], 0x2c
lea r15, [rsi + rdi]
jne 0x403fa0
jmp 0x403f40
cmp rbx, rdi
jb 0x403f90
xor r15d, r15d
test rdi, rdi
je 0x403f90
nop dword [rax]
xor edx, edx
jmp 0x403fe1
add rdx, 1
cmp rdx, rdi
jae 0x403f80
movzx ecx, byte [rsi + rdx]
cmp byte [r12 + rdx], cl
je 0x403fd8
jmp 0x403f90
xor eax, eax
jmp 0x403ef2
lea r10, [r8 + 8]
mov rdx, r8
mov qword [r8], r9
and r10, 0xfffffffffffffff8
mov qword [r8 + rax - 8], r9
sub rdx, r10
add rax, rdx
and rax, 0xfffffffffffffff8
cmp rax, 8
jb 0x403e60
and rax, 0xfffffffffffffff8
xor edx, edx
mov qword [r10 + rdx], r9
add rdx, 8
cmp rdx, rax
jb 0x40402d
jmp 0x403e60
mov r11d, r8d
xor edx, edx
and r11d, 0xfffffff8
mov r9d, edx
add edx, 8
mov r10, qword [rax + r9]
mov qword [r12 + r9], r10
cmp edx, r11d
jb 0x404049
lea r9, [r12 + rdx]
add rdx, rax
jmp 0x403df2
mov ebx, 5
mov edx, 0x12
jmp 0x403dd3
mov byte [r8], 0x20
test al, 2
je 0x403e60
mov edx, 0x2020
mov word [r8 + rax - 2], dx
jmp 0x403e60
movsx ebp, byte [rax]
sub ebp, 0x30
jmp 0x403eb7
mov ebx, 4
mov edx, 0x13
jmp 0x403dd3
lea r14, [rsi + rdi]
xor r13d, r13d
mov r15, r14
jmp 0x403f4d
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov qword [0x0043b050], rax
mov r9, rax
jmp 0x403ed0
mov dword [r8], 0x20202020
mov dword [r8 + rax - 4], 0x20202020
jmp 0x403e60