Function at 0x18001ede0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2c8
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov rax, qword [0x1800a3248]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0xa0], rax
mov ecx, 0x18
call fcn.18006a950
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x18001ee70
mov rax, qword [rsp + 0x2e0]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.1800067c0
mov qword [rsp + 0x68], rax
jmp 0x18001ee79
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
call fcn.18001e9c0
cdqe
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x98]
mov edx, 0x1f6
mov rcx, qword [rsp + 0xa0]
call fcn.180005750
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e970
cmp dword [rax], 0
je 0x18001ef05
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e970
add rax, 4
mov qword [rsp + 0x70], rax
jmp 0x18001ef1b
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e940
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x1a0]
mov rdi, rax
mov rsi, qword [rsp + 0xa8]
mov ecx, 0x102
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x1a0]
call fcn.18001e740
movzx eax, al
test eax, eax
je 0x18001f1ce
movzx eax, word [rsp + 0x120]
mov r8d, 6
mov edx, 1
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x2e0]
mov qword [rcx + 0x28], rax
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov r8d, 1
mov edx, 6
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e940
movzx eax, word [rax + 0x100]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e940
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb0]
lea r8, str.Connecting_to__s:_d
mov edx, 0x40
mov rcx, qword [rsp + 0xb8]
call fcn.18000c340
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x120]
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18001f1bc
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e970
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18001f095
cmp dword [rsp + 0x38], 1
je 0x18001f0a2
cmp dword [rsp + 0x38], 2
je 0x18001f119
jmp 0x18001f1b2
mov dword [rsp + 0x30], 0
jmp 0x18001f1ba
lea rcx, [rsp + 0x34]
call fcn.18000ae60
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e940
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x34]
call fcn.18001e980
movzx eax, al
test eax, eax
je 0x18001f104
mov dword [rsp + 0x40], 0
jmp 0x18001f10c
mov dword [rsp + 0x40], select
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
jmp 0x18001f1ba
lea rcx, [rsp + 0x35]
call fcn.18000ae60
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e940
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 0x40]
call fcn.18001e970
add rax, 4
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xe0], rax
mov r9, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x35]
call fcn.18001e9a0
movzx eax, al
test eax, eax
je 0x18001f1a0
mov dword [rsp + 0x44], 0
jmp 0x18001f1a8
mov dword [rsp + 0x44], select
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
jmp 0x18001f1ba
mov dword [rsp + 0x30], 6
jmp 0x18001f1cc
call fcn.18001e720
mov ecx, eax
call fcn.18001e680
mov dword [rsp + 0x30], eax
jmp 0x18001f1d6
mov dword [rsp + 0x30], 4
cmp dword [rsp + 0x30], 0
jne 0x18001f20c
mov rcx, qword [rsp + 0x2e0]
call fcn.18001f360
movzx eax, al
test eax, eax
je 0x18001f204
mov rcx, qword [rsp + 0x2e0]
call fcn.18001f790
mov dword [rsp + 0x30], eax
jmp 0x18001f20c
mov dword [rsp + 0x30], 8
cmp dword [rsp + 0x30], 0
je 0x18001f259
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x2e0]
mov r9d, dword [rax + 0x30]
lea r8, str.Handshake_failed__cleaning_up__index__d_
mov edx, 0x400
mov rcx, qword [rsp + 0xe8]
call fcn.18000c340
mov rcx, qword [rsp + 0x2e0]
call fcn.1800200f0
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0xf0], rax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0xf0]
call fcn.180005900
mov rax, qword [rsp + 0x2e0]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x38], ecx
call fcn.180005f80
mov qword [rsp + 0x110], rax
mov ecx, 0x18
call fcn.18006a950
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x18001f2cd
mov rdx, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x78]
call fcn.1800067c0
mov qword [rsp + 0x80], rax
jmp 0x18001f2d9
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x100], rax
xor r8d, r8d
mov edx, 0x1f5
mov rcx, qword [rsp + 0x100]
call fcn.180005730
mov dword [rsp + 0x58], eax
mov r8, qword [rsp + 0x108]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x110]
call fcn.180005e10
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.18006a240
add rsp, 0x2c8
pop rdi
pop rsi
ret