Function at 0x140001420
Capabilities:
Convert ip address from string
Create udp socket
Initialize winsock library
Log keystrokes via polling
Receive data
Receive data on socket

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp + 0x178], rax
lea rcx, str.color_2
call fcn.140008784
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, str.________________________________________________________n
call fcn.140001030
lea rcx, str._______________________________________________n
call fcn.140001030
lea rcx, [0x1400225e0]
call fcn.140001030
lea rcx, str.___________________________________________n
call fcn.140001030
lea rcx, str.__________________________________________n
call fcn.140001030
lea rcx, str.________________________________________________n_n
call fcn.140001030
lea rcx, str.Welcome_to_rewasd_bypass_2.0_n
call fcn.140001030
mov ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400014d5
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error_code_0x_08X._n
call fcn.140001030
mov eax, 0xffffffff
jmp 0x140001a8f
mov qword [rsp + 0x2a8], r12
mov r8d, reloc.WS2_32.dll_recvfrom
mov r12d, 2
mov edx, r12d
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x140028190], rax
cmp rax, 0xffffffffffffffff
jne 0x140001518
lea rcx, str.Failed_to_create_UDP_transmission_socket._n
call fcn.140001030
lea eax, [r12 - 4]
jmp 0x140001a87
mov ecx, 0x10d9
mov word [rbp - 0x68], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbp - 0x64]
mov ecx, r12d
lea rdx, str.0.0.0.0
mov word [rbp - 0x66], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rcx, qword [0x140028190]
lea rdx, [rbp - 0x68]
mov r8d, recvfrom
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140001585
lea rcx, str.Failed_to_bind_to_0.0.0.0:4313.
call fcn.140001030
mov rcx, qword [0x140028190]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xfffffffd
jmp 0x140001a87
lea rcx, str.This_will_remain_undetected_forever_time_to_get_revenge_on_those_controller_virgins._n
mov qword [rsp + 0x298], r14
call fcn.140001030
lea rcx, str.Setting_up_virtual_controller_n
call fcn.140001030
lea rcx, [0x140001b60]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, 8
call fcn.140008d28
test rax, rax
jne 0x1400015f3
xor r14d, r14d
lea rcx, str.Failed_to_setup_ViGEmClient._n
mov qword [0x140028188], r14
call fcn.140001030
mov rcx, qword [0x140028190]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [r14 - 4]
jmp 0x140001a7f
lea rcx, str.Connecting_to_the_second_pc_where_rewasd_is_installed_n
mov qword [rax], 0xffffffffffffffff
mov qword [0x140028188], rax
call fcn.140001030
call fcn.140001c60
cmp eax, 0x20000000
je 0x140001655
mov edx, eax
lea rcx, str.connection_failed_with_error_code_0x_08X._n
call fcn.140001030
mov rcx, qword [0x140028188]
test rcx, rcx
je 0x140001638
call fcn.1400088f8
mov rcx, qword [0x140028190]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xfffffffb
jmp 0x140001a7f
lea rcx, str.Done._n
mov qword [rsp + 0x2c0], rbx
call fcn.140001030
lea rcx, str.Waiting_for_data_from_second_pc___please_activate_the_config_in_rewasd_and_move_your_gaming_mouse_and_keyboard_n
call fcn.140001030
mov ecx, 0x78
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140001a21
mov qword [rsp + 0x2d0], rdi
xor r14d, r14d
mov qword [rsp + 0x2a0], r13
mov edi, 0x45e
mov qword [rsp + 0x2c8], rsi
lea r13, [0x140028168]
mov qword [rsp + 0x290], r15
movaps xmmword [rsp + 0x280], xmm6
mov rcx, qword [0x140028190]
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x160]
xor r9d, r9d
mov dword [rbp - 0x7c], recvfrom
xorps xmm0, xmm0
lea rax, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x11]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 1
jne 0x140001723
cmp byte [rbp + 0x160], 0xff
jne 0x1400019e5
lea rcx, str.Reset_signal_received__gamepads_will_be_reset._n
call fcn.140001030
call fcn.140001090
jmp 0x1400019e5
cmp eax, 0x11
jne 0x1400019e5
movzx eax, byte [rbp + 0x160]
cmp al, 4
jae 0x1400019e5
lea rsi, [rax*8]
mov r15d, eax
cmp qword [rsi + r13], r14
jne 0x1400018fe
mov ecx, 0x40
call fcn.140008d28
mov rbx, rax
test rax, rax
jne 0x140001767
mov rbx, r14
jmp 0x140001796
xorps xmm0, xmm0
lea rcx, [rax + 0x38]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov dword [rax], 0x40
mov dword [rax + 8], 1
call fcn.140001f00
mov dword [rbx + 0xc], 0x28e045e
mov rdi, qword [0x140028188]
test rdi, rdi
jne 0x1400017b5
mov edi, 0xe0000013
test rbx, rbx
je 0x1400018c8
jmp 0x1400018c0
test rbx, rbx
jne 0x1400017c4
mov edi, 0xe0000003
jmp 0x1400018c8
cmp qword [rdi], 0xffffffffffffffff
jne 0x1400017d4
mov edi, 0xe0000001
jmp 0x1400018c0
mov eax, dword [rbx + 8]
test eax, eax
jne 0x1400017e5
mov edi, 0xe0000006
jmp 0x1400018c0
cmp eax, r12d
jne 0x1400017f4
mov edi, 0xe0000005
jmp 0x1400018c0
xorps xmm0, xmm0
mov dword [rbp - 0x80], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x58], rax
mov eax, 1
mov dword [rbx + 4], 1
nop word [rax + rax]
mov rcx, qword [rdi]
lea r8, [rbp - 0x78]
mov dword [rbp - 0x74], eax
mov r9d, recvfrom
mov eax, dword [rbx + 0x10]
mov edx, 0x2aa004
mov dword [rbp - 0x70], eax
movzx eax, word [rbx + 0xc]
mov word [rbp - 0x6c], ax
movzx eax, word [rbx + 0xe]
mov word [rbp - 0x6a], ax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rbp - 0x78], recvfrom
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [rdi]
lea r8, [rbp - 0x80]
mov r9d, 1
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400018dc
mov eax, dword [rbx + 4]
inc eax
mov dword [rbx + 4], eax
cmp eax, 0xffff
jbe 0x140001830
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xe0000002
mov rcx, rbx
call fcn.1400088f8
mov r8d, edi
lea rcx, str.Failed_to_add_pad__u_with_error_code_0x_08X._n
mov edx, r15d
call fcn.140001030
jmp 0x1400018fe
mov rcx, qword [rsp + 0x58]
mov dword [rbx + 8], r12d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, r15d
lea rcx, str.Connected_new_gamepad__u._n
call fcn.140001030
mov qword [rsi + r13], rbx
mov rdi, qword [rsi + r13]
test rdi, rdi
je 0x1400019e0
mov rbx, qword [0x140028188]
movsd xmm6, qword [rbp + 0x165]
mov esi, dword [rbp + 0x16d]
test rbx, rbx
je 0x1400019e0
cmp qword [rbx], 0xffffffffffffffff
je 0x1400019e0
cmp dword [rdi + 4], r14d
je 0x1400019e0
xorps xmm0, xmm0
mov dword [rbp - 0x80], r14d
xor r9d, r9d
mov qword [rsp + 0x60], r14
xor r8d, r8d
xor edx, edx
xor ecx, ecx
movdqu xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rbx]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov r9d, socket
mov eax, dword [rdi + 4]
mov edx, 0x2aa808
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], socket
movsd qword [rsp + 0x48], xmm6
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [rbx]
lea r8, [rbp - 0x80]
mov r9d, 1
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400019d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x45e
mov ecx, 0x78
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400016c0
movaps xmm6, xmmword [rsp + 0x280]
mov r15, qword [rsp + 0x290]
mov r13, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2c8]
call fcn.140001090
mov rbx, qword [0x140028188]
test rbx, rbx
je 0x140001a5c
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140001a4f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [0x140028188]
test rbx, rbx
je 0x140001a5c
mov rcx, rbx
call fcn.1400088f8
mov rcx, qword [0x140028190]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x2c0]
xor eax, eax
mov r14, qword [rsp + 0x298]
mov r12, qword [rsp + 0x2a8]
mov rcx, qword [rbp + 0x178]
xor rcx, rsp
call fcn.1400020b0
add rsp, 0x2b0
pop rbp
ret