Function at 0x140029d30
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x220
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x200], rax
movsxd rax, r9d
mov r10, r8
mov rbp, rdx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x40]
mov rsi, rcx
xor r12b, r12b
lea r15, [rax*8]
mov qword [r15 + rdx + 0x170], 0xffffffffffffffff
mov rdx, r10
call fcn.140029510
mov edi, eax
test eax, eax
jne 0x140029fec
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x218], rbx
lea rcx, [rsp + 0x50]
call fcn.1400288b0
test al, al
jne 0x140029e07
call fcn.140048834
mov ebx, dword [rax]
call fcn.140048834
mov r8d, 0x100
lea rdx, [rsp + 0x100]
mov ecx, ebx
mov rdi, rax
call fcn.14003b8a0
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140027f90
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, rsi
call fcn.140028970
xor eax, eax
jmp 0x140029fe4
cmp dword [rsp + 0x40], 2
jne 0x140029e4c
cmp dword [rsp + 0x44], 1
jne 0x140029e4c
mov rbx, qword [rsp + 0x20]
cmp byte [rsi + 0x97c], r12b
je 0x140029e2e
mov rdx, rbx
mov rcx, rsi
call fcn.14002a100
mov rcx, rbx
call fcn.140029440
cmp byte [rsi + 0x983], r12b
je 0x140029e59
mov rdx, rbx
mov rcx, rsi
call fcn.14002a010
jmp 0x140029e59
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140029440
cmp qword [rsi + 0x270], 0
mov qword [rsp + 0x210], r14
je 0x140029e9e
mov dl, 1
mov rcx, rsi
call fcn.14001e0d0
mov rcx, qword [rsi + 0x278]
xor r8d, r8d
mov rdx, rbx
call qword [rsi + 0x270]
xor edx, edx
mov rcx, rsi
mov r14d, eax
call fcn.14001e0d0
cmp r14d, 2
jne 0x140029edd
mov r12b, 1
cmp dword [rsp + 0x40], 2
jne 0x140029efa
xor r9d, r9d
mov rdx, rbx
mov rcx, rsi
lea r8d, [r9 + 2]
call fcn.140029860
mov edi, eax
test eax, eax
je 0x140029efa
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140028970
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x140029fdc
test r14d, r14d
je 0x140029e9e
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140028970
mov eax, 0x2a
jmp 0x140029fdc
mov edx, 1
mov rcx, rbx
call fcn.14003c9d0
lea rcx, [rsp + 0x20]
call fcn.14002d000
cmp dword [rbp + 0x5e8], 1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x2a8], xmm0
jle 0x140029f4e
mov rdx, qword [rbp + 0x2b8]
mov r8d, 3
mov rcx, rsi
call fcn.14001dbd0
mov rdx, qword [rbp + 0x2c0]
mov r8d, 4
mov rcx, rsi
call fcn.14001dbd0
test r12b, r12b
jne 0x140029fd2
cmp byte [rbp + 0x5fd], 4
je 0x140029fd2
cmp byte [rbp + 0x2a0], r12b
jne 0x140029f8d
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140029f8d
test edi, edi
jne 0x140029fce
mov qword [r15 + rbp + 0x170], rbx
mov eax, edi
jmp 0x140029fdc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x140029fc4
sub edx, 0x2728
je 0x140029fc4
cmp edx, 1
je 0x140029fc4
mov r8, rbx
mov dword [rsi + 0xc14], eax
mov rdx, rbp
mov rcx, rsi
call fcn.140028970
mov edi, 7
mov eax, edi
jmp 0x140029fdc
xor edi, edi
mov qword [r15 + rbp + 0x170], rbx
mov eax, edi
jmp 0x140029fdc
mov qword [r15 + rbp + 0x170], rbx
xor eax, eax
mov r14, qword [rsp + 0x210]
mov rbx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140044950
add rsp, 0x220
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret