Function at 0x140022de0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x110
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x20]
mov qword [r8], 0xffffffffffffffff
mov r15, r8
lea r8, [rsp + 0x30]
mov rsi, rcx
xor r12b, r12b
call fcn.140022430
mov edi, eax
test eax, eax
je 0x140022e30
xor eax, eax
jmp 0x140022f9a
movzx eax, word [rsp + 0x40]
mov qword [rsp + 0x108], rbx
cmp eax, 2
je 0x140022e54
cmp eax, 0x17
jne 0x1400230c5
lea rdx, [rsp + 0x48]
mov ecx, eax
jmp 0x140022e5e
lea rdx, [rsp + 0x44]
mov ecx, 2
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rsp + 0xc0]
call fcn.1400318e0
test rax, rax
je 0x1400230c5
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x100], r14
lea rdx, str.__Trying__s..._n
mov rcx, rbp
call fcn.140020e40
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x140022eb2
cmp eax, 0x17
jne 0x140022ebe
cmp dword [rsp + 0x34], 1
jne 0x140022ebe
mov r14b, 1
jmp 0x140022ec1
xor r14b, r14b
mov rbx, qword [rsp + 0x20]
test r14b, r14b
je 0x140022edf
cmp byte [rbp + 0x766], 0
je 0x140022edf
mov rdx, rbx
mov rcx, rsi
call fcn.140022530
mov rcx, rbx
call fcn.140022370
test r14b, r14b
je 0x140022f00
cmp byte [rbp + 0x99c], 0
je 0x140022f00
mov rdx, rbx
mov rcx, rbp
call fcn.140023120
cmp qword [rbp + 0x2c8], 0
je 0x140022f3d
mov dl, 1
mov rcx, rbp
call fcn.140010f10
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.140010f10
cmp r14d, 2
jne 0x140022fb9
mov r12b, 1
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x140022f4f
cmp eax, 0x17
jne 0x140022fd4
lea rcx, [rsp + 0x40]
call fcn.1400480f0
mov r8d, dword [rsp + 0x30]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.1400228e0
mov edi, eax
test eax, eax
je 0x140022fd4
mov rdx, rbx
mov rcx, rsi
call fcn.1400219e0
cmp edi, 1
mov eax, 7
cmove edi, eax
mov eax, edi
mov r14, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400518f0
add rsp, 0x110
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
test r14d, r14d
je 0x140022f3d
mov rdx, rbx
mov rcx, rsi
call fcn.1400219e0
mov eax, Ordinal_46
jmp 0x140022f8a
mov edx, 1
mov rcx, rbx
call fcn.140048180
lea rcx, [rsp + 0x20]
call fcn.1400156e0
cmp dword [rsi + 0x3e0], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x3d0], xmm0
jle 0x140023013
mov rdx, qword [rsi + 0x3e8]
mov r8d, 3
mov rcx, rbp
call fcn.140010950
test r12b, r12b
jne 0x1400230bb
cmp dword [rsi + 0xbc], 1
jne 0x1400230bb
cmp byte [rsi + 0x3c6], r12b
jne 0x14002305a
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002305a
test edi, edi
jne 0x140022f88
mov qword [r15], rbx
jmp 0x140022f88
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x1400230b1
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1400230b1
mov edx, eax
mov rcx, rsi
call fcn.140030e90
mov r9, rax
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.140020e40
mov rdx, rbx
mov dword [rbp + 0x4c94], edi
mov rcx, rsi
call fcn.1400219e0
mov edi, 7
jmp 0x140022f88
xor edi, edi
mov qword [r15], rbx
jmp 0x140022f88
mov qword [r15], rbx
xor eax, eax
jmp 0x140022f8a
mov byte [rsp + 0xc0], 0
call fcn.14005a4bc
mov dword [rax], 0x273f
call fcn.14005a4bc
mov rbx, rax
call fcn.14005a4bc
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140030e90
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140020d40
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1400219e0
xor eax, eax
jmp 0x140022f92