Function at 0x140083780
Capabilities:
Write file on windows

Disassembly:
push rbp
push r13
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x14008fb98]
xor rax, rsp
mov qword [rbp + 7], rax
xorps xmm0, xmm0
mov r15, r8
comisd xmm1, xmm0
mov r13, rcx
jae 0x1400837b6
xorps xmm1, xmmword [0x14008a570]
mov r8d, dword [r8 + 8]
lea rcx, [rbp - 0x69]
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xd0], rdi
call fcn.140082a30
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
mov r9, qword [r13]
cmp byte [r9], 0x5b
je 0x140083a67
cmp byte [r15 + 0x14], 0
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xc0], r14
je 0x140083832
lea rdx, [rbp - 0x69]
movaps xmmword [rbp - 0x69], xmm0
lea rcx, [rbp - 0x49]
movups xmmword [rbp - 0x59], xmm0
call fcn.1400846a0
lea rcx, [rbp - 0x59]
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
call fcn.140084a10
mov r9, qword [r13]
movzx r14d, byte [r15]
xor edi, edi
movzx eax, byte [r15 + 0xc]
xor r8b, r8b
xor dl, dl
mov qword [rbp - 0x19], 0
xor r12d, r12d
mov qword [rbp - 0x11], 0
mov qword [rbp - 9], 0
lea rsi, [rdi - 1]
mov qword [rbp - 1], 0
mov qword [rbp - 0x39], 0
mov qword [rbp - 0x31], 0
mov qword [rbp - 0x29], 0
mov qword [rbp - 0x21], 0
mov dword [rbp - 0x79], edi
cmp r14b, 0x30
jne 0x1400838c6
test al, al
je 0x1400838b8
movzx ecx, byte [r15 + 0xd]
test cl, cl
movzx eax, dl
mov edx, 0x2b
cmovne eax, edx
setne dil
neg cl
mov byte [rbp - 0x39], al
sbb eax, eax
mov dword [rbp - 0x79], eax
jmp 0x1400838f0
mov byte [rbp - 0x39], 0x2d
mov edi, 1
mov dword [rbp - 0x79], esi
jmp 0x1400838f0
test al, al
je 0x1400838e6
movzx ecx, byte [r15 + 0xd]
mov edx, 0x2b
test cl, cl
movzx eax, r8b
cmovne eax, edx
setne r12b
mov byte [rbp - 0x19], al
jmp 0x1400838f0
mov byte [rbp - 0x19], 0x2d
mov r12d, 1
movsxd rbx, dword [r13 + 8]
lea rcx, [rbp - 0x19]
mov eax, r12d
mov r8, rbx
add rcx, rax
mov rdx, r9
call sub.VCRUNTIME140.dll_memcpy
add r12d, ebx
mov ebx, dword [r15 + 4]
mov r15d, dword [r15 + 0x10]
sub ebx, r12d
add ebx, dword [rbp - 0x79]
test r15d, r15d
jne 0x14008393a
test ebx, ebx
jle 0x14008393a
mov eax, edi
lea rcx, [rbp - 0x39]
add rcx, rax
mov r8d, ebx
movzx edx, r14b
call sub.VCRUNTIME140.dll_memset
add edi, ebx
movsxd rax, edi
lea rcx, [rbp - 0x39]
add rcx, rax
movsxd r8, r12d
lea rdx, [rbp - 0x19]
call sub.VCRUNTIME140.dll_memcpy
add edi, r12d
mov r12, qword [rsp + 0xc8]
cmp r15d, 1
jne 0x140083980
test ebx, ebx
jle 0x140083980
movsxd rax, edi
lea rcx, [rbp - 0x39]
add rcx, rax
mov eax, ebx
add edi, ebx
mov byte [rcx], r14b
lea rcx, [rcx + 1]
sub rax, 1
jne 0x140083973
mov r14, qword [rsp + 0xc0]
movsxd rax, edi
cmp rax, 0x20
jae 0x140083ab2
movaps xmmword [rsp + 0xb0], xmm6
movups xmm6, xmmword [r13]
mov byte [rbp + rax - 0x39], 0
lea rax, [rbp - 0x39]
nop dword [rax + rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400839b0
test esi, esi
jne 0x1400839d4
lea rax, [0x140088494]
mov dword [rbp - 0x61], esi
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x5d], 1
jmp 0x140083a06
movsxd rcx, esi
inc rcx
call fcn.1400047a0
movsxd rbx, esi
lea rdx, [rbp - 0x39]
mov r8, rbx
mov qword [rbp - 0x69], rax
mov rcx, rax
mov dword [rbp - 0x61], esi
mov rdi, rax
mov dword [rbp - 0x5d], 0
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
movups xmm0, xmmword [rbp - 0x69]
movdqa xmm1, xmm6
psrldq xmm1, 0xc
movd eax, xmm1
movups xmmword [r13], xmm0
cmp eax, 0xfa1d05ee
jne 0x140083a9b
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
nop dword [rax + 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 0x140083a40
movaps xmm6, xmmword [rsp + 0xb0]
mov rdi, qword [rsp + 0xd0]
mov rax, r13
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x100]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140087230
add rsp, 0xe0
pop r15
pop r13
pop rbp
ret
cmp eax, 1
je 0x140083a5f
movq rcx, xmm6
test rcx, rcx
je 0x140083a5f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140083a5f
call fcn.140086d5c
int3