Function at 0x1802b02b0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
mov r14, rcx
call fcn.1802b0590
cmp dword [r14], 0
je 0x1802b056a
test rdi, rdi
je 0x1802b056a
test ebx, ebx
je 0x1802b056a
mov r13d, dword [rsp + 0xe0]
test r13d, r13d
je 0x1802b031a
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r12, qword [rsp + 0xd8]
test r12, r12
je 0x1802b0337
mov dword [r12], 0xfffffffd
cmp qword [r14 + 0x30], 0
jne 0x1802b0381
mov ecx, 0x118
call fcn.18011da30
mov rbx, rax
test rax, rax
je 0x1802b0365
xor edx, edx
mov r8d, 0x118
mov rcx, rax
call fcn.1802c7550
xor r15d, r15d
jmp 0x1802b036b
xor r15d, r15d
mov ebx, r15d
mov qword [r14 + 0x30], rbx
xor edx, edx
mov r8d, 0x118
mov rcx, rbx
call fcn.1802c7550
jmp 0x1802b0384
xor r15d, r15d
mov rdi, qword [r14 + 0x30]
mov qword [rsp + 0x40], rdi
test rdi, rdi
je 0x1802b053f
cmp dword [r14 + 4], 0
jne 0x1802b04dc
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1802afb80
nop
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x48], rbx
cmp rbx, qword [rsp + 0x60]
je 0x1802b04a7
mov rsi, qword [rbx]
cmp qword [rsi + 0x10], 0x80
jbe 0x1802b03d6
jmp 0x1802b049e
xor r8d, r8d
lea edx, [r8 + 2]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x1802b0408
mov dword [rsp + 0x34], 1
lea rdx, [0x1803f6360]
lea rcx, [rsp + 0x34]
call fcn.1802c76f0
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_getsockopt]
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rdi]
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x1802b0492
lea rcx, [rdi + 0x90]
mov r8, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
call fcn.1802c7100
mov eax, dword [rsi + 0x10]
mov dword [rdi + 0x110], eax
mov dword [r14 + 4], 1
jmp 0x1802b04a7
mov rcx, qword [rdi]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rdi], r15
add rbx, 8
jmp 0x1802b03b4
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1802b04d5
mov r8, qword [rsp + 0x68]
sub r8, rdx
sar r8, 3
lea rcx, [rsp + 0x58]
call fcn.1800b0cd0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
cmp dword [r14 + 4], 0
je 0x1802b0523
mov dword [rsp + 0x20], r15d
mov r9d, dword [rsp + 0xc8]
mov r8, qword [rsp + 0xc0]
mov rdx, rdi
mov rcx, r14
call fcn.1802b0210
test eax, eax
je 0x1802b0523
test r12, r12
je 0x1802b0509
mov dword [r12], r15d
mov rbx, qword [rsp + 0xd0]
test rbx, rbx
je 0x1802b053f
xor ecx, ecx
call fcn.1802d7150
mov qword [rbx + 8], rax
jmp 0x1802b053f
test r12, r12
je 0x1802b0532
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r12], eax
lea rdx, [r14 + 0x30]
mov rcx, r14
call fcn.1802afb00
nop
jmp 0x1802b0556
test r13d, r13d
je 0x1802b0565
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
jmp 0x1802b057f
mov rax, qword [rsp + 0xd8]
test rax, rax
je 0x1802b057d
mov dword [rax], 0xfffffffe
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret