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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
sub esp, 0x448
mov ebp, r9d
mov r14, r8
mov rsi, rdx
invalid
mov rdi, rcx
mov edi, ecx
mov dword [rsp + 0x38], 1
mov rbx, qword [rcx]
lea r8, [rsp + 0x38]
mov rcx, rbx
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14008013e
cmp word [rsi], 0
je case.0x14007c5db.52
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
invalid
invalid
mov r8d, 0x1c
mov r9w, 0x17
jmp case.0x140080265.228
invalid
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
shl edi, 0x20
or rdi, 2
jmp case.0x14007b59b.112
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
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
mov esp, 0x83000533
clc
invalid
je 0x140080199
xor esi, esi
jmp case.0x140078676.231
invalid
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
invalid
shl rsi, 0x20
or rsi, 2
mov dword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
and al, 0x38
mov rcx, rbx
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1400801e9
test rsi, rsi
je case.0x14007861a.181
mov r15d, esi
and r15d, 3
lea rax, [0x140106efc]
movsxd rcx, dword [rax + r15*4]
add rcx, rax
jmp rcx
movzx eax, byte [rsi + 0x10]
jmp 0x140080226
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
shl edi, 0x20
or rdi, 2
test rsi, rsi
je case.0x14007b59b.112
add byte [rax], al
mov r15d, esi
and r15d, 3
out 3, eax
jmp 0x1400803a2
xor edi, edi
jmp case.0x14007b59b.112
movzx eax, byte [rsi + 0xf]
jmp 0x140080226
mov rcx, rsi
shr rcx, 0x20
call fcn.140081d60
cmp al, 0xd
jne 0x14008023f
invalid
test r14, r14
jne 0x14008026b
test ebp, ebp
jne 0x14008026b
lea rdi, str.cannot_set_a_0_duration_timeout
jmp 0x1400803a2
mov rdi, rsi
jmp case.0x14007b59b.112
cmp r14, 0x7fffffff
mov eax, 0x7fffffff
jg 0x1400802c1
cmovb eax, esi
mov ecx, ebp
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
mov dword [rsp + 0x30], eax
xor byte [rax - 0x7b], cl
invalid
mov eax, 1
mov edx, ecx
cmove edx, eax
cmp ebp, 0x3e8
cmovae edx, ecx
mov dword [rsp + 0x34], edx
lea rcx, [rsp + 0x48]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x240], 1
mov qword [rsp + 0x248], rbx
lea rcx, [rsp + 0x250]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
scasd eax, dword [rdi]
cmp dword [0x184cf4ae4], eax
and al, 0x38
add dword [rax], eax
add byte [rax], al
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x240]
lea r9, [rsp + 0x38]
and al, 0x38
mov ecx, 1
xor edx, edx
call sub.WS2_32.dll_select
test eax, eax
je 0x14008032c
cmp eax, 0xffffffff
jne 0x140080335
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x1400803a2
lea rdi, str.connection_timed_out
jmp 0x140080341
cmp dword [rsp + 0x240], 1
jne 0x14008038d
xor edi, edi
lea rax, [r15 - 2]
cmp rax, 2
jb case.0x14007b59b.112
test r15, r15
je case.0x14007b59b.112
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.0x14007fec7.34
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.14007def0
mov r8d, 8
mov rcx, rbx
call fcn.14007def0
jmp case.0x14007b59b.112
mov rcx, rdi
call fcn.140080540
mov rdi, rdx
test rax, rax
jne 0x1400803a2
test rdi, rdi
je case.0x14007b59b.88
lea rax, [r15 - 2]
cmp rax, 2
cmp eax, 2
jb case.0x14007b59b.112
test r15, r15
je case.0x14007b59b.112
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 0x1400803d6
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.14007def0
mov rcx, qword [0x14018e150]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rax, rdi
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
pop rdi
ret