Function at 0x1400824d0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140492fc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
lea r9, [rsp + 0x50]
movzx eax, r8w
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rdi, rdx
mov r8, rdx
xor r14d, r14d
mov rcx, rbx
mov dword [rsp + 0x40], r14d
movzx edx, ax
call fcn.1400843d0
mov eax, dword [rbx + 0x70]
dec eax
cmp eax, 1
ja 0x14008255a
mov rcx, rdi
call fcn.1400499d0
test eax, eax
je 0x14008255a
mov rcx, qword [rbx + 0xa8]
lea r9, [rsp + 0x44]
mov edx, 0x29
mov dword [rsp + 0x44], r14d
mov r8d, 0x1b
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0xa8]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x1400827a1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0x2733
je 0x1400825aa
cmp edx, 0x3a
je 0x140082797
jmp 0x14008278d
mov qword [rsp + 0xc8], rbp
mov edi, r14d
mov qword [rsp + 0x88], rsi
xor sil, sil
mov qword [rsp + 0x80], r15
xor bpl, bpl
mov dword [rsp + 0x40], r14d
lea r15, [0x140000000]
mov dword [rsp + 0x44], 4
nop
mov rcx, qword [rbx + 0xa8]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne case.0x140082675.10023
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14008264a
mov rcx, qword [rbx + 0xa8]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x48], r14d
mov r8d, 0x1007
mov dword [rsp + 0x20], 4
mov bpl, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [rsp + 0x40]
jmp 0x140082651
test sil, sil
sete sil
add eax, 0xffffd8e3
cmp eax, 0x34
ja case.0x140082675.10023
cdqe
movzx eax, byte [r15 + rax + 0x827f0]
mov ecx, dword [r15 + rax*4 + 0x827c4]
add rcx, r15
jmp rcx
mov dword [rbx + 0x68], 3
jmp case.0x140082675.10023
mov edx, 7
mov r8d, 9
mov rcx, rbx
call fcn.140070600
mov dword [rbx + 0x68], r14d
jmp case.0x140082675.10023
mov edx, 7
mov r8d, select
mov rcx, rbx
call fcn.140070600
mov dword [rbx + 0x68], r14d
jmp case.0x140082675.10023
mov edx, listen
mov r8d, 8
mov rcx, rbx
call fcn.140070600
mov dword [rbx + 0x68], 2
jmp case.0x140082675.10023
mov edx, 7
mov r8d, reloc.WS2_32.dll_ntohl
jmp 0x140082753
xor edx, edx
mov r8d, reloc.WS2_32.dll_listen
mov rcx, rbx
call fcn.140070600
mov dword [rbx + 0x68], r14d
jmp case.0x140082675.10023
mov edx, 7
mov r8d, listen
mov rcx, rbx
call fcn.140070600
mov dword [rbx + 0x68], r14d
jmp case.0x140082675.10023
mov edx, 3
mov r8d, listen
mov rcx, rbx
call fcn.140070600
mov dword [rbx + 0x68], r14d
jmp case.0x140082675.10023
mov edx, 7
mov r8d, 0xa
mov rcx, rbx
call fcn.140070600
mov dword [rbx + 0x68], r14d
jmp case.0x140082675.10023
mov edx, listen
mov r8d, 8
mov rcx, rbx
call fcn.140070600
inc edi
test sil, sil
je 0x14008276b
cmp edi, 2
jl 0x1400825e0
mov r15, qword [rsp + 0x80]
test bpl, bpl
mov rbp, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0x88]
jne 0x140082797
mov eax, 0x2734
mov rdx, rbx
mov ecx, eax
call fcn.140084110
cmp dword [rbx + 0x68], 3
je 0x1400827a1
xor al, al
jmp 0x1400827aa
mov dword [rbx + 0x68], 3
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140229fa0
add rsp, 0x90
pop r14
pop rdi
pop rbx
ret