Function at 0x550c15
Capabilities:
Connect socket

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [rdx + 0x78]
test eax, eax
je 0x550c65
cmp eax, 3
jne 0x550fc2
lea r12, [rsi + 0x70]
lea r14, [rsi + 0x30]
movzx eax, byte [rsi + 0x70]
test eax, eax
je 0x550d20
cmp eax, 3
jne 0x550fc2
mov rax, qword [rsi + 0x68]
jmp 0x550e5c
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x28], rcx
cmp word [rsi], 0
movzx eax, word [rsi + 0x12]
mov word [rsp + 0x40], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0x30], xmm0
je 0x550d2d
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx r9d, word [rsi + 0x1c]
rol r9w, 8
mov r8, qword [rsp + 0x32]
mov qword [rsp + 0x90], r8
mov r8d, dword [rsp + 0x3a]
mov dword [rsp + 0x98], r8d
movzx r8d, word [rsp + 0x3e]
mov word [rsp + 0x9c], r8w
movzx r8d, word [rsp + 0x40]
mov word [rsp + 0x9e], r8w
mov dword [rsp + 0xa0], edx
xorps xmm0, xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
and dword [rsp + 0x104], 0
movups xmmword [rsp + 0xe4], xmm0
movups xmmword [rsp + 0xf4], xmm0
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x550d8b
mov rdx, qword [rsi + 0x30]
mov r8, qword [rsi + 0x38]
jmp 0x550df2
movzx r9d, word [rsp + 0x34]
mov eax, dword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0xd8], xmm0
movups xmmword [rsp + 0xe8], xmm0
movups xmmword [rsp + 0xf8], xmm0
and qword [rsp + 0x90], 0
rol r9w, 8
mov r8d, 0x10
mov r10w, 2
lea rdx, [rsp + 0x88]
mov word [rdx], r10w
mov word [rdx + 2], r9w
mov dword [rdx + 4], eax
mov dword [rdx + 0x80], r8d
call sub.ws2_32.dll_connect
test eax, eax
je 0x550dd6
call fcn.00569a3f
mov r15, rax
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.0048c6ff
cmp al, 0xd
jne 0x550e93
lea rcx, [rsp + 0x70]
call fcn.0054d516
mov rdx, qword [rsi + 0x28]
mov qword [rsi + 0x30], rdx
and qword [rsi + 0x38], 0
lea r14, [rsi + 0x30]
lea r12, [rsi + 0x70]
mov byte [rsi + 0x70], 0
xor r8d, r8d
lea r15, [rsp + 0x88]
mov rcx, r15
call fcn.0057f417
mov rcx, qword [r15]
cmp rcx, 2
jne 0x550e18
mov r15, qword [rsp + 0x90]
jmp 0x550f0b
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x50], xmm0
lea rax, [rsi + 0x40]
mov qword [rsi + 0x40], rcx
mov qword [rsi + 0x48], rdx
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x50], xmm0
mov rcx, qword [rsp + 0x60]
mov qword [rsi + 0x60], rcx
mov qword [rsi + 0x68], rax
mov rdx, qword [rax + 0x10]
lea r15, [rsp + 0x88]
mov rcx, r15
mov r8, rbx
call fcn.0057f3d6
mov al, byte [r15 + 9]
cmp al, 3
jne 0x550e85
mov byte [r12], 3
jmp 0x550f38
cmp al, 2
jne 0x550ea6
mov r15, qword [rsp + 0x88]
jmp 0x550f02
mov rcx, qword [rsi + 0x28]
call fcn.0054ecf4
mov ebx, 2
jmp 0x550f6b
mov rcx, qword [rsi + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x550fc2
lea r9, [rsp + 0x50]
and dword [r9], 0
mov dword [rsp + 0x88], 4
mov qword [rsp + 0x20], r15
mov edx, 0xffff
mov r8d, 0x1007
call sub.ws2_32.dll_getsockopt
cmp eax, 0xffffffff
je 0x550efa
movsxd r15, dword [rsp + 0x50]
test r15, r15
je 0x550fa0
shl r15, 0x20
or r15, 2
jmp 0x550f02
call fcn.0056c6ea
mov r15, rax
lea rcx, [rsi + 0x40]
call fcn.0054ec43
mov ebx, 2
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x120], rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x110], xmm0
mov byte [r12], 1
cmp rbx, 3
jne 0x550f43
mov qword [rdi], 3
mov al, 3
jmp 0x550f8c
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x140], rax
movaps xmm0, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0x130], xmm0
mov rcx, r14
call fcn.00550bfa
mov qword [rdi], rbx
mov qword [rdi + 8], r15
movaps xmm0, xmmword [rsp + 0x130]
movups xmmword [rdi + 0x10], xmm0
mov rax, qword [rsp + 0x140]
mov qword [rdi + 0x20], rax
mov al, 1
mov byte [rsi + 0x78], al
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [rsi + 0x40]
mov r15, qword [rsi + 0x48]
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rsi + 0x50]
movaps xmmword [rsp + 0x70], xmm0
jmp 0x550f10
ud2