Function at 0x1801344c0
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5a8]
sub rsp, 0x6a8
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov ebx, r9d
mov r12, r8
mov r13, rdx
mov r15, rcx
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
xor r14d, r14d
mov qword [rsp + 0x40], r14
or rsi, 0xffffffffffffffff
test byte [rcx + 0x28], 1
je 0x1801345d7
mov qword [rbp - 0x38], SafeArrayLock
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x50], al
lea r8d, [rax + 0x2f]
lea rdx, str._Connector::NewConnect__Connection_alredy_exist
lea rcx, [rbp - 0x50]
call fcn.180006768
nop
mov dword [r15], esi
lea rcx, [r15 + 8]
lea rax, [rbp - 0x50]
cmp rcx, rax
je 0x18013457a
or r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x50]
call fcn.180006868
nop
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x1801345d0
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, 0x1000
jb 0x1801345cb
test cl, 0x1f
je 0x18013459e
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801345ad
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801345bc
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x1801345c8
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
xor eax, eax
jmp 0x18013503f
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x5c], 2
mov dword [rsp + 0x60], 1
cmp qword [r8 + 0x18], 0x10
jb 0x180134610
mov rdx, qword [r8]
jmp 0x180134613
mov rdx, r12
cmp qword [r13 + 0x18], 0x10
jb 0x180134620
mov rcx, qword [r13]
jmp 0x180134623
mov rcx, r13
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x180134933
cmp eax, 0xffffffff
jne 0x18013464e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.180132d30
mov rbx, rax
mov r8, r13
lea rdx, str._Connector::NewConnect__Setup_connection_parameters_failed__
lea rcx, [rbp - 0x70]
call fcn.180011b58
nop
lea r8, [0x180187710]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.18000e534
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.180013334
nop
lea r8, str._:_wsaerror
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.18000e534
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.180132b20
nop
mov dword [r15], 0xffffffff
lea rcx, [r15 + 8]
cmp rcx, rax
je 0x1801346db
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x180134731
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, 0x1000
jb 0x18013472c
test cl, 0x1f
je 0x1801346ff
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18013470e
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18013471d
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x180134729
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rbp - 0x38], SafeArrayLock
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x50], 0
mov rax, qword [rbp + 0x28]
cmp rax, 0x10
jb 0x180134797
inc rax
mov rcx, qword [rbp + 0x10]
cmp rax, 0x1000
jb 0x180134792
test cl, 0x1f
je 0x180134765
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180134774
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x180134783
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x18013478f
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rbp + 0x28], SafeArrayLock
mov qword [rbp + 0x20], r14
mov byte [rbp + 0x10], 0
mov rax, qword [rbp + 0x48]
cmp rax, 0x10
jb 0x1801347fd
inc rax
mov rcx, qword [rbp + 0x30]
cmp rax, 0x1000
jb 0x1801347f8
test cl, 0x1f
je 0x1801347cb
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801347da
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801347e9
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x1801347f5
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rbp + 0x48], SafeArrayLock
mov qword [rbp + 0x40], r14
mov byte [rbp + 0x30], 0
mov rax, qword [rbp + 8]
cmp rax, 0x10
jb 0x180134863
inc rax
mov rcx, qword [rbp - 0x10]
cmp rax, 0x1000
jb 0x18013485e
test cl, 0x1f
je 0x180134831
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180134840
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18013484f
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x18013485b
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rbp + 8], SafeArrayLock
mov qword [rbp], r14
mov byte [rbp - 0x10], 0
mov rax, qword [rbp - 0x58]
cmp rax, 0x10
jb 0x1801348c9
inc rax
mov rcx, qword [rbp - 0x70]
cmp rax, 0x1000
jb 0x1801348c4
test cl, 0x1f
je 0x180134897
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801348a6
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801348b5
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x1801348c1
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rbp - 0x58], SafeArrayLock
mov qword [rbp - 0x60], r14
mov byte [rbp - 0x70], 0
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x1801345d0
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, 0x1000
jb 0x1801345cb
test cl, 0x1f
je 0x180134905
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180134914
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x180134923
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x1801345c8
call fcn.180154658
int3
mov rcx, qword [rsp + 0x40]
mov rdi, rcx
test rcx, rcx
je 0x180134971
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180134964
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x180134940
jmp 0x18013496c
movzx eax, byte [rdi + 4]
mov byte [r15 + 0x38], al
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rsi, 0xffffffffffffffff
jne 0x1801349f8
lea r8d, [rsi + 5]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1801349f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::NewConnect_Create_socket_failed_:_wsaerror
lea rcx, [rbp - 0x30]
call fcn.18000e4c0
nop
mov dword [r15], esi
lea rcx, [r15 + 8]
cmp rcx, rax
je 0x1801349de
or r9, rsi
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rbp - 0x30]
call fcn.18000653c
nop
lea rcx, [rbp - 0x70]
call fcn.18000653c
xor eax, eax
jmp 0x18013503f
mov byte [rsp + 0x34], 1
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x34]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x180134a99
cmp eax, 0xffffffff
jne 0x180134a33
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::NewConnect__Setup_socket_option_failed_:_wsaerror
lea rcx, [rbp - 0x30]
call fcn.18000e4c0
nop
mov dword [r15], 0xffffffff
lea rcx, [r15 + 8]
cmp rcx, rax
je 0x180134a7f
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rbp - 0x30]
call fcn.18000653c
nop
lea rcx, [rbp - 0x70]
call fcn.18000653c
xor eax, eax
jmp 0x18013503f
mov dword [rsp + 0x48], 1
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x180134b31
cmp eax, 0xffffffff
jne 0x180134acb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::NewConnect__Set_non_blocking_mode_failed_:_wsaerror
lea rcx, [rbp - 0x30]
call fcn.18000e4c0
nop
mov dword [r15], 0xffffffff
lea rcx, [r15 + 8]
cmp rcx, rax
je 0x180134b17
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rbp - 0x30]
call fcn.18000653c
nop
lea rcx, [rbp - 0x70]
call fcn.18000653c
xor eax, eax
jmp 0x18013503f
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18013500e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180134d6d
mov qword [rbp + 0x388], rsi
mov dword [rbp + 0x380], 1
mov qword [rbp + 0x178], rsi
mov dword [rbp + 0x170], 1
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], r14d
lea ecx, [rsi + 1]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x170]
lea r8, [rbp + 0x380]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x180134bc2
mov ecx, 0x274c
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x180134d6d
jle 0x180134d64
lea rdx, [rbp + 0x170]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
mov rcx, rsi
test eax, eax
je 0x180134c1a
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x180134d6d
lea rdx, [rbp + 0x380]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x18013500e
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x4c], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdx, [r15 + 0x38]
lea rcx, [rbp + 0x10]
call fcn.180132bb0
mov rbx, rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::NewConnect__Socket_is_not_set_in_write___wsaerror
lea rcx, [rbp - 0x30]
call fcn.18000e4c0
nop
lea r8, str._type
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.18000e534
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.180132b20
nop
mov dword [r15], 0xffffffff
lea rcx, [r15 + 8]
cmp rcx, rax
je 0x180134ce8
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x180134d04
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x70]
call fcn.1800060dc
mov qword [rbp - 0x58], SafeArrayLock
mov qword [rbp - 0x60], r14
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x180134d30
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x10]
call fcn.1800060dc
mov qword [rbp + 8], SafeArrayLock
mov qword [rbp], r14
mov byte [rbp - 0x10], 0
lea rcx, [rbp - 0x30]
call fcn.18000653c
nop
lea rcx, [rbp + 0x30]
call fcn.18000653c
nop
lea rcx, [rbp + 0x10]
call fcn.18000653c
xor eax, eax
jmp 0x18013503f
cmp eax, 0xffffffff
jne 0x18013500e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0x274c
jne 0x180134e22
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.180132d30
nop
mov r8, rax
lea rdx, str._Connector::NewConnect__Timeout_for_connect_is_out_:_wsaerror
lea rcx, [rbp - 0x70]
call fcn.18000e4c0
nop
mov dword [r15], 0xfffffffc
lea rcx, [r15 + 8]
cmp rcx, rax
je 0x180134dd1
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x180134ded
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x70]
call fcn.1800060dc
mov qword [rbp - 0x58], SafeArrayLock
mov qword [rbp - 0x60], r14
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1801345d0
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.1800060dc
jmp 0x1801345d0
lea rdx, [rdi + 8]
lea rcx, [rbp + 0x150]
call fcn.180132d30
mov r14, rax
lea rdx, [rdi + 4]
lea rcx, [rbp + 0x130]
call fcn.180132d30
mov rsi, rax
lea rdx, [rdi + 0xc]
lea rcx, [rbp + 0x110]
call fcn.180132d30
mov rdi, rax
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xf0]
call fcn.180132d30
mov rbx, rax
mov r8, r13
lea rdx, str._Connector::NewConnect__Attempt_to_connect_to
lea rcx, [rbp + 0xd0]
call fcn.180011b58
nop
lea r8, [0x180187710]
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.18000e534
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.180013334
nop
lea r8, str._failed_:_wsaerror
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.18000e534
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.180132b20
nop
lea r8, str._ai_protocol_
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.18000e534
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.180132b20
nop
lea r8, str._ai_family_
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.18000e534
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.180132b20
nop
lea r8, str._ai_socktype_
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.18000e534
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.180132b20
nop
mov dword [r15], 0xffffffff
lea rcx, [r15 + 8]
cmp rcx, rax
je 0x180134f60
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.180006868
nop
lea rcx, [rbp - 0x30]
call fcn.18000653c
nop
lea rcx, [rbp - 0x70]
call fcn.18000653c
nop
lea rcx, [rbp - 0x10]
call fcn.18000653c
nop
lea rcx, [rbp + 0x30]
call fcn.18000653c
nop
lea rcx, [rbp + 0x10]
call fcn.18000653c
nop
lea rcx, [rbp - 0x50]
call fcn.18000653c
nop
lea rcx, [rbp + 0x50]
call fcn.18000653c
nop
lea rcx, [rbp + 0x70]
call fcn.18000653c
nop
lea rcx, [rbp + 0x90]
call fcn.18000653c
nop
lea rcx, [rbp + 0xb0]
call fcn.18000653c
nop
lea rcx, [rbp + 0xd0]
call fcn.18000653c
nop
lea rcx, [rbp + 0xf0]
call fcn.18000653c
nop
lea rcx, [rbp + 0x110]
call fcn.18000653c
nop
lea rcx, [rbp + 0x130]
call fcn.18000653c
nop
lea rcx, [rbp + 0x150]
call fcn.18000653c
xor eax, eax
jmp 0x18013503f
mov byte [r15 + 0x28], 1
mov qword [r15 + 0x30], rsi
mov ecx, 0x160
call fcn.18013133c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180135036
mov rcx, rax
call fcn.180137370
mov r14, rax
mov qword [r15 + 0x40], r14
mov eax, 1
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.180131f30
add rsp, 0x6a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret