Function at 0x18020e7f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1803c1370]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov eax, dword [rdx + 4]
mov rsi, qword [rcx]
mov ebx, 0x80
mov dword [rsp + 0x40], eax
mov eax, dword [rcx + 0x9c]
mov r13, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rdx + 0xc]
mov r14d, r8d
mov dword [rsp + 0x48], eax
mov eax, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
cmp eax, ebx
lea rcx, [rsp + 0x50]
mov r15, r9
cmova eax, ebx
mov r8d, eax
mov dword [rsp + 0x4c], eax
call sub.MSVCR100.dll_memcpy
mov byte [r15], 0
mov rax, qword [rsi + 0x238]
test rax, rax
je 0x18020e87d
mov rcx, qword [rsi + 0x240]
lea r8, [rsp + 0x40]
xor edx, edx
call rax
jmp 0x18020e890
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18020e93a
mov ecx, dword [rsp + 0x40]
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x54]
mov r9, rbx
call fcn.180213b50
test rax, rax
je 0x18020e8fe
lea r8, [rbp - 0x30]
lea rdx, str.__Trying__s...
mov rcx, rsi
call fcn.180203670
lea rbx, [rsi + 0x8868]
lea r9, [rbp - 0x30]
lea r8, [0x18026156c]
mov rcx, rbx
mov edx, 0x2e
call fcn.180212380
lea rcx, [r13 + 0x58]
sub rcx, rbx
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x18020e8f0
cmp byte [rsi + 0x3ee], 0
je 0x18020e912
mov rdx, rdi
mov rcx, r13
call fcn.18020e760
mov rax, qword [rsi + 0x228]
test rax, rax
je 0x18020e943
mov rcx, qword [rsi + 0x230]
xor r8d, r8d
mov rdx, rdi
call rax
test eax, eax
je 0x18020e943
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or rax, 0xffffffffffffffff
jmp 0x18020ead7
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, r13
call fcn.18020e370
mov rcx, rdi
test eax, eax
jne 0x18020e934
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov qword [rsp + 0x168], r12
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [r13 + 0x9c], 1
jne 0x18020ea0a
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18020e9f4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
cmp eax, 0xb
je 0x18020e9e7
cmp eax, 0x2732
jle 0x18020e9be
cmp eax, 0x2734
jle 0x18020e9e7
mov edx, eax
mov rcx, r13
call fcn.180213960
lea r8, [rbp - 0x30]
lea rdx, str.Failed_to_connect_to__s:__s
mov r9, rax
mov rcx, rsi
call fcn.180203720
mov dword [rsi + 0x86ec], r12d
jmp 0x18020ea0c
mov edx, r14d
mov rcx, rdi
call fcn.18020e330
mov ebx, eax
cmp ebx, 1
jne 0x18020ea0c
cmp dword [rsi + 0x668], 2
jne 0x18020ea0c
mov rax, rdi
jmp 0x18020eacf
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 4
call qword [sym.imp.KERNEL32.dll_SleepEx]
lea r11, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rdi
mov qword [rsp + 0x20], r11
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x18020ea55
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18020ea59
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18020ea68
cmp eax, 0x2748
je 0x18020ea68
xor cl, cl
jmp 0x18020ea6a
mov cl, 1
test ebx, ebx
jne 0x18020ea8a
test cl, cl
je 0x18020eaa0
lea rdx, str.connected_n
mov rcx, rsi
mov byte [r15], 1
call fcn.180203670
mov rax, rdi
jmp 0x18020eacf
cmp ebx, 1
jne 0x18020eaa0
lea rdx, str.Timeout_n
mov rcx, rsi
call fcn.180203670
jmp 0x18020eac2
mov edx, eax
mov rcx, r13
mov dword [rsi + 0x86ec], eax
call fcn.180213960
lea rdx, [0x180271050]
mov rcx, rsi
mov r8, rax
call fcn.180203670
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or rax, 0xffffffffffffffff
mov r12, qword [rsp + 0x168]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180227610
add rsp, 0x170
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret