Function at 0x140006250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rbx, rcx
lea rdx, str.E4847ED08866458F8DD35F94B37001C0
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
lea rcx, [0x140127ae0]
mov qword [0x140127b08], rbx
mov qword [0x140127b10], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140127ab8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ecx, ecx
call fcn.140074a40
mov rax, qword [0x140126a10]
lea rcx, [0x1400ef7d4]
test rax, rax
je 0x1400062de
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
mov rdx, 0xffffffffffffffff
call fcn.1400cac20
xor edi, edi
mov qword [0x140127ab0], rax
xor sil, sil
mov qword [rsp + 0x38], rdi
xor r12b, r12b
mov byte [rsp + 0xb0], sil
mov r14d, edi
lea r13d, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov ebp, r13d
mov r15d, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], r13d
jle 0x140006714
lea r14d, [rdi + 8]
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov rcx, qword [rax]
mov rbx, qword [r14 + rcx]
test sil, sil
je 0x1400063f1
mov r8d, r13d
lea rdx, [0x1400ef9d8]
lea rcx, [rsp + 0x40]
call fcn.140007170
movsxd rsi, eax
cmp word [rsp + 0x40], di
je 0x14000654f
lea rax, [rsp + 0x30]
mov r8, rsi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 3
lea rcx, [0x14012afc0]
call fcn.14004ecb0
test rax, rax
jne 0x1400063ca
cmp byte [rsp + 0x30], dil
lea rdx, [rsp + 0x40]
mov r9d, dword [rsp + 0x34]
lea rcx, [0x14012afc0]
mov eax, edi
mov r8, rsi
setne al
inc eax
mov dword [rsp + 0x20], eax
call fcn.14004f1f0
test rax, rax
je 0x14000654f
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rdx, rbx
mov rcx, rax
lea r8, [r9 - 1]
call fcn.1400d3520
movzx esi, byte [rsp + 0xb0]
inc r13d
jmp 0x1400066fb
lea rdx, [0x1400ef9e0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400066f8
lea rdx, str._restart
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400066f8
lea rdx, [0x1400ef9fc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400066ef
lea rdx, str._force
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400066ef
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, str._ErrorStdOut
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140006490
cmp word [rbx + 0x18], 0x3d
lea rcx, [rbx + 0x1a]
je 0x140006479
mov rcx, rdi
mov byte [0x14012bba3], 1
call fcn.140035b60
mov dword [0x14012bba4], eax
jmp 0x1400066fb
lea rdx, str._iLib
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140006575
inc ebp
add r14, 8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebp, dword [rax]
jge 0x14000654f
mov ecx, 0x48
call fcn.1400ec294
mov ecx, dword [0x14012be18]
mov rbx, rax
lea rax, vtable.TextStream.0
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x14], 0xffffffff
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
cmp ecx, 0xffffffff
je 0x140006509
lea rdx, [rbx + 0x18]
mov dword [rbx + 0x14], ecx
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x140006509
mov byte [rbx + 0x1e], dil
lea rax, vtable.TextFile.0
mov qword [rbx + 0x40], 0xffffffffffffffff
mov qword [rbx], rax
mov qword [0x14012bba8], rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov rcx, qword [0x14012bba8]
mov r9d, 0xfde9
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnlock
mov rdx, qword [rax]
mov rdx, qword [rdx + r14]
call fcn.1400cb3a0
test al, al
jne 0x1400066fb
mov eax, 2
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, [0x1400efa44]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400066e6
lea rdx, str._Execute
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400066e6
mov r8d, 3
lea rdx, [0x1400efa68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400065d3
lea rcx, [rbx + 6]
call fcn.140005bc0
mov dword [0x140127a9c], eax
jmp 0x1400066fb
cmp qword [0x140126980], 0xffffffffffffffff
jne 0x1400066bb
mov r8d, 6
lea rdx, str._Debug
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400066bb
movzx eax, word [rbx + 0xc]
test ax, ax
je 0x140006693
cmp ax, 0x3d
jne 0x1400066bb
add rbx, 0xe
mov edx, 0x3a
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rdx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov rcx, rbx
mov rsi, rax
test rax, rax
je 0x14000666b
mov r8, rax
sub r8, rbx
sar r8, 1
call fcn.1400cb0b0
lea rcx, [rsi + 2]
mov r8d, 0xffffffff
lea rdx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.1400cb0b0
movzx esi, byte [rsp + 0xb0]
jmp 0x1400066fb
mov r8d, 0xffffffff
call fcn.1400cb0b0
lea rdx, str.9000
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140006ea0
movzx esi, byte [rsp + 0xb0]
jmp 0x1400066fb
lea rdx, str.127.0.0.1
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140006ea0
lea rdx, str.9000
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140006ea0
jmp 0x1400066fb
cmp qword [0x140127b10], rdi
mov sil, 1
mov byte [rsp + 0xb0], sil
jne 0x1400066da
mov qword [rsp + 0x38], rbx
lea r15d, [rbp + 1]
jmp 0x1400066fb
dec ebp
sub r14, 8
lea r15d, [rbp + 1]
jmp 0x1400066fb
mov qword [0x140127b10], rdi
jmp 0x1400066fb
mov byte [0x140127a76], 1
jmp 0x1400066fb
mov r12b, 1
inc ebp
add r14, 8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebp, dword [rax]
jl 0x140006330
mov r14, qword [rsp + 0x38]
lea rax, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rdx, [0x1400ef8b4]
mov dword [rsp + 0x20], 3
lea rcx, [0x14012afc0]
call fcn.14004ecb0
mov rcx, rax
test rax, rax
jne 0x140006786
cmp byte [rsp + 0xb0], dil
lea rdx, [0x1400ef8b4]
mov r9d, dword [rsp + 0x34]
lea rcx, [0x14012afc0]
mov eax, edi
setne al
xor r8d, r8d
inc eax
mov dword [rsp + 0x20], eax
call fcn.14004f1f0
mov rcx, rax
test rax, rax
je 0x14000654f
lea eax, [r13 - 1]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, eax
call fcn.140001540
lea rax, [rsp + 0xb0]
mov r8d, 6
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rdx, str.A_Args
mov dword [rsp + 0x20], 0xc1
lea rcx, [0x14012afc0]
call fcn.14004ecb0
mov rsi, rax
test rax, rax
jne 0x14000680e
cmp byte [rsp + 0xb0], dil
lea r8d, [rsi + 6]
mov r9d, dword [rsp + 0x34]
lea rdx, str.A_Args
mov eax, edi
lea rcx, [0x14012afc0]
setne al
add eax, 0xc1
mov dword [rsp + 0x20], eax
call fcn.14004f1f0
mov rsi, rax
test rax, rax
je 0x14000654f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
movsxd r8, r15d
sub ebx, r15d
mov edx, ebx
mov rax, qword [rax]
lea rcx, [rax + r8*8]
call fcn.1400ba8f0
test rax, rax
je 0x14000654f
mov rdx, rax
mov rcx, rsi
call fcn.1400d3a70
cmp dword [0x140127874], edi
mov rcx, qword [0x140124200]
mov qword [rcx + 0xd8], rdi
mov qword [rcx + 0xe0], rdi
mov qword [rcx + 0xe8], rdi
mov qword [rcx + 0xf8], rdi
mov dword [rcx + 0x100], edi
mov byte [rcx + 0x138], dil
mov qword [rcx + 0x34], 0xa
mov qword [rcx + 0x68], rdi
mov dword [rcx + 0x128], 0x1000100
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rdi
mov qword [rcx + 0x148], rdi
mov dword [rcx + 0x140], edi
mov dword [rcx + 0x114], edi
mov dword [rcx + 0x30], 1
mov qword [rcx], 0xffffffffffffffff
mov dword [rcx + 0x118], 5
mov word [rcx + 0x12c], 0x101
mov dword [rcx + 0x120], edi
mov dword [rcx + 0x12e], 0x200
mov qword [rcx + 0x3c], rdi
mov dword [rcx + 0x44], edi
mov qword [rcx + 0x48], rdi
mov dword [rcx + 0x50], 0x80000000
mov dword [rcx + 0x54], 0x80000000
mov qword [rcx + 0x58], rdi
mov dword [rcx + 0x70], 0x2af8
mov qword [rcx + 0x60], rdi
mov dword [rcx + 0x74], WSAAsyncSelect
mov dword [rcx + 0x78], reloc.OLEAUT32.dll_SafeArrayLock
mov dword [rcx + 0x7c], 0xa
mov qword [rcx + 0x80], 0xffffffffffffffff
mov dword [rcx + 0x88], 0xffffffff
mov dword [rcx + 0x8c], 0xa
mov dword [rcx + 0x90], 0xffffffff
mov word [rcx + 0x132], 0x100
mov byte [rcx + 0x134], 1
movsd xmm0, qword [str._0.6f]
movsd qword [rcx + 0x94], xmm0
mov eax, dword [0x1400efd88]
mov dword [rcx + 0x9c], eax
mov word [rcx + 0x135], 0x44
mov byte [rcx + 0x139], 1
mov dword [rcx + 0x13c], edi
je 0x140006e11
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.CryptEncrypt
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptDecrypt
mov rcx, rbx
mov qword [0x140127aa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r9d, r12b
lea rcx, [0x14012afc0]
mov r8, r14
mov qword [0x140127aa0], rax
call fcn.140036790
cmp eax, 1
jne 0x14000654f
mov rax, qword [0x140124200]
lea rcx, [0x1401278d0]
mov edx, 2
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140006a03
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
lea rcx, [0x14012afc0]
call fcn.140038cc0
cmp eax, 0xffffffff
jne 0x140006ace
mov rbx, qword [0x14012bba8]
test rbx, rbx
je 0x14000654f
mov r8d, dword [rbx + 0xc]
test r8d, r8d
je 0x140006abc
cmp qword [rbx + 0x30], rdi
jne 0x140006abc
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [rbx + 0x38]
call qword [rax + 0x20]
mov dword [rbx + 0xc], edi
mov rax, qword [rbx]
mov rcx, rbx
mov word [rbx + 0x2c], di
call qword [rax + reloc.WSOCK32.dll_recv]
jmp 0x14000654f
test eax, eax
je 0x140006e11
mov eax, dword [0x140127a98]
test eax, eax
jne 0x140006b1c
cmp word [0x140128a9c], di
jne 0x140006b10
cmp dword [0x140128a80], edi
jne 0x140006b10
cmp qword [0x140127a90], rdi
jne 0x140006b10
cmp qword [0x140127a88], rdi
jne 0x140006b10
cmp byte [0x140127a75], dil
je 0x140006b98
mov dword [0x140127a98], 1
jmp 0x140006b21
cmp eax, 4
je 0x140006b98
test r12b, r12b
jne 0x140006ba1
cmp byte [0x140127a76], dil
jne 0x140006c40
mov rdx, qword [0x14012bb98]
mov rcx, qword [str.AutoHotkey]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x140006c40
mov eax, dword [0x140127a98]
cmp eax, 3
je 0x140006e11
cmp eax, 2
je 0x140006b90
mov r8, qword [0x14012bb80]
lea rcx, str.An_older_instance_of_this_script_is_already_running.__Replace_it_with_this_instance__nNote:_To_avoid_this_message__see_SingleInstance_in_the_help_file.
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
mov edx, 4
call fcn.1400d5ab0
cmp eax, 7
je 0x140006e11
mov r8d, 0x407
jmp 0x140006bc7
test r12b, r12b
je 0x140006c40
mov rdx, qword [0x14012bb98]
mov rcx, qword [str.AutoHotkey]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x140006c40
mov r8d, 0x406
xor r9d, r9d
mov rcx, rsi
lea edx, [r9 + 0x44]
call qword [sym.imp.USER32.dll_PostMessageW]
mov ecx, gethostbyname
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140006c35
cmp ebx, 0x64
jne 0x140006c1b
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rbx - 0x60]
lea rcx, str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
call fcn.1400d5ab0
cmp eax, 7
je 0x14000654f
mov ebx, edi
mov ecx, gethostbyname
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140006bf1
mov ecx, WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8, [0x140127b7c]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x140006c79
cmp dword [0x140127b7c], edi
je 0x140006c79
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, [0x14012afc0]
call fcn.140037140
cmp eax, 1
jne 0x14000654f
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
movsxd rax, dword [0x1401241fc]
test eax, eax
je 0x140006ce4
imul rcx, rax, 0xd4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x140127a80], rax
test rax, rax
je 0x140006ce4
movsxd rcx, dword [0x1401241fc]
xor edx, edx
imul r8, rcx, 0xd4
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140126938]
test rcx, rcx
je 0x140006d4e
cmp qword [rcx + 0x10], rdi
je 0x140006d4e
mov rax, qword [0x140126950]
lea rdx, [0x1400efd7e]
mov r8, rdx
test rax, rax
je 0x140006d16
mov rax, qword [rax]
test rax, rax
cmovne r8, rax
mov rax, qword [rcx]
test rax, rax
cmovne rdx, rax
call fcn.14000d150
test eax, eax
jne 0x140006d4e
cmp dword [0x1401269d0], 2
je 0x140006d4e
lea rcx, [0x140126960]
call fcn.1400087a0
test eax, eax
jne 0x140006d4e
lea rcx, [0x140126960]
call fcn.1400088d0
lea rdx, [0x1400d28a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140127a78], rax
call fcn.140017930
lea rax, [rsp + 0xb0]
mov byte [0x14012bba0], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov dword [rsp + 0x20], 3
lea rdx, str.Clipboard
mov byte [0x140127a74], dil
lea rcx, [0x14012afc0]
call fcn.14004ecb0
mov rbx, rax
test rax, rax
jne 0x140006de4
cmp byte [rsp + 0xb0], dil
lea rdx, str.Clipboard
mov r9d, dword [rsp + 0x34]
lea rcx, [0x14012afc0]
setne dil
xor r8d, r8d
inc edi
mov dword [rsp + 0x20], edi
call fcn.14004f1f0
mov rbx, rax
test rax, rax
je 0x140006e07
cmp byte [rbx + 0x23], 0
jne 0x140006dee
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x21], 0
jl 0x140006e07
mov rcx, rbx
call fcn.1400015e0
movzx eax, byte [rbx + 0x21]
and al, 0xf
or al, 0x80
mov byte [rbx + 0x21], al
call fcn.140006e20
jmp 0x140006554
xor eax, eax
jmp 0x140006554