Function at 0x18006ca00
Capabilities:
Connect socket

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1e0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1800f8370]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x70]
call fcn.1800197e0
nop
mov rax, qword [rsp + 0x1f0]
movzx eax, byte [rax + 0x8d]
test eax, eax
je 0x18006cab6
mov byte [rsp + 0x70], 0
lea rdx, [0x1800d038d]
lea rcx, [rsp + 0x78]
call fcn.18000e3f0
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1f8]
call fcn.180019730
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x70]
call fcn.180019c50
nop
mov rcx, qword [rsp + 0x200]
call fcn.180007220
mov rax, qword [rsp + 0x1f8]
jmp 0x18006cced
mov rax, qword [rsp + 0x1f0]
add rax, 0x58
mov rdx, qword [rsp + 0x200]
mov rcx, rax
call fcn.180007610
mov rax, qword [rsp + 0x1f0]
movzx ecx, word [rsp + 0x208]
mov word [rax + 0x78], cx
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x60], ax
movzx ecx, word [rsp + 0x208]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
mov rcx, qword [rsp + 0x200]
call fcn.18000ab90
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x64], eax
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x1f0]
call fcn.18006c2f0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.180019d50
nop
lea rcx, [rsp + 0x110]
call fcn.180019c50
movzx eax, byte [rsp + 0x70]
test eax, eax
jne 0x18006cbc1
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1f8]
call fcn.180019730
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x70]
call fcn.180019c50
nop
mov rcx, qword [rsp + 0x200]
call fcn.180007220
mov rax, qword [rsp + 0x1f8]
jmp 0x18006cced
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x1f0]
call fcn.18006c530
lea rcx, [rsp + 0x170]
call fcn.180019c50
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x60]
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0xbc], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0x24], 0
jne 0x18006cc43
mov byte [rsp + 0x70], 1
lea rdx, [0x1800d038e]
lea rcx, [rsp + 0x78]
call fcn.18000e3f0
jmp 0x18006ccb0
mov byte [rsp + 0x70], 0
mov edx, dword [rsp + 0x28]
lea rcx, [rsp + 0xf0]
call fcn.18001db00
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x38]
lea rdx, str.connect_err._lastErr:
lea rcx, [rsp + 0xd0]
call fcn.18000df20
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.18000e300
lea rcx, [rsp + 0xd0]
call fcn.180007220
nop
lea rcx, [rsp + 0xf0]
call fcn.180007220
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1f8]
call fcn.180019730
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x70]
call fcn.180019c50
nop
mov rcx, qword [rsp + 0x200]
call fcn.180007220
mov rax, qword [rsp + 0x1f8]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18007e510
add rsp, 0x1e0
pop rdi
ret