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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c232d
push eax
mov dword fs:[0], esp
lea eax, [ebp - 0x200]
sub esp, 0x1f8
push ebx
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x40b401
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
jmp 0x40b8a7
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b89c
mov eax, dword [0x4dd508]
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x68], 2
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 6
test eax, eax
jne 0x40b456
xor ecx, ecx
call fcn.00406f20
mov dword [0x4dd508], eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
test esi, esi
jne 0x40b895
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.WSOCK32.dll_connect]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40b4d0
nop
push 0x10012
push dword [0x4dc0b0]
push str.Failed_to_connect_to_an_active_debugger_client.
push dword [0x4d9978]
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 3
je 0x40b63d
sub eax, 2
je 0x40b64b
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x40b490
mov eax, dword [0x4dd504]
mov ebx, dword [ebp - 0x10]
test eax, eax
jne 0x40b4e9
lea ecx, [eax + 2]
call fcn.00406f20
mov dword [0x4dd504], eax
push ebx
call eax
test esi, esi
jne 0x40b895
mov dword [0x4d8a88], edi
mov dword [ebp - 0x40], vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x38], 0
push str.DBGP_IDEKEY
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040c830
mov ecx, 0x4c3c29
mov eax, dword [eax + 4]
test eax, eax
je 0x40b52b
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
push ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
push 0xffffffffffffffff
mov dword [ebp - 0x28], 0x4c825c
call fcn.004a9030
add esp, 8
mov esi, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x40], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test esi, esi
je 0x40b586
mov eax, dword [esi + 0x10]
add eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x40b586
mov eax, dword [esi + 4]
test eax, eax
je 0x40b57b
push eax
call ebx
add esp, 4
push 0x14
push esi
call fcn.004c0c55
add esp, 8
mov dword [ebp - 0x4c], vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
push str.DBGP_COOKIE
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.0040c830
mov ecx, 0x4c3c29
mov eax, dword [eax + 4]
test eax, eax
je 0x40b5bc
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
push ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x1c]
push 0xffffffffffffffff
mov dword [ebp - 0x1c], 0x4c825c
call fcn.004a9030
add esp, 8
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x4c], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test esi, esi
je 0x40b611
mov eax, dword [esi + 0x10]
add eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x40b611
mov eax, dword [esi + 4]
test eax, eax
je 0x40b606
push eax
call ebx
add esp, 4
push 0x14
push esi
call fcn.004c0c55
add esp, 8
mov esi, dword [ebp - 0x18]
mov dword [0x4d8aa8], 0
mov dword [0x4d8aac], 0
test esi, esi
je 0x40b66a
mov eax, dword [esi]
mov edx, 0x4c3c29
test eax, eax
cmovne edx, eax
mov dword [ebp + 0xc], edx
jmp 0x40b671
push 0
push 4
mov ecx, 0x4dba98
call fcn.0042d940
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0x3e6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 0xc], 0x4c3c29
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40b689
mov eax, dword [ecx]
test eax, eax
mov ecx, 0x4c3c29
cmovne ecx, eax
mov dword [ebp + 8], ecx
jmp 0x40b690
mov dword [ebp + 8], 0x4c3c29
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._init_appid_AutoHotkey__ide_key__e__session__e__thread__u__parent___language_AutoHotkey__protocol_version_1.0__fileuri_
push 0x4d8aa0
call fcn.0040bbb0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
add esp, 0x10
mov byte [ebp - 4], 8
mov ecx, dword [0x4dc0b0]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x4c825c
push 0xffffffffffffffff
call fcn.004a9030
mov byte [ebp - 4], 7
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40b736
mov eax, dword [eax]
mov ecx, 0x4c3c29
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, 0x4d8aa0
call fcn.0040be90
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test ecx, ecx
je 0x40b74c
mov eax, dword [ecx + 0x10]
add eax, 0xffffffff
mov dword [ecx + 0x10], eax
jne 0x40b731
mov eax, dword [ecx + 4]
test eax, eax
je 0x40b726
push eax
call ebx
mov ecx, dword [ebp + 0xc]
add esp, 4
push 0x14
push ecx
call fcn.004c0c55
add esp, 8
mov esi, dword [ebp - 0x18]
jmp 0x40b74c
push 0x4c3c29
mov ecx, 0x4d8aa0
call fcn.0040be90
mov dword [ebp - 0x34], vtable.CKuStringT_char__class_CKuStringUtilA_.0
cmp dword [0x4d8aac], 0
jne 0x40b790
mov eax, dword [0x4d8aa8]
mov ecx, 0x4d8aa0
add eax, 3
push eax
call fcn.0040c260
test eax, eax
jne 0x40b790
mov ecx, dword [0x4d8aa0]
add ecx, dword [0x4d8aa8]
mov ax, word [0x4c4648]
mov word [ecx], ax
mov al, byte [0x4c464a]
mov byte [ecx + 2], al
add dword [0x4d8aa8], 3
mov ecx, 0x4d8a78
call fcn.0040b2c0
mov dword [ebp - 0x1c], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test eax, eax
jne 0x40b826
mov eax, dword [0x4dbe24]
mov dword [0x4d8a8c], eax
test esi, esi
je 0x40b7dd
mov eax, dword [esi + 0x10]
add eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x40b7dd
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x40b7d2
push eax
call ebx
add esp, 4
push 0x14
push esi
call fcn.004c0c55
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test ecx, ecx
je 0x40b811
mov eax, dword [ecx + 0x10]
add eax, 0xffffffff
mov dword [ecx + 0x10], eax
jne 0x40b811
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 4]
test eax, eax
je 0x40b806
push eax
call ebx
add esp, 4
push 0x14
push esi
call fcn.004c0c55
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [0x4d8a88], 0xffffffff
test esi, esi
je 0x40b85a
mov eax, dword [esi + 0x10]
add eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x40b85a
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x40b84f
push eax
call ebx
add esp, 4
push 0x14
push esi
call fcn.004c0c55
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test ecx, ecx
je 0x40b895
mov eax, dword [ecx + 0x10]
add eax, 0xffffffff
mov dword [ecx + 0x10], eax
jne 0x40b895
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 4]
test eax, eax
je 0x40b88a
push eax
call ebx
add esp, 4
push 0x14
push esi
call fcn.004c0c55
add esp, 8
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov ecx, str.Failed_to_connect_to_an_active_debugger_client._nContinue_running_the_script_without_the_debugger_
call fcn.0040b990
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8