Function at 0x14012c6c0
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x1401e00a8]
xor rax, rsp
mov qword [rbp + 0x100], rax
movsxd r12, r9d
mov rax, r8
mov r13, rdx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov r14, rcx
xor esi, esi
or qword [rdx + r12*8 + 0x170], 0xffffffffffffffff
mov rdx, rax
call fcn.14012beac
mov ebx, eax
test eax, eax
jne 0x14012c95e
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.14012b27c
mov r15, qword [rsp + 0x28]
test al, al
jne 0x14012c77a
call fcn.140157188
mov ebx, dword [rax]
call fcn.140157188
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, ebx
mov rdi, rax
call fcn.14013d634
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.14012a8d0
jmp 0x14012c812
cmp dword [rsp + 0x40], 2
je 0x14012c788
cmp dword [rsp + 0x40], 0x17
jne 0x14012c7a8
cmp dword [rsp + 0x44], 1
jne 0x14012c7a8
mov dil, 1
cmp byte [r14 + 0x984], sil
je 0x14012c7ab
mov rdx, r15
mov rcx, r14
call fcn.14012ca68
jmp 0x14012c7ab
mov dil, sil
mov rcx, r15
call fcn.14012bdf0
test dil, dil
je 0x14012c7cc
cmp byte [r14 + 0x98b], sil
je 0x14012c7cc
mov rdx, r15
mov rcx, r14
call fcn.14012c984
cmp qword [r14 + 0x270], rsi
je 0x14012c827
mov dl, 1
mov rcx, r14
call fcn.140121090
mov rcx, qword [r14 + 0x278]
xor r8d, r8d
mov rdx, r15
call qword [r14 + 0x270]
xor edx, edx
mov rcx, r14
mov edi, eax
call fcn.140121090
cmp edi, 2
jne 0x14012c809
mov dil, 1
jmp 0x14012c82a
test edi, edi
je 0x14012c827
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14012b32c
mov eax, esi
jmp 0x14012c95e
mov dil, sil
cmp dword [rsp + 0x40], 2
je 0x14012c838
cmp dword [rsp + 0x40], 0x17
jne 0x14012c87b
lea rcx, [rsp + 0x50]
call fcn.14013ea68
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, r15
mov rcx, r14
call fcn.14012c1e8
mov ebx, eax
test eax, eax
je 0x14012c87b
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14012b32c
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x14012c95e
mov edx, 1
mov rcx, r15
call fcn.14013eaec
lea rcx, [rsp + 0x28]
call fcn.14012f8f0
cmp dword [r13 + 0x5e8], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x2a8], xmm0
jle 0x14012c8d2
mov rdx, qword [r13 + 0x2b8]
mov r8d, 3
mov rcx, r14
call fcn.140120b94
mov rdx, qword [r13 + 0x2c0]
mov r8d, 4
mov rcx, r14
call fcn.140120b94
test dil, dil
jne 0x14012c954
cmp byte [r13 + 0x601], 4
je 0x14012c954
cmp byte [r13 + 0x2a0], sil
jne 0x14012c90c
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14012c90c
test ebx, ebx
jne 0x14012c874
jmp 0x14012c947
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x14012c945
sub edx, 0x2728
je 0x14012c945
cmp edx, 1
je 0x14012c945
mov r8, r15
mov dword [r14 + 0xc1c], eax
mov rdx, r13
mov rcx, r14
call fcn.14012b32c
mov ebx, 7
jmp 0x14012c874
mov ebx, esi
mov qword [r13 + r12*8 + 0x170], r15
jmp 0x14012c874
mov qword [r13 + r12*8 + 0x170], r15
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140146a00
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret