Function at 0x180062f30
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x21], 0
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1f0]
mov qword [rax], 0xffffffffffffffff
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1e0]
call fcn.180062940
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x180062fbf
xor eax, eax
jmp 0x18006337c
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.180063ce0
movzx eax, al
test eax, eax
jne 0x180063039
call fcn.180102964
mov r8d, 0x80
lea rdx, [rsp + 0x130]
mov ecx, dword [rax]
call fcn.1800c2ee0
mov qword [rsp + 0x58], rax
call fcn.180102964
mov rcx, qword [rsp + 0x58]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.180060120
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x1e0]
call fcn.180062840
xor eax, eax
jmp 0x18006337c
lea r8, [rsp + 0x100]
lea rdx, str.__Trying__s..._n
mov rcx, qword [rsp + 0x30]
call fcn.18005ffc0
cmp dword [rsp + 0x70], 2
je 0x180063060
cmp dword [rsp + 0x70], 0x17
jne 0x180063071
cmp dword [rsp + 0x74], 1
jne 0x180063071
mov dword [rsp + 0x48], 1
jmp 0x180063079
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0
jne 0x18006308a
mov dword [rsp + 0x4c], 0
jmp 0x180063092
mov dword [rsp + 0x4c], 1
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1800630cb
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xe74]
shr eax, 3
and eax, 1
test eax, eax
je 0x1800630cb
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x1e0]
call fcn.180063e10
xor eax, eax
test eax, eax
jne 0x1800630cb
mov rcx, qword [rsp + 0x38]
call fcn.1800623e0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180063108
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xe74]
shr eax, 0xd
and eax, 1
test eax, eax
je 0x180063108
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.180062da0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x738], 0
je 0x180063183
mov dl, 1
mov rcx, qword [rsp + 0x30]
call fcn.180043b40
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x740]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x738]
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.180043b40
cmp dword [rsp + 0x28], 2
jne 0x180063160
mov byte [rsp + 0x21], 1
jmp 0x180063183
cmp dword [rsp + 0x28], 0
je 0x180063183
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x1e0]
call fcn.180062840
mov eax, Ordinal_46
jmp 0x18006337c
cmp dword [rsp + 0x70], 2
je 0x180063191
cmp dword [rsp + 0x70], 0x17
jne 0x1800631ef
lea rcx, [rsp + 0x80]
call fcn.1800c40e0
mov r9d, eax
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x1e0]
call fcn.1800633a0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1800631ef
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x1e0]
call fcn.180062840
cmp dword [rsp + 0x24], 1
jne 0x1800631e6
mov eax, 7
jmp 0x18006337c
mov eax, dword [rsp + 0x24]
jmp 0x18006337c
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1800c4320
lea rcx, [rsp + 0x60]
call fcn.180080fe0
mov rcx, qword [rsp + 0x1e0]
lea rdi, [rcx + 0x3c8]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1e0]
cmp dword [rax + 0x3d8], 1
jle 0x180063251
mov r8d, 3
mov rax, qword [rsp + 0x1e0]
mov rdx, qword [rax + 0x3e0]
mov rcx, qword [rsp + 0x30]
call fcn.1800436e0
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x1800632b4
mov rax, qword [rsp + 0x1e0]
cmp dword [rax + 0xbc], 1
jne 0x1800632b4
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax + 0x3c4]
shr eax, 0x1b
and eax, 1
test eax, eax
je 0x180063285
jmp 0x1800632a1
mov r8d, dword [rsp + 0x7c]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1800632b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
jmp 0x1800632cb
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
xor eax, eax
jmp 0x18006337c
cmp dword [rsp + 0x40], 0xffffffff
jne 0x180063361
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xb
je 0x1800632fb
cmp dword [rsp + 0x44], 0x2732
jle 0x180063305
cmp dword [rsp + 0x44], 0x2734
jle 0x1800632fb
jmp 0x180063305
mov dword [rsp + 0x24], 0
jmp 0x180063361
mov r8d, 0x80
lea rdx, [rsp + 0x130]
mov ecx, dword [rsp + 0x28]
call fcn.1800c2ee0
mov r9, rax
lea r8, [rsp + 0x100]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, qword [rsp + 0x30]
call fcn.18005ffc0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x10e8], ecx
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x1e0]
call fcn.180062840
mov dword [rsp + 0x24], 7
cmp dword [rsp + 0x24], 0
jne 0x180063378
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x1c8
pop rdi
pop rsi
ret