Function at 0x140001480
Capabilities:
Convert ip address from string
Create thread
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov rsi, rdx
mov edi, ecx
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], sendto
mov byte [rbp - 0x58], r15b
mov dword [rbp - 0x60], 0x10d9
lea r14, [r15 - 1]
cmp ecx, 1
jle 0x140001522
mov r9, qword [rdx + 8]
mov rbx, r14
nop
inc rbx
cmp byte [r9 + rbx], 0
jne 0x1400014f0
lea rcx, [rbp - 0x58]
cmp rbx, 0xf
ja 0x14000151a
mov qword [rbp - 0x48], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x58], 0
jmp 0x140001522
mov rdx, rbx
call fcn.140002320
cmp edi, 2
jle 0x14000153b
lea r8, [rbp - 0x60]
lea rdx, [0x140004588]
mov rcx, qword [rsi + 0x10]
call fcn.140001090
mov r12d, 2
cmp qword [rbp - 0x48], 0
jne 0x1400015be
nop dword [rax + rax]
lea rcx, str.Please_enter_the_IP_of_the_target_computer._n
call fcn.140001030
lea rdx, [rbp - 0x58]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140001e00
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea r8, [0x14000772c]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x1400015be
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002520
mov rcx, rax
lea rdx, str._is_not_a_valid_ip._n
call fcn.140001ff0
jmp 0x140001550
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea r8, [0x14000772c]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140001613
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002520
mov rcx, rax
lea rdx, str._is_not_a_valid_ip__please_try_again____n
call fcn.140001ff0
jmp 0x140001794
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
mov byte [rsp + 0x40], 0x37
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rax
mov eax, 0x100
mov word [rsp + 0x50], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.NETAPI32.dll_Netbios]
mov ebx, r15d
cmp byte [rbp - 0x10], bl
jbe 0x140001787
lea rdi, [rbp - 0xf]
mov r13d, 0x258
lea rsi, [0x140007720]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
mov byte [rsp + 0x40], 0x32
movzx eax, byte [rdi]
mov byte [rbp - 0x80], al
lea rcx, [rsp + 0x40]
call qword [sym.imp.NETAPI32.dll_Netbios]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
mov byte [rsp + 0x40], 0x33
movzx eax, byte [rdi]
mov byte [rbp - 0x80], al
lea r8, [0x1400044d4]
mov edx, sendto
lea rcx, [rsp + 0x52]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x48], rax
mov word [rsp + 0x50], r13w
lea rcx, [rsp + 0x40]
call qword [sym.imp.NETAPI32.dll_Netbios]
test al, al
jne 0x140001776
movzx eax, byte [rbp + 0xf0]
mov byte [0x140007720], al
movzx eax, byte [rbp + 0xf1]
mov byte [0x140007721], al
movzx eax, byte [rbp + 0xf2]
mov byte [0x140007722], al
movzx eax, byte [rbp + 0xf3]
mov byte [0x140007723], al
movzx eax, byte [rbp + 0xf4]
mov byte [0x140007724], al
movzx eax, byte [rbp + 0xf5]
mov byte [0x140007725], al
mov rax, r15
nop word [rax + rax]
movzx ecx, byte [rax + rsi]
test cl, cl
je 0x14000176d
cmp cl, 0xff
jb 0x1400017d9
inc rax
cmp rax, 6
jl 0x140001760
inc ebx
inc rdi
movzx eax, byte [rbp - 0x10]
cmp ebx, eax
jl 0x140001672
lea rcx, str.Failed_to_get_mac_address_._n
call fcn.140001030
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140001ac1
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001abc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001abc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x60]
lea rcx, str.Connected_to_server__s:_d._n
call fcn.140001030
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
movzx eax, byte [0x140007725]
movzx ecx, byte [0x140007724]
movzx r10d, byte [0x140007723]
movzx r9d, byte [0x140007722]
movzx r8d, byte [0x140007721]
movzx edx, byte [0x140007720]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r10d
lea rcx, str.Starting_networking_at__02X:_02X:_02X:_02X:_02X:_02X_..._n
call fcn.140001030
mov ecx, 0x202
lea rdx, [rbp + 0x350]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001874
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error_code_0x_08X._n
call fcn.140001030
mov r14d, 0xfffffffe
jmp 0x140001794
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, r12d
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x140007738], rax
cmp rax, r14
jne 0x1400018a9
lea rcx, str.Failed_to_create_UDP_transmission_socket._n
call fcn.140001030
mov r14d, 0xfffffffd
jmp 0x140001794
mov word [0x140007728], r12w
movzx ecx, word [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14000772a], ax
lea rcx, str.Waiting_for_gamepad_input__press_CtrlC_to_exit..._n
call fcn.140001030
mov ecx, 8
call fcn.1400027a0
lea rcx, [0x140001370]
mov qword [rax], rcx
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140002700]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x28], rax
test rax, rax
je 0x140001aac
xorps xmm0, xmm0
movups xmmword [0x140007740], xmm0
movups xmmword [0x140007750], xmm0
movups xmmword [0x140007760], xmm0
movups xmmword [0x140007770], xmm0
lea r12, [0x140007740]
lea r13, [0x140007700]
lea r15, [0x140007728]
nop dword [rax]
xor bl, bl
mov rdi, r12
mov rsi, r13
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movzx r14d, bl
lea rdx, [rbp - 0x38]
mov ecx, r14d
call qword [sym.imp.XINPUT9_1_0.dll_XInputGetState]
test eax, eax
jne 0x140001a83
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
sub rax, qword [rsi]
cmp rax, 5
jl 0x1400019ff
mov byte [rbp + 0x4f0], 3
mov byte [rbp + 0x4f1], bl
mov eax, dword [0x140007720]
mov dword [rbp + 0x4f2], eax
movzx eax, word [0x140007724]
mov word [rbp + 0x4f6], ax
mov dword [rsp + 0x28], sendto
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8d, [r9 + 8]
lea rdx, [rbp + 0x4f0]
mov rcx, qword [0x140007738]
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 8
je 0x1400019f4
mov edx, r14d
lea rcx, str.Failed_to_checktimeOut_of_client_controller__u_._n
call fcn.140001030
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsi], rax
mov rax, qword [rdi]
cmp rax, qword [rbp - 0x38]
jne 0x140001a12
mov rax, qword [rdi + 8]
cmp rax, qword [rbp - 0x30]
je 0x140001a83
mov byte [rbp + 0x4f8], 4
mov byte [rbp + 0x4f9], bl
mov eax, dword [0x140007720]
mov dword [rbp + 0x4fa], eax
movzx eax, word [0x140007724]
mov word [rbp + 0x4fe], ax
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rbp + 0x500], xmm0
movups xmmword [rdi], xmm0
mov dword [rsp + 0x28], sendto
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8d, [r9 + 0x18]
lea rdx, [rbp + 0x4f8]
mov rcx, qword [0x140007738]
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0x18
je 0x140001a83
mov edx, r14d
lea rcx, str.Failed_to_send_update_message_of_client_controller__u._n
call fcn.140001030
inc bl
add rsi, 8
add rdi, 0x10
cmp bl, 4
jb 0x140001960
mov qword [rbp - 0x38], 1
lea rcx, [rbp - 0x38]
call fcn.140001c70
jmp 0x140001950
mov dword [rbp - 0x20], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.1400027dc
mov eax, r14d
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.140002780
lea r11, [rsp + 0x620]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret