Function at 0x140009420
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x420
mov rax, qword [0x14003c180]
xor rax, rsp
mov qword [rsp + 0x418], rax
mov rdi, rcx
mov qword [rsp + 0xd0], rcx
xor r12d, r12d
mov byte [rsp + 0x160], r12b
mov ecx, 0x202
lea rdx, [rsp + 0x270]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000995c
movzx eax, word [rsp + 0x270]
cmp al, 2
jne 0x14000992e
shr ax, 8
cmp al, 2
jne 0x14000992e
mov word [rsp + 0x160], 1
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400094b8
add r8, qword [rdi]
mov rdx, qword [rdi]
jmp 0x1400094be
add r8, rdi
mov rdx, rdi
lea rcx, [rsp + 0x168]
call fcn.14000eb60
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], r12
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor r8d, r8d
lea rdx, [0x140030211]
lea rcx, [rsp + 0x30]
call fcn.140010940
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8d, 3
lea rdx, [0x140031428]
lea rcx, [rsp + 0x58]
call fcn.140010940
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
add r8, rdx
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xd8]
call fcn.14000ea90
nop
mov qword [rsp + 0x28], 0xffffffffffffffff
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x160]
call fcn.140005cd0
nop
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x1400095d8
mov rdx, qword [rsp + 0xe8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400095d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400095d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400287cc
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140009618
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009613
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400287cc
movdqa xmm0, xmmword [0x140031b60]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000966b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009666
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009666
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400287cc
movdqa xmm0, xmmword [0x140031b60]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x78]
call fcn.14000e0e0
xorps xmm0, xmm0
movups xmmword [rsp + 0xd8], xmm0
mov r15, qword [rsp + 0x140]
mov r14, qword [rsp + 0x148]
mov qword [rsp + 0xe8], r12
cmp r15, r14
jne 0x1400096cd
mov r8, r12
mov ebx, recv
mov qword [rsp + 0xf0], rbx
mov byte [rsp + 0xd8], r8b
jmp 0x1400097e8
sub r14, r15
mov qword [rsp + recv0], 0xf
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140009987
mov esi, recv
cmp r14, rsi
jbe 0x1400097a5
mov rsi, r14
or rsi, 0xf
cmp rsi, rax
jbe 0x14000974c
mov rsi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140028790
mov rcx, rax
test rax, rax
je 0x140009849
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], rsi
jmp 0x1400097ad
mov eax, socket
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140009774
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000998c
jmp 0x14000971a
test rcx, rcx
je 0x140009790
call fcn.140028790
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], rsi
jmp 0x1400097ad
mov rax, r12
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], rsi
jmp 0x1400097ad
mov rax, qword [rsp + 0xd8]
lea rbx, [rsp + 0xd8]
cmp rsi, 0xf
cmova rbx, rax
mov r8, r14
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0xe8], r14
mov byte [rbx + r14], 0
mov rbx, qword [rsp + 0xf0]
mov r8, qword [rsp + 0xe8]
lea rcx, [rsp + 0xd8]
mov rsi, qword [rsp + 0xd8]
cmp rbx, 0xf
cmova rcx, rsi
cmp r8, 4
jne 0x1400098ff
lea rdx, str.true
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400098ff
cmp rbx, 0xf
jbe 0x140009859
lea rdx, [rbx + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140009850
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009850
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400287cc
nop
lea rcx, [rsp + 0x100]
call fcn.140007190
nop
lea rcx, [rsp + 0x168]
call fcn.140006ee0
cmp byte [rsp + 0x160], 0
je 0x140009885
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400098bb
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400098b6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400098f8
mov rcx, r8
call fcn.1400287cc
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
mov rcx, qword [rsp + 0x418]
xor rcx, rsp
call fcn.140028770
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.____Invalid_license_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140010290
lea rdx, [0x140010460]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x90]
call fcn.140002320
lea rdx, [0x140039888]
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll__CxxThrowException
lea r9, str.WSAStartup_failed
mov edx, eax
lea rcx, [rsp + 0xa8]
call fcn.1400027d0
lea rdx, [0x1400397f8]
lea rcx, [rsp + 0xa8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001520
call fcn.140001480
int3