Function at 0x140006420
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, [0x140132b38]
mov qword [0x140132b60], rbx
mov qword [0x140132b68], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140132b10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ecx, ecx
call fcn.14007a610
mov rax, qword [0x140131a50]
lea rcx, [0x1400f98c4]
test rax, rax
je 0x1400064ae
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
mov rdx, 0xffffffffffffffff
call fcn.1400d2c40
xor edi, edi
mov qword [0x140132b08], rax
xor sil, sil
mov qword [rsp + 0x38], rdi
mov r14d, edi
mov byte [rsp + 0xb0], sil
xor r12b, r12b
mov r13d, 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 0x1400068e7
mov r14d, 8
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 0x1400065c4
mov r8d, r13d
lea rdx, [0x1400f99e8]
lea rcx, [rsp + 0x40]
call fcn.140007350
movsxd rsi, eax
cmp word [rsp + 0x40], di
je 0x140006722
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, [0x140136060]
call fcn.140052120
test rax, rax
jne 0x14000659a
cmp byte [rsp + 0x30], dil
lea rdx, [rsp + 0x40]
mov r9d, dword [rsp + 0x34]
lea rcx, [0x140136060]
mov eax, edi
mov r8, rsi
setne al
inc eax
mov dword [rsp + 0x20], eax
call fcn.1400526b0
test rax, rax
je 0x140006722
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, 0xffffffffffffffff
mov rdx, rbx
mov rcx, rax
call fcn.1400dc860
movzx esi, byte [rsp + 0xb0]
inc r13d
jmp 0x1400068ce
lea rdx, [0x1400f99f0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400068cb
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 0x1400068cb
lea rdx, [0x1400f9a0c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400068c2
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 0x1400068c2
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 0x140006663
cmp word [rbx + 0x18], 0x3d
lea rcx, [rbx + 0x1a]
je 0x14000664c
mov rcx, rdi
mov byte [0x140136c43], 1
call fcn.140037b40
mov dword [0x140136c44], eax
jmp 0x1400068ce
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 0x140006748
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 0x140006722
mov ecx, 0x48
call fcn.1400f6104
mov ecx, dword [0x140136ec8]
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 0x1400066dc
lea rdx, [rbx + 0x18]
mov dword [rbx + 0x14], ecx
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1400066dc
mov byte [rbx + 0x1e], dil
lea rax, vtable.TextFile.0
mov qword [rbx + 0x40], 0xffffffffffffffff
mov qword [rbx], rax
mov qword [0x140136c48], rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov rcx, qword [0x140136c48]
mov r9d, 0xfde9
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnlock
mov rdx, qword [rax]
mov rdx, qword [rdx + r14]
call fcn.1400d3360
test al, al
jne 0x1400068ce
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, [0x1400f9a54]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400068b9
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 0x1400068b9
mov r8d, 3
lea rdx, [0x1400f9a78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400067a6
lea rcx, [rbx + 6]
call fcn.140005d80
mov dword [0x140132b00], eax
jmp 0x1400068ce
cmp qword [0x1401319c0], 0xffffffffffffffff
jne 0x14000688e
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 0x14000688e
movzx eax, word [rbx + 0xc]
test ax, ax
je 0x140006866
cmp ax, 0x3d
jne 0x14000688e
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 0x14000683e
mov r8, rax
sub r8, rbx
sar r8, 1
call fcn.1400d3040
lea rcx, [rsi + 2]
mov r8d, 0xffffffff
lea rdx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.1400d3040
movzx esi, byte [rsp + 0xb0]
jmp 0x1400068ce
mov r8d, 0xffffffff
call fcn.1400d3040
lea rdx, str.9000
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140007090
movzx esi, byte [rsp + 0xb0]
jmp 0x1400068ce
lea rdx, str.127.0.0.1
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140007090
lea rdx, str.9000
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140007090
jmp 0x1400068ce
cmp qword [0x140132b68], rdi
mov sil, 1
mov byte [rsp + 0xb0], sil
jne 0x1400068ad
mov qword [rsp + 0x38], rbx
lea r15d, [rbp + 1]
jmp 0x1400068ce
dec ebp
sub r14, 8
lea r15d, [rbp + 1]
jmp 0x1400068ce
mov qword [0x140132b68], rdi
jmp 0x1400068ce
mov byte [0x1401328fe], 1
jmp 0x1400068ce
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 0x140006500
mov r14, qword [rsp + 0x38]
lea rax, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rdx, [0x1400f98c8]
mov dword [rsp + 0x20], 3
lea rcx, [0x140136060]
call fcn.140052120
mov rcx, rax
test rax, rax
jne 0x140006959
cmp byte [rsp + 0xb0], dil
lea rdx, [0x1400f98c8]
mov r9d, dword [rsp + 0x34]
lea rcx, [0x140136060]
mov eax, edi
setne al
xor r8d, r8d
inc eax
mov dword [rsp + 0x20], eax
call fcn.1400526b0
mov rcx, rax
test rax, rax
je 0x140006722
lea eax, [r13 - 1]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, eax
call fcn.1400015a0
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, [0x140136060]
call fcn.140052120
mov rsi, rax
test rax, rax
jne 0x1400069e3
cmp byte [rsp + 0xb0], dil
lea rdx, str.A_Args
mov r9d, dword [rsp + 0x34]
lea rcx, [0x140136060]
mov eax, edi
mov r8d, 6
setne al
add eax, 0xc1
mov dword [rsp + 0x20], eax
call fcn.1400526b0
mov rsi, rax
test rax, rax
je 0x140006722
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.1400c2660
test rax, rax
je 0x140006722
mov rdx, rax
mov rcx, rsi
call fcn.1400dcdb0
cmp dword [0x1401328b4], edi
mov rcx, qword [0x14012f240]
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 [0x1400f9d98]
mov dword [rcx + 0x9c], eax
mov word [rcx + 0x135], 0x44
mov byte [rcx + 0x139], 1
mov dword [rcx + 0x13c], edi
je 0x140006ff4
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 [0x140132af8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r9d, r12b
lea rcx, [0x140136060]
mov r8, r14
mov qword [0x140132af0], rax
call fcn.140038b10
cmp eax, 1
jne 0x140006722
mov rax, qword [0x14012f240]
lea rcx, [0x140132910]
mov edx, 2
nop dword [rax + rax]
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 0x140006be0
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, [0x140136060]
call fcn.14003af80
cmp eax, 0xffffffff
jne 0x140006cab
mov rbx, qword [0x140136c48]
test rbx, rbx
je 0x140006722
mov r8d, dword [rbx + 0xc]
test r8d, r8d
je 0x140006c99
cmp qword [rbx + 0x30], rdi
jne 0x140006c99
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 0x140006722
test eax, eax
je 0x140006ff4
mov eax, dword [0x140132ae8]
test eax, eax
jne 0x140006cf4
cmp word [0x140132e04], di
jne 0x140006ce9
cmp dword [0x140133b00], edi
jne 0x140006ce9
cmp qword [0x140132ae0], rdi
jne 0x140006ce9
cmp qword [0x140132ad8], rdi
jne 0x140006ce9
cmp byte [0x1401328fd], dil
je 0x140006cf4
mov eax, 1
mov dword [0x140132ae8], eax
test eax, 0xfffffffb
je 0x140006d72
test r12b, r12b
jne 0x140006d7b
cmp byte [0x1401328fe], dil
jne 0x140006e21
mov rdx, qword [0x140136c38]
mov rcx, qword [str.AutoHotkey]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x140006e21
mov eax, dword [0x140132ae8]
cmp eax, 3
je 0x140006ff4
cmp eax, 2
je 0x140006d6a
mov r8, qword [0x140136c20]
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.1400def40
cmp eax, 7
je 0x140006ff4
mov r8d, 0x407
jmp 0x140006da1
test r12b, r12b
je 0x140006e21
mov rdx, qword [0x140136c38]
mov rcx, qword [str.AutoHotkey]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x140006e21
mov r8d, 0x406
xor r9d, r9d
mov edx, 0x44
mov rcx, rsi
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 0x140006e16
nop dword [rax]
cmp ebx, 0x64
jne 0x140006dfc
xorps xmm3, xmm3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
mov edx, 4
call fcn.1400def40
cmp eax, 7
je 0x140006722
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 0x140006dd0
mov ecx, WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8, [0x140132d20]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x140006e5a
cmp dword [0x140132d20], edi
je 0x140006e5a
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, [0x140136060]
call fcn.140039350
cmp eax, 1
jne 0x140006722
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
mov r8d, 4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
movsxd rax, dword [0x14012f248]
test eax, eax
je 0x140006ec7
imul rcx, rax, 0xd4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x140132ad0], rax
mov rcx, rax
test rax, rax
je 0x140006ec7
movsxd rax, dword [0x14012f248]
xor edx, edx
imul r8, rax, 0xd4
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140131978]
test rcx, rcx
je 0x140006f31
cmp qword [rcx + 0x10], rdi
je 0x140006f31
mov rax, qword [0x140131990]
lea rdx, [0x1400f9d8e]
mov r8, rdx
test rax, rax
je 0x140006ef9
mov rax, qword [rax]
test rax, rax
cmovne r8, rax
mov rax, qword [rcx]
test rax, rax
cmovne rdx, rax
call fcn.14000e0b0
test eax, eax
jne 0x140006f31
cmp dword [0x140131a10], 2
je 0x140006f31
lea rcx, [0x1401319a0]
call fcn.140008a40
test eax, eax
jne 0x140006f31
lea rcx, [0x1401319a0]
call fcn.140008b70
lea rdx, [0x1400dbb20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140132ac8], rax
call fcn.140018870
lea rax, [rsp + 0xb0]
mov byte [0x140136c40], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov dword [rsp + 0x20], 3
lea rdx, str.Clipboard
mov byte [0x1401328fc], dil
lea rcx, [0x140136060]
call fcn.140052120
mov rbx, rax
test rax, rax
jne 0x140006fc7
cmp byte [rsp + 0xb0], dil
lea rdx, str.Clipboard
mov r9d, dword [rsp + 0x34]
lea rcx, [0x140136060]
setne dil
xor r8d, r8d
inc edi
mov dword [rsp + 0x20], edi
call fcn.1400526b0
mov rbx, rax
test rax, rax
je 0x140006fea
cmp byte [rbx + 0x23], 0
jne 0x140006fd1
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x21], 0
jl 0x140006fea
mov rcx, rbx
call fcn.140001640
movzx eax, byte [rbx + 0x21]
and al, 0xf
or al, 0x80
mov byte [rbx + 0x21], al
call fcn.140007000
jmp 0x140006727
xor eax, eax
jmp 0x140006727