Function at 0x140129804
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 [0x1401dd0a8]
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.140128ff0
mov ebx, eax
test eax, eax
jne 0x140129aa2
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.1401283c0
mov r15, qword [rsp + 0x28]
test al, al
jne 0x1401298be
call fcn.1401542d8
mov ebx, dword [rax]
call fcn.1401542d8
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, ebx
mov rdi, rax
call fcn.14013a778
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.140127a14
jmp 0x140129956
cmp dword [rsp + 0x40], 2
je 0x1401298cc
cmp dword [rsp + 0x40], 0x17
jne 0x1401298ec
cmp dword [rsp + 0x44], 1
jne 0x1401298ec
mov dil, 1
cmp byte [r14 + 0x984], sil
je 0x1401298ef
mov rdx, r15
mov rcx, r14
call fcn.140129bac
jmp 0x1401298ef
mov dil, sil
mov rcx, r15
call fcn.140128f34
test dil, dil
je 0x140129910
cmp byte [r14 + 0x98b], sil
je 0x140129910
mov rdx, r15
mov rcx, r14
call fcn.140129ac8
cmp qword [r14 + 0x270], rsi
je 0x14012996b
mov dl, 1
mov rcx, r14
call fcn.14011e1d4
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.14011e1d4
cmp edi, 2
jne 0x14012994d
mov dil, 1
jmp 0x14012996e
test edi, edi
je 0x14012996b
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.140128470
mov eax, esi
jmp 0x140129aa2
mov dil, sil
cmp dword [rsp + 0x40], 2
je 0x14012997c
cmp dword [rsp + 0x40], 0x17
jne 0x1401299bf
lea rcx, [rsp + 0x50]
call fcn.14013bbac
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, r15
mov rcx, r14
call fcn.14012932c
mov ebx, eax
test eax, eax
je 0x1401299bf
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.140128470
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x140129aa2
mov edx, 1
mov rcx, r15
call fcn.14013bc30
lea rcx, [rsp + 0x28]
call fcn.14012ca34
cmp dword [r13 + 0x5e8], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x2a8], xmm0
jle 0x140129a16
mov rdx, qword [r13 + 0x2b8]
mov r8d, 3
mov rcx, r14
call fcn.14011dcd8
mov rdx, qword [r13 + 0x2c0]
mov r8d, 4
mov rcx, r14
call fcn.14011dcd8
test dil, dil
jne 0x140129a98
cmp byte [r13 + 0x601], 4
je 0x140129a98
cmp byte [r13 + 0x2a0], sil
jne 0x140129a50
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140129a50
test ebx, ebx
jne 0x1401299b8
jmp 0x140129a8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x140129a89
sub edx, 0x2728
je 0x140129a89
cmp edx, 1
je 0x140129a89
mov r8, r15
mov dword [r14 + 0xc1c], eax
mov rdx, r13
mov rcx, r14
call fcn.140128470
mov ebx, 7
jmp 0x1401299b8
mov ebx, esi
mov qword [r13 + r12*8 + 0x170], r15
jmp 0x1401299b8
mov qword [r13 + r12*8 + 0x170], r15
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140143b50
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret