Function at 0x140015180
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x340
lea rdi, [rsp + 0x30]
mov ecx, 0xc4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x350]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x338], rax
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x1400151e6
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.1400167a0
jmp 0x14001552f
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [rsp + 0x1f8], rax
cmp qword [rsp + 0x1f8], 0xffffffffffffffff
je 0x14001551d
lea rax, [rsp + 0x208]
mov rdi, rax
xor eax, eax
mov ecx, gethostbyaddr
rep stosb byte [rdi], al
mov dword [rsp + 0x20c], 2
mov dword [rsp + 0x210], 1
mov dword [rsp + 0x214], 6
lea r9, [rsp + 0x258]
lea r8, [rsp + 0x208]
mov rdx, qword [rsp + 0x360]
mov rcx, qword [rsp + 0x358]
call fcn.14001d390
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001550f
mov rax, qword [rsp + 0x258]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x258]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WSOCK32.dll_connect]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400152af
jmp 0x14001531b
mov r9d, 0x10012
mov r8, qword [0x140322140]
lea rdx, str.Failed_to_connect_to_an_active_debugger_client.
mov rcx, qword [0x1403213e8]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rsp + 0x304], eax
cmp dword [rsp + 0x304], 3
je 0x1400152ed
cmp dword [rsp + 0x304], 5
je 0x1400152fe
jmp 0x140015316
mov edx, 4
lea rcx, [0x1403219f0]
call fcn.140080b90
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0x3e6
jmp 0x14001552f
jmp 0x14001527c
mov rcx, qword [rsp + 0x258]
call fcn.14001d350
cmp dword [rsp + 0x30], 0
jne 0x14001550f
mov rax, qword [rsp + 0x350]
mov rcx, qword [rsp + 0x1f8]
mov qword [rax + 0x20], rcx
lea rcx, [rsp + 0x2d0]
call fcn.140013240
mov qword [rsp + 0x308], rax
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x310], rax
lea rdx, str.DBGP_IDEKEY
mov rcx, qword [rsp + 0x310]
call fcn.140016c40
mov rcx, rax
call fcn.140013c50
mov r8d, 0xffffffff
mov rdx, rax
lea rcx, [rsp + 0x278]
call fcn.140013410
nop
lea rcx, [rsp + 0x2d0]
call fcn.1400139b0
lea rcx, [rsp + 0x2e8]
call fcn.140013240
mov qword [rsp + 0x318], rax
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x320], rax
lea rdx, str.DBGP_COOKIE
mov rcx, qword [rsp + 0x320]
call fcn.140016c40
mov rcx, rax
call fcn.140013c50
mov r8d, 0xffffffff
mov rdx, rax
lea rcx, [rsp + 0x2a8]
call fcn.140013410
nop
lea rcx, [rsp + 0x2e8]
call fcn.1400139b0
mov rax, qword [rsp + 0x350]
add rax, 0x60
mov rcx, rax
call fcn.140015150
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x328], eax
lea rcx, [rsp + 0x2a8]
call fcn.14000c1d0
mov qword [rsp + 0x330], rax
lea rcx, [rsp + 0x278]
call fcn.14000c1d0
mov rcx, qword [rsp + 0x350]
add rcx, 0x60
mov rdx, qword [0x140322140]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0x328]
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x330]
mov r9, rdx
mov r8, rax
lea rdx, str._init_appid_AutoHotkey__ide_key__e__session__e__thread__u__parent___language_AutoHotkey__protocol_version_1.0__fileuri__r___
call fcn.14001b3a0
mov rcx, qword [rsp + 0x350]
call fcn.14001a120
test eax, eax
jne 0x1400154e4
mov rax, qword [rsp + 0x350]
mov rcx, qword [0x1403220a0]
mov qword [rax + 0x28], rcx
mov dword [rsp + 0x300], 0
lea rcx, [rsp + 0x2a8]
call fcn.140013a70
nop
lea rcx, [rsp + 0x278]
call fcn.140013a70
mov eax, dword [rsp + 0x300]
jmp 0x14001552f
mov rax, qword [rsp + 0x350]
mov qword [rax + 0x20], 0xffffffffffffffff
lea rcx, [rsp + 0x2a8]
call fcn.140013a70
nop
lea rcx, [rsp + 0x278]
call fcn.140013a70
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WSOCK32.dll_closesocket]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
lea rcx, str.Failed_to_connect_to_an_active_debugger_client._nContinue_running_the_script_without_the_debugger_
call fcn.1400167a0
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14026c200]
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x338]
xor rcx, rsp
call fcn.140135520
add rsp, 0x340
pop rdi
ret