Function at 0x140011433
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x140011df0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xa30
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1c4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa58]
mov rax, qword [0x14001f040]
xor rax, rbp
mov qword [rbp + 0xa08], rax
mov byte [rbp + 0x9f4], 0
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011442
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x140011e7a
mov edx, dword [rbp + 0x1c4]
lea rcx, str.Failed_to_initialize_Winsock__Error:__d_n
call fcn.1400111e0
jmp 0x1400120b7
lea rax, [rbp + 0x2a0]
lea rcx, str.Hello_from_client
mov rdi, rax
mov rsi, rcx
mov ecx, send
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x2b2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ee
rep stosb byte [rdi], al
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x1e8]
call fcn.140011357
mov dword [rbp + 0x1ec], 2
mov dword [rbp + 0x1f0], 1
mov dword [rbp + 0x1f4], 6
lea r9, [rbp + 0x238]
lea r8, [rbp + 0x1e8]
mov rdx, qword [rbp + 0xa38]
mov rcx, qword [rbp + 0xa30]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rbp + 0x6b4], eax
cmp dword [rbp + 0x6b4], 0
je 0x140011f30
mov ecx, dword [rbp + 0x6b4]
call fcn.140011136
mov rdx, rax
lea rcx, str.getaddrinfo_failed:__s_n
call fcn.1400111e0
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400120b7
mov rax, qword [rbp + 0x238]
mov qword [rbp + 0x258], rax
jmp 0x140011f52
mov rax, qword [rbp + 0x258]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
je 0x140012059
mov rax, qword [rbp + 0x258]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0x258]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x258]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov byte [rbp + 0x9f4], 1
mov dword [rbp + 0x274], eax
cmp byte [rbp + 0x9f4], 0
jne 0x140011fa7
lea rcx, str.client_sock
call fcn.1400110aa
movsxd rax, dword [rbp + 0x274]
cmp rax, 0xffffffffffffffff
jne 0x140011fcd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_socket__Error:__d_n
call fcn.1400111e0
jmp 0x140011f40
cmp byte [rbp + 0x9f4], 0
jne 0x140011fe2
lea rcx, str.client_sock
call fcn.1400110aa
movsxd rax, dword [rbp + 0x274]
mov rcx, qword [rbp + 0x258]
mov r8d, dword [rcx + 0x10]
mov rcx, qword [rbp + 0x258]
mov rdx, qword [rcx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x6d4], eax
cmp dword [rbp + 0x6d4], 0xffffffff
jne 0x140012052
cmp byte [rbp + 0x9f4], 0
jne 0x14001202c
lea rcx, str.client_sock
call fcn.1400110aa
movsxd rax, dword [rbp + 0x274]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov byte [rbp + 0x9f4], 1
mov dword [rbp + 0x274], 0xffffffff
jmp 0x140011f40
jmp 0x140012059
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp byte [rbp + 0x9f4], 0
jne 0x14001207b
lea rcx, str.client_sock
call fcn.1400110aa
movsxd rax, dword [rbp + 0x274]
cmp rax, 0xffffffffffffffff
jne 0x14001209c
lea rcx, str.Failed_to_connect_to_server__n
call fcn.1400111e0
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400120b7
cmp byte [rbp + 0x9f4], 0
jne 0x1400120b1
lea rcx, str.client_sock
call fcn.1400110aa
mov eax, dword [rbp + 0x274]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
call fcn.1400113a7
mov rax, rdi
mov rcx, qword [rbp + 0xa08]
xor rcx, rbp
call fcn.1400111f9
lea rsp, [rbp + 0xa10]
pop rdi
pop rsi
pop rbp
ret