Function at 0x140216090
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xor r14d, r14d
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x17], 2
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
movzx eax, word [0x140438f94]
mov word [rbp + 7], ax
mov byte [rbp + 9], r14b
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rcx, qword [rbp + 7]
mov r9, qword [rdi + 0x70]
mov r8, qword [rbp + 0x17]
lea edx, [r14 + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rax, str.Profile_Writer
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], select
call sub.KERNEL32.dll_GetCurrentThreadId
mov ebx, eax
mov rsi, qword [rdi + 0x68]
movaps xmm6, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm6
lea r9, [rbp - 0x29]
mov r8d, eax
mov rdx, rsi
mov rcx, rdi
call fcn.140214710
cmp byte [0x14062c970], r14b
je 0x140216169
movdqa xmmword [rbp - 0x29], xmm6
lea r9, [rbp - 0x29]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call fcn.140218930
call fcn.1402fd6b0
add rax, qword [rdi + 0x78]
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 0x29]
lea rcx, [rdi + 0x88]
call fcn.1402fe980
cmp eax, 0xfffffffe
jne 0x1402161ba
nop dword [rax + rax]
mov rcx, rdi
call fcn.140214b70
call fcn.1402fd6b0
add rax, qword [rdi + 0x78]
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 0x29]
lea rcx, [rdi + 0x88]
call fcn.1402fe980
cmp eax, 0xfffffffe
je 0x140216190
mov rcx, rdi
call fcn.140214b70
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
mov qword [rbp - 9], 5
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov eax, dword [0x140472db8]
mov dword [rbp - 0x19], eax
movzx eax, byte [reloc.WS2_32.dll_ioctlsocket]
mov byte [rbp - 0x15], al
mov byte [rbp - 0x14], 0
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rcx, qword [rbp - 0x19]
mov r9, qword [rdi + 0x70]
mov r8, qword [rbp - 9]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14021625f
inc rdx
mov rcx, qword [rbp - 0x19]
cmp rdx, 0x1000
jb 0x14021625a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402162e1
mov rcx, r8
call fcn.140283db0
mov qword [rbp - 9], r14
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1402162a6
inc rdx
mov rcx, qword [rbp + 7]
cmp rdx, 0x1000
jb 0x1402162a1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402162e8
mov rcx, r8
call fcn.140283db0
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 7], 0
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140284180
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3