Function at 0x140115980
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, [0x140142b5c]
lea rcx, [rax + 0x20]
mov qword [rsp + 0x20], 8
mov dword [rsp + 0x28], edi
call fcn.1400f5e20
cmp byte [r15], 0x5b
jne 0x140115a40
movzx eax, byte [r15 + 1]
lea rbx, [r15 + 1]
test al, al
je 0x140115a36
mov esi, ebp
cmp al, 0x5d
je 0x140115a36
cmp rsi, 0x40
jge 0x140115a36
movsxd rcx, edi
lea rdx, [0x140142574]
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 0x140115a24
add edi, 2
add rbx, 2
movzx eax, byte [rbx + 1]
inc rbx
inc ebp
inc rsi
inc edi
test al, al
jne 0x1401159f2
movsxd rax, ebp
mov byte [rsp + rax + 0x50], 0
jmp 0x140115a54
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 0x140115ac3
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.140077b30
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 0x140115b3d
cmp rdi, 0xffffffffffffffff
je 0x140115ae6
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 0x140115b2c
mov rax, qword [rbx + 0x20]
mov rdx, rax
cmp word [rax], 0x17
jne 0x140115b19
test r14d, r14d
je 0x140115b19
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 0x140115b35
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140115ad7
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
jne 0x140115b86
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.140077b30
mov rax, rdi
add rsp, 0xa8
pop r14
pop rdi
pop rsi
pop rbx
ret
test esi, esi
jns 0x140115bd3
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.140077b30
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