Function at 0x140083ac0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r14
lea rbp, [rsp - 0x4f]
sub rsp, 0xc8
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x140083d0b
test rdx, rdx
jne 0x140083b0c
lea rax, [0x1400884e8]
mov qword [rcx], rax
mov rax, rcx
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], 1
add rsp, 0xc8
pop r14
pop rbp
ret
mov qword [rsp + 0xe8], rbx
mov rax, rdx
mov qword [rsp + 0xc0], rsi
lea rsi, [0x140088494]
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xb0], r12
mov r12, rdx
mov qword [rsp + 0xa8], r13
neg r12
shr rax, 0x3f
xor r13d, r13d
test rdx, rdx
mov qword [rsp + 0xa0], r15
movaps xmmword [rsp + 0x90], xmm6
cmovns r12, rdx
mov qword [rbp + 0x7f], rax
mov qword [rbp - 0x59], rsi
mov dword [rbp - 0x51], r13d
mov dword [rbp - 0x4d], 1
movsxd r14, r8d
nop dword [rax + rax]
movaps xmm6, xmmword [rbp - 0x59]
mov rax, r12
cqo
idiv r14
movsxd rcx, edx
mov r12, rax
mov rax, qword [0x140090280]
movzx ebx, byte [rcx + rax]
mov ecx, 2
call fcn.1400047a0
movsxd rcx, r13d
lea edi, [r13 + 1]
add rcx, 2
mov r15, rax
mov byte [rax], bl
mov byte [rax + 1], 0
call fcn.1400047a0
movzx ecx, byte [r15]
mov rdx, rsi
movsxd r8, r13d
mov rbx, rax
mov byte [rax], cl
lea rcx, [rax + 1]
call sub.VCRUNTIME140.dll_memcpy
movdqa xmm0, xmm6
movsxd rcx, edi
psrldq xmm0, 0xc
mov rsi, rbx
movd eax, xmm0
movsxd r13, edi
mov byte [rcx + rbx], 0
mov qword [rbp - 0x59], rbx
mov dword [rbp - 0x51], r13d
mov dword [rbp - 0x4d], 0
cmp eax, 0xfa1d05ee
jne 0x140083c45
mov ebx, 0x1e
lea rdi, str.double_string.free___detected_n
lea ecx, [rbx - 0x1d]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rdi, rax
sub rbx, rax
test rbx, rbx
jg 0x140083c20
mov rsi, qword [rbp - 0x59]
jmp 0x140083c5a
cmp eax, 1
je 0x140083c5a
movq rcx, xmm6
test rcx, rcx
je 0x140083c5a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r15, r15
je 0x140083c68
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
jne 0x140083b80
cmp byte [rbp + 0x7f], 0
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xb0]
mov r14, qword [rbp + 0x67]
je 0x140083d01
lea rcx, [r13 + 2]
lea edi, [r13 + 1]
call fcn.1400047a0
mov r8, r13
mov rdx, rsi
mov rbx, rax
lea rcx, [rax + 1]
mov byte [rax], 0x2d
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp - 0x59]
mov byte [r13 + rbx + 1], 0
call fcn.140084a10
mov qword [r14], rbx
mov dword [r14 + 8], edi
mov dword [r14 + 0xc], 0
mov rdi, qword [rsp + 0xb8]
mov rax, r14
mov rsi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xa8]
add rsp, 0xc8
pop r14
pop rbp
ret
movaps xmm0, xmmword [rbp - 0x59]
movups xmmword [r14], xmm0
jmp 0x140083cd3
lea rax, str.invalid_radix:
mov dword [rbp - 0x21], r8d
mov qword [rbp - 0x39], rax
lea r8, [rbp - 0x39]
xor eax, eax
mov dword [rbp - 0x31], 0xf
mov qword [rbp - 0x1d], rax
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x15], eax
lea rax, str._._It_should_be___2_and___36
mov qword [rbp - 0x11], rax
xor eax, eax
mov dword [rbp - 0x2d], 1
mov dword [rbp - 0x29], 0xfe07
mov dword [rbp - 9], 0x1e
lea edx, [rax + 2]
mov qword [rbp - 5], 1
mov dword [rbp + 7], eax
mov qword [rbp + 0xb], rax
mov dword [rbp + 0x13], eax
call fcn.140080e60
lea rcx, [rbp - 0x59]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x59], xmm0
call fcn.1400020c0
int3