Function at 0x1400817f0
Capabilities:
Connect socket
Enumerate pe sections
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
in al, dx
add al, 0
add al, 0
invalid
mov ebp, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x38], 1
add dword [rax], eax
add byte [rax], al
mov rbx, qword [rcx]
lea r8, [rsp + 0x38]
mov rcx, rbx
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je case.0x140081975.241
cmp word [rsi], 0
je 0x140081862
invalid
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
push rsi
sbb byte [rdi], cl
mov bh, 0x4e
sbb al, 0x41
mov eax, 0x1c
mov r9w, 0x17
jmp 0x140081877
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x140081af7
xchg ebp, eax
add al, byte [rax]
invalid
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov eax, 0x10
mov r9w, 2
xorps xmm0, xmm0
invalid
rol cx, 8
mov word [rsp + 0x38], r9w
mov word [rsp + 0x3a], cx
mov dword [rsp + 0x3c], eax
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], edx
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je case.0x140081975.254
xor esi, esi
jmp 0x1400818b8
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov dword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rcx, rbx
mov edx, 0x8004667e
add al, 0x80
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
clc
invalid
je 0x1400818f9
test rsi, rsi
je 0x14008191d
mov r15d, esi
and r15d, 3
lea rax, [0x140107f5c]
movsxd rcx, dword [rax + r15*4]
add rcx, rax
jmp rcx
movzx eax, byte [rsi + 0x10]
jmp 0x140081936
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rsi, rsi
test esi, esi
je 0x140081af7
mov r15d, esi
and r15d, 3
jmp case.0x14007c257.99
xor edi, edi
jmp 0x140081af7
movzx eax, byte [rsi + 0xf]
jmp 0x140081936
mov rcx, rsi
shr rcx, 0x20
call fcn.140083370
cmp al, 0xd
jne case.0x140078cca.207
test r14, r14
jne 0x14008197b
test ebp, ebp
jne 0x14008197b
lea rdi, str.cannot_set_a_0_duration_timeout
jmp case.0x14007c257.99
mov rdi, rsi
jmp 0x140081af7
invalid
cmp r14, 0x7fffffff
mov eax, 0x7fffffff
cmovb rax, r14
cmovb eax, esi
mov ecx, ebp
imul rcx, rcx, 0x10624dd3
leave
ror dword [rbp + 0x62], cl
adc byte [rax - 0x3f], cl
jmp 0x1644ca2c1
xor byte [rax - 0x7b], cl
test eax, eax
mov eax, 1
mov edx, ecx
cmove edx, eax
cmp ebp, 0x3e8
call 0x14f0819b3
invalid
invalid
mov dword [rsp + 0x34], edx
lea rcx, [rsp + 0x48]
and al, 0x48
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
add byte [rax - 0x39], cl
test byte [rax + rax*2], ah
add al, byte [rax]
add byte [rcx], al
add byte [rax], al
invalid
mov qword [rsp + 0x248], rbx
lea rcx, [rsp + 0x250]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x240]
lea r9, [rsp + 0x38]
mov ecx, 1
xor edx, edx
call sub.WS2_32.dll_select
invalid
invalid
invalid
test eax, eax
je 0x140081a3c
cmp eax, 0xffffffff
jne case.0x14007c4b6.52
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
out 0x20, eax
or rdi, 2
jmp case.0x14007c257.99
lea rdi, str.connection_timed_out
jmp 0x140081a51
cmp dword [rsp + 0x240], 1
jne case.0x14007c257.96
xor edi, edi
lea rax, [r15 - 2]
cmp rax, 2
clc
add cl, byte [rdi]
invalid
cwde
add byte [rax], al
invalid
test r15, r15
je 0x140081af7
lea rbx, [rsi - 1]
mov r14, qword [rsi - 1]
mov r15, qword [rsi + 7]
mov rcx, r14
int1
call qword [r15]
cmp qword [r15 + 8], 0
je 0x140081a8d
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.14007ebb0
mov r8d, 8
mov rcx, rbx
call fcn.14007ebb0
jmp 0x140081af7
mov rcx, rdi
call fcn.140081c50
mov rdi, rdx
xlatb
test rax, rax
jne case.0x14007c257.99
test rdi, rdi
je 0x140081a4f
lea rax, [r15 - 2]
cmp rax, 2
jb 0x140081af7
test r15, r15
je 0x140081af7
lea rbx, [rsi - 1]
mov r14, qword [rsi - 1]
mov r15, qword [rsi + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je case.0x14007c7d3.53
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.14007ebb0
mov rcx, qword [0x140190150]
xor edx, edx
mov r8, rbx
invalid
call sub.KERNEL32.dll_HeapFree
mov rax, rdi
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop rsi
pop r15
ret