Function at 0x1401db430
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r14
sub rsp, 0xa8
mov qword [rax + 0x10], rbp
xorps xmm0, xmm0
xor ebp, ebp
mov qword [rax - 0x28], r15
xorps xmm1, xmm1
movzx r9d, dx
mov r14d, r8d
mov r15, rcx
movdqu xmmword [rsp + 0x2c], xmm0
mov edi, 1
lea edx, [rbp + 8]
movdqu xmmword [rsp + 0x3c], xmm1
mov dword [rax - 0x7c], ebp
lea r8, [0x14028451c]
lea rcx, [rax + 0x20]
mov qword [rsp + 0x20], 8
mov dword [rsp + 0x28], edi
call fcn.1401c22a0
cmp byte [r15], 0x5b
jne 0x1401db4f0
movzx eax, byte [r15 + 1]
lea rbx, [r15 + 1]
test al, al
je 0x1401db4e6
mov esi, ebp
cmp al, 0x5d
je 0x1401db4e6
cmp rsi, 0x40
jge 0x1401db4e6
movsxd rcx, edi
lea rdx, [0x140283f34]
add rcx, r15
mov byte [rsp + rsi + 0x50], al
mov r8d, 3
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1401db4d4
add edi, 2
add rbx, 2
movzx eax, byte [rbx + 1]
inc rbx
inc ebp
inc rsi
inc edi
test al, al
jne 0x1401db4a2
movsxd rax, ebp
mov byte [rsp + rax + 0x50], 0
jmp 0x1401db504
mov r8d, 0x40
lea rcx, [rsp + 0x50]
mov rdx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea r9, [rsp + 0xd0]
mov byte [rsp + 0x90], 0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r15, qword [rsp + 0xa0]
mov esi, eax
mov rbp, qword [rsp + 0xd8]
test eax, eax
je 0x1401db573
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, esi
lea rdx, str.getaddrinfo___error_:__d_n
mov rcx, rax
call fcn.14016b3f0
mov rax, 0xffffffffffffffff
add rsp, 0xa8
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rbx, qword [rsp + 0xd0]
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x1401db5ed
cmp rdi, 0xffffffffffffffff
je 0x1401db596
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401db5dc
mov rax, qword [rbx + 0x20]
mov rdx, rax
cmp word [rax], 0x17
jne 0x1401db5c9
test r14d, r14d
je 0x1401db5c9
mov dword [rax + 0x18], r14d
mov rdx, qword [rbx + 0x20]
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test eax, eax
jns 0x1401db5e5
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1401db587
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
jne 0x1401db636
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [rdi + 3]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea r8, str.socket
mov rcx, rax
lea rdx, str.Socket_error:__s___d_n
call fcn.14016b3f0
mov rax, rdi
add rsp, 0xa8
pop r14
pop rdi
pop rsi
pop rbx
ret
test esi, esi
jns 0x1401db683
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea r8, str.connect
mov rcx, rax
lea rdx, str.Socket_error:__s___d_n
call fcn.14016b3f0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
add rsp, 0xa8
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, rdi
add rsp, 0xa8
pop r14
pop rdi
pop rsi
pop rbx
ret