Function at 0x140002e10
Capabilities:
Create thread
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x61], rdx
xor esi, esi
mov rdx, qword [r9]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x140002e57
lea rcx, [rbp - 0x49]
call fcn.140002670
nop
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.140002a20
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140002eb6
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002eb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002eb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033b8c
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x262bb47f
imul r8d
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x6b4eb
sub r8d, eax
add r8d, 0x6b4eb
lea rdx, str._lx.dll
lea rcx, [rbp - 9]
call fcn.1400030d0
lea r8, [0x140038af0]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x61]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rcx, qword [rbp - 0x29]
mov r9, qword [rbp - 0x61]
mov r8, qword [rbp - 0x19]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbp - 0x49], rdi
lea rax, [rbp - 9]
mov qword [rbp - 0x41], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140033910
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rax], xmm0
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400032b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14000305d
cmp dword [rbp - 0x51], 0
je 0x140003051
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x49], xmm0
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140003051
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x59], xmm0
lea rdx, str.ok_detached_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400022d0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x140038978]
mov rcx, rbx
call fcn.140002670
mov byte [rbx + 0x20], 1
cmp dword [rbp - 0x51], 0
je 0x140002ff1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000302f
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000302a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000302a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033b8c
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400338f0
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x51], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3