Function at 0x1400012c0
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x220
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x40]
mov rsi, r8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001318
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Erreur_lors_de_linitialisation_de_Winsock_n
call fcn.1400029a0
inc dword [0x140008760]
jmp 0x140001444
mov qword [rsp + 0x218], rbp
mov ecx, 0x38
mov qword [rsp + 0x210], r14
call qword [sym.imp.WS2_32.dll_htons]
cmp qword [rbx + 0x18], 0xf
movzx r14d, ax
jbe 0x140001341
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp qword [rdi + 0x18], 0xf
mov ebp, eax
jbe 0x140001356
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [rsi]
mov edi, eax
dec edx
cmp edx, 0xfffe
ja 0x1400014d6
mov ecx, 0xc
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi]
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xc
movzx ebx, ax
call qword [sym.imp.WS2_32.dll_htons]
xor edx, edx
mov word [rsp + 0x1e0], 0x45
mov ecx, 0x50
mov dword [rsp + 0x1e4], edx
mov word [rsp + 0x1f4], cx
mov ecx, 2
mov word [rsp + 0x1fa], dx
lea r8d, [rdx + 0x11]
mov word [rsp + 0x1e2], r14w
mov edx, ecx
mov dword [rsp + 0x1e8], 0x1140
mov dword [rsp + 0x1ec], ebp
mov dword [rsp + 0x1f0], edi
mov word [rsp + 0x1f6], bx
mov word [rsp + 0x1f8], ax
mov word [rsp + 0x30], cx
mov word [rsp + 0x32], bx
mov dword [rsp + 0x34], edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000145f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Erreur_lors_de_la_creation_de_la_socket_n
call fcn.1400029a0
call qword [sym.imp.WS2_32.dll_WSACleanup]
inc dword [0x140008760]
mov rbp, qword [rsp + 0x218]
mov r14, qword [rsp + 0x210]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140003470
add rsp, 0x220
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov dword [rsp + 0x28], sendto
lea rax, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x20]
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1400014af
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Erreur_lors_de_lenvoi_du_paquet_UDP_n
call fcn.1400029a0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001428
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Paquet_UDP_envoyer_avec_succes_n
call fcn.1400029a0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001434
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Invalid_port_number__n
call fcn.1400029a0
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3