Function at 0x1800093e0
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov word [rsp + 0x18], r8w
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r15d, r15d
mov r12, r9
movzx eax, r8w
mov rsi, rdx
mov edi, r15d
mov ebx, r15d
mov r13d, r15d
test r9, r9
je 0x18000941d
mov qword [r9], r15
mov r14, qword [rsp + 0xc0]
test r14, r14
je 0x18000942d
mov qword [r14], r15
movzx ebp, ax
lea rcx, str._TCP__create_tcp_client_channel._host_s__port_d
mov r8d, ebp
call fcn.1800090b0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x180009475
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180009648
movzx ecx, word [rsp + 0xb0]
mov eax, 2
mov word [rsp + 0x30], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rsi
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
cmp eax, 0xffffffff
jne 0x1800094d5
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1800094bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180009648
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x34]
mov rdx, qword [rdx]
call fcn.18002d010
lea rcx, str._TCP__create_tcp_client_channel._host_s__port_d_connecting...
mov r8d, ebp
mov rdx, rsi
call fcn.1800090b0
lea rdx, [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180009526
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str._TCP__create_client_failed_host_s__port_d_error_u_0x_x
mov r8d, ebp
mov r9d, eax
mov rdx, rsi
mov ebx, eax
mov dword [rsp + 0x20], eax
call fcn.1800090b0
jmp 0x180009648
lea rcx, str._TCP__create_tcp_client_channel._host_s__port_d_connected_
mov r8d, ebp
mov rdx, rsi
call fcn.1800090b0
mov ecx, 0x28
call fcn.18002ce68
mov rdi, rax
test rax, rax
jne 0x180009552
lea ebx, [rax + 8]
jmp 0x180009648
xor eax, eax
lea rcx, str._TCP__create_tcp_client_channel._host_s__port_d_creating_the_channel
mov r8d, ebp
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0xa0]
mov qword [rdi + 0x18], r15
mov rdx, rsi
mov qword [rdi], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rax, [0x180009780]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rax
lea rax, [0x180009900]
mov qword [rsp + 0x50], rax
call fcn.1800090b0
mov rax, qword [0x180061460]
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [rax + 0x1f8]
mov r13, rax
test rax, rax
jne 0x1800095d7
lea ebx, [rax + 8]
jmp 0x180009648
lea rcx, str._TCP__create_tcp_client_channel._host_s__port_d_creating_the_notify
mov r8d, ebp
mov rdx, rsi
mov qword [rdi + 8], rax
call fcn.1800090b0
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x180009648
mov rcx, qword [rdi + 0x18]
mov r8d, 0x21
mov rdx, rax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov r9, qword [rdi + 0x10]
lea rcx, str._TCP__create_tcp_client_channel._host_s__port_d_created_the_notify__.8x
mov r8d, ebp
mov rdx, rsi
call fcn.1800090b0
mov rax, qword [0x180061460]
mov rcx, qword [rdi + 0x10]
lea r9, [0x180009960]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [rax + 0x2c0]
lea rcx, str._TCP__create_tcp_client_channel._host_s__port_d_all_done
mov r8d, ebp
mov rdx, rsi
call fcn.1800090b0
test ebx, ebx
je 0x180009690
lea rcx, str._TCP__create_tcp_client_channel._host_s__port_d_cleaning_up_failed_connection
mov r8d, ebp
mov rdx, rsi
call fcn.1800090b0
test rdi, rdi
je 0x18000967f
mov rcx, rdi
call fcn.1800096d0
xor edi, edi
test r15, r15
je 0x18000968d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
xor r13d, r13d
test r12, r12
je 0x180009699
mov qword [r12], r13
mov eax, ebx
test r14, r14
je 0x1800096a3
mov qword [r14], rdi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret