Function at 0x445840
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x450
mov ebp, r9d
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x40], 1
mov rdi, qword [rcx]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x4458a1
cmp word [r14], 0
je 0x4458b6
movups xmm0, xmmword [r14 + 4]
mov eax, dword [r14 + 0x14]
mov edx, dword [r14 + 0x18]
movzx ecx, word [r14 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x4458cd
call sub.WS2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x445ac5
mov eax, dword [r14 + 2]
movzx ecx, word [r14 + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rsp + 0x40], r9w
mov word [rsp + 0x42], cx
mov dword [rsp + 0x44], eax
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], edx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x445900
xor r14d, r14d
jmp 0x445910
call sub.WS2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x445956
test r14, r14
je 0x445973
mov eax, r14d
and eax, 3
lea rcx, [0x00445bf0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [r14 + 0x10]
jmp case.0x4459cb.0
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r14, r14
jne 0x445ab8
jmp 0x445ac2
xor r14d, r14d
jmp 0x445ac5
movzx eax, byte [r14 + 0xf]
jmp case.0x4459cb.0
por mm1, qword [rsp + r9*2]
mov ecx, esi
mov rcx, r14
shr rcx, 0x20
call fcn.004515e0
cmp al, 0xd
jne 0x445ac5
test rbx, rbx
jne 0x4459d1
test ebp, ebp
jne 0x4459d1
lea rsi, str.cannot_set_a_0_duration_timeout
jmp 0x445ab8
mov rcx, r14
shr rcx, 0x20
cmp ecx, 0x28
ja case.default.0x4459cb
xor eax, eax
lea rdx, [0x00445c00]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov al, 1
jmp case.0x4459cb.0
mov eax, ebp
imul rax, rax, 0x10624dd3
shr rax, 0x26
mov dword [rsp + 0x38], ebx
cmp ebp, 0x3e8
mov ecx, 1
mov edx, eax
cmovb edx, ecx
test ebx, ebx
cmovne edx, eax
mov dword [rsp + 0x3c], edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x248], 1
mov qword [rsp + 0x250], rdi
lea rcx, [rsp + 0x258]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x248]
lea r9, [rsp + 0x40]
mov ecx, 1
xor edx, edx
call sub.WS2_32.dll_select
test eax, eax
je 0x445a81
cmp eax, 0xffffffff
jne 0x445a8a
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x445ab8
lea r14, str.connection_timed_out
jmp 0x445a97
cmp dword [rsp + 0x248], 1
jne 0x445aa3
xor r14d, r14d
lea rcx, [rsp + 0x30]
call sym.unk_132
jmp 0x445ac5
mov rcx, rsi
call fcn.00430d70
mov rsi, rdx
test rax, rax
jne 0x445ab8
test rsi, rsi
je 0x445a94
lea rcx, [rsp + 0x30]
call sym.unk_132
mov r14, rsi
mov rax, r14
add rsp, 0x450
add byte [rax], al
add byte [rax], al
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop rsi
pop rsi
ret
mov al, 0x29
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 2
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 3
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 4
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 5
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 6
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 7
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 8
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 9
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0xa
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0xb
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0xc
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0xd
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0xe
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0xf
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x10
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x11
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x12
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x13
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x14
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x15
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x16
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x17
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x18
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x19
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x1a
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x1b
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x1e
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x1f
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x20
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x21
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x22
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x23
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x24
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x25
jmp case.0x4459cb.0
invalid
invalid
invalid
mov al, 0x26
jmp case.0x4459cb.0
mov al, 0x27
jmp case.0x4459cb.0
mov al, 0x28
jmp case.0x4459cb.0