Function at 0x140043a80
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x120
mov rax, qword [0x1400fe158]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x28]
mov qword [r8], 0xffffffffffffffff
mov r15, r8
lea r8, [rsp + 0x40]
mov rsi, rcx
xor r12b, r12b
call fcn.140043180
mov edi, eax
test eax, eax
je 0x140043ad0
xor eax, eax
jmp 0x140043d3d
lea r8, [rsp + 0x20]
mov qword [rsp + 0x118], rbx
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.140042a70
test al, al
jne 0x140043b36
call fcn.1400a3b18
mov rbx, rax
call fcn.1400a3b18
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140067bd0
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140041b50
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140042770
xor eax, eax
jmp 0x140043d35
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x110], r14
lea rdx, str.__Trying__s..._n
mov rcx, rbp
call fcn.140041c50
cmp dword [rsp + 0x40], 2
jne 0x140043b68
cmp dword [rsp + 0x44], 1
jne 0x140043b68
mov r14b, 1
jmp 0x140043b6b
xor r14b, r14b
mov rbx, qword [rsp + 0x28]
test r14b, r14b
je 0x140043b89
cmp byte [rbp + 0x766], 0
je 0x140043b89
mov rdx, rbx
mov rcx, rsi
call fcn.140043270
mov rcx, rbx
call fcn.1400430c0
test r14b, r14b
je 0x140043baa
cmp byte [rbp + 0x99c], 0
je 0x140043baa
mov rdx, rbx
mov rcx, rbp
call fcn.140043d60
cmp qword [rbp + 0x2c8], 0
je 0x140043be7
mov dl, 1
mov rcx, rbp
call fcn.140031a20
mov rcx, qword [rbp + 0x2d0]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x2c8]
xor edx, edx
mov rcx, rbp
mov r14d, eax
call fcn.140031a20
cmp r14d, 2
jne 0x140043c2e
mov r12b, 1
cmp dword [rsp + 0x40], 2
jne 0x140043c48
lea rcx, [rsp + 0x50]
call fcn.140009a90
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.140043620
mov edi, eax
test eax, eax
je 0x140043c48
mov rdx, rbx
mov rcx, rsi
call fcn.140042770
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x140043d2d
test r14d, r14d
je 0x140043be7
mov rdx, rbx
mov rcx, rsi
call fcn.140042770
mov eax, Ordinal_46
jmp 0x140043d2d
mov edx, 1
mov rcx, rbx
call fcn.140068590
lea rcx, [rsp + 0x28]
call fcn.1400361b0
cmp dword [rsi + 0x3e0], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x3d0], xmm0
jle 0x140043c87
mov rdx, qword [rsi + 0x3e8]
mov r8d, 3
mov rcx, rbp
call fcn.140031570
test r12b, r12b
jne 0x140043d28
cmp dword [rsi + 0xbc], 1
jne 0x140043d28
cmp byte [rsi + 0x3c6], r12b
jne 0x140043cc9
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140043cc9
test edi, edi
jne 0x140043d24
mov qword [r15], rbx
mov eax, edi
jmp 0x140043d2d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x140043d1f
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x140043d1f
mov edx, eax
mov rcx, rsi
call fcn.140067bd0
mov r9, rax
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.140041c50
mov rdx, rbx
mov dword [rbp + 0x4c9c], edi
mov rcx, rsi
call fcn.140042770
mov edi, 7
mov eax, edi
jmp 0x140043d2d
xor edi, edi
mov qword [r15], rbx
mov eax, edi
jmp 0x140043d2d
mov qword [r15], rbx
xor eax, eax
mov r14, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400951e0
add rsp, 0x120
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret