Function at 0x140008db0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rcx
mov rcx, qword [0x140024d88]
mov edx, 8
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x140008e40
lea rcx, str._n____Error_allocating_memory
call fcn.140001fb0
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattron]
mov rcx, qword [0x140024d38]
lea rdx, str.Error_allocating_memory_n
xor r8d, r8d
call qword [sym.imp.pdcurses.dll_wprintw]
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattroff]
or ecx, 0xffffffff
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov ecx, dword [0x1400240c8]
xor eax, eax
mov qword [rsp + 0x98], rbx
xor ebx, ebx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x70]
lea r8d, [rbx + 0xa]
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x30], rbx
mov qword [0x140024d90], rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x44], 2
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], 6
mov dword [rsp + 0x40], 1
call qword [sym.imp.MSVCR120.dll__itoa]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [0x1400240e0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
je 0x140008f24
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattron]
mov rcx, qword [0x140024d38]
lea rdx, str.WINNER:_Getaddrinfo_failed_with_error:__d_n
xor r9d, r9d
mov r8d, ebp
call qword [sym.imp.pdcurses.dll_wprintw]
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattroff]
lea rcx, str._nWinner:_getaddrinfo_error
call fcn.140001fb0
jmp 0x140009263
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140008f92
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattron]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x140024d38]
lea rdx, str.WINNER:_Socket_function_failed_with_error:__ld_n
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.pdcurses.dll_wprintw]
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattroff]
lea rcx, str._nWinner:_Socket_error:
jmp 0x1400091be
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rax
mov dword [rsp + 0x38], 0xbb8
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140009026
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattron]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x140024d38]
lea rdx, str.WINNER:_Connect_function_failed_with_error:__ld_n
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.pdcurses.dll_wprintw]
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattroff]
lea rcx, str._nWinner:_Connect_server_error
jmp 0x1400091be
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdi + r8], bl
jne 0x140009030
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14000909d
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattron]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x140024d38]
lea rdx, str.WINNER:_Send_request_failed:__ld_n
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.pdcurses.dll_wprintw]
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattroff]
lea rcx, str._nWinner:_Error_sending_request:
jmp 0x1400091be
xor r9d, r9d
mov r8d, 0x3ff
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140009171
nop word [rax + rax]
cdqe
lea rcx, str._nrealloc:
add rbx, rax
call fcn.140001fb0
mov rcx, qword [0x140024d88]
lea r8, [rbx + 0x400]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400091d6
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.MSVCR120.dll_memcpy
mov rcx, qword [0x140024d88]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rdi
add rdi, rbx
cmp byte [reloc.WS2_32.dll_accept], 0
mov byte [rdi + 1], 0
je 0x140009152
mov rcx, qword [0x140024d30]
test rcx, rcx
je 0x140009152
lea rdx, str._llu
mov r8, rbx
call qword [sym.imp.MSVCR120.dll_fprintf_s]
mov rcx, qword [0x140024d30]
call qword [sym.imp.MSVCR120.dll_fflush]
xor r9d, r9d
mov r8d, 0x3ff
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1400090c0
test eax, eax
jns 0x1400091e5
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattron]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x140024d38]
lea rdx, str.WINNER:_Get_info_failed:__ld_n
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.pdcurses.dll_wprintw]
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattroff]
lea rcx, str._nWinner:_Error_response:
call fcn.140001fb0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rcx, eax
call fcn.1400021b0
jmp 0x14000925a
call fcn.140002200
or ecx, 0xffffffff
call qword [sym.imp.MSVCR120.dll_exit]
int3
lea rdx, [0x14001cecc]
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_strstr]
mov rdi, rax
test rax, rax
je 0x14000925a
mov rcx, qword [0x140024d88]
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x140024d90], rax
test rax, rax
jne 0x14000922d
call fcn.140002200
or ecx, 0xffffffff
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, qword [0x140024d88]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapSize]
mov rcx, qword [0x140024d90]
lea r9, [rdi + 4]
lea r8, [0x14001bad4]
mov rdx, rax
call qword [sym.imp.MSVCR120.dll_sprintf_s]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x140024d88]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbx, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140018be0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret