Function at 0x140006210
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, [0x140120550]
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
lea rcx, [0x1401607e0]
mov qword [0x140160808], rbx
mov qword [0x140160810], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1401607b8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ecx, ecx
call fcn.14007a190
mov rax, qword [0x14015e420]
lea rcx, [0x14012046c]
test rax, rax
je 0x14000629e
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
mov rdx, 0xffffffffffffffff
call fcn.1400cd6a0
xor edi, edi
mov qword [0x1401607b0], 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 fcn.1400f77f0
mov ebp, r13d
mov r15d, dword [rax]
call fcn.1400f77f0
cmp dword [rax], r13d
jle 0x14000673f
lea r14d, [rdi + 8]
nop word [rax + rax]
call fcn.1400f77f8
mov rcx, qword [rax]
mov rbx, qword [r14 + rcx]
test sil, sil
je 0x1400063b0
mov r8d, r13d
lea rdx, [0x140120668]
lea rcx, [rsp + 0x40]
call fcn.1400071a0
movsxd rsi, eax
cmp word [rsp + 0x40], di
je 0x140006506
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, [0x140163cc0]
call fcn.1400506d0
test rax, rax
jne 0x140006389
cmp byte [rsp + 0x30], dil
lea rdx, [rsp + 0x40]
mov r9d, dword [rsp + 0x34]
lea rcx, [0x140163cc0]
mov eax, edi
mov r8, rsi
setne al
inc eax
mov dword [rsp + 0x20], eax
call fcn.140050c00
test rax, rax
je 0x140006506
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rdx, rbx
mov rcx, rax
lea r8, [r9 - 1]
call fcn.1400d5e90
movzx esi, byte [rsp + 0xb0]
inc r13d
jmp 0x140006727
lea rdx, [0x140120670]
mov rcx, rbx
call fcn.1400f55a0
test eax, eax
je 0x140006724
lea rdx, str._restart
mov rcx, rbx
call fcn.1400f55a0
test eax, eax
je 0x140006724
lea rdx, [0x14012068c]
mov rcx, rbx
call fcn.1400f55a0
test eax, eax
je 0x14000671b
lea rdx, str._force
mov rcx, rbx
call fcn.1400f55a0
test eax, eax
je 0x14000671b
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, str._ErrorStdOut
mov rcx, rbx
call fcn.1400f7630
test eax, eax
jne 0x14000644a
cmp word [rbx + 0x18], 0x3d
lea rcx, [rbx + 0x1a]
je 0x140006433
mov rcx, rdi
mov byte [0x1401648a3], 1
call fcn.1400360d0
mov dword [0x1401648a4], eax
jmp 0x140006727
lea rdx, str._iLib
mov rcx, rbx
call fcn.1400f55a0
test eax, eax
jne 0x14000652c
inc ebp
add r14, 8
call fcn.1400f77f0
cmp ebp, dword [rax]
jge 0x140006506
mov ecx, 0x48
call fcn.1400eec64
mov ecx, dword [0x140164b18]
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 0x1400064c1
lea rdx, [rbx + 0x18]
mov dword [rbx + 0x14], ecx
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1400064c1
mov byte [rbx + 0x1e], dil
lea rax, vtable.TextFile.0
mov qword [rbx + 0x40], 0xffffffffffffffff
mov qword [rbx], rax
mov qword [0x1401648a8], rbx
call fcn.1400f77f8
mov r9d, 0xfde9
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnlock
mov rcx, qword [rax]
mov rdx, qword [r14 + rcx]
mov rcx, qword [0x1401648a8]
call fcn.1400cde20
test al, al
jne 0x140006727
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, [0x1401206d4]
mov rcx, rbx
call fcn.1400f55a0
test eax, eax
je 0x140006712
lea rdx, str._Execute
mov rcx, rbx
call fcn.1400f55a0
test eax, eax
je 0x140006712
mov r8d, 3
lea rdx, [0x1401206f8]
mov rcx, rbx
call fcn.1400f7630
test eax, eax
jne 0x140006601
add rbx, 6
mov rcx, rbx
nop
movzx eax, word [rcx]
cmp ax, 0x20
je 0x14000658f
cmp ax, 9
jne 0x140006595
add rcx, 2
jmp 0x140006580
test ax, ax
je 0x1400065ee
cmp ax, 0x2d
je 0x1400065a6
cmp ax, 0x2b
jne 0x1400065b0
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x1400065ee
movzx eax, word [rcx + 2]
mov edx, 0xffdf
sub ax, 0x58
test dx, ax
jne 0x1400065ee
movzx ecx, word [rcx + 4]
call fcn.1400f57c0
test eax, eax
je 0x1400065ee
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1400f6ec0
mov dword [0x14016079c], eax
jmp 0x140006727
mov rcx, rbx
call fcn.1400f745c
mov dword [0x14016079c], eax
jmp 0x140006727
cmp qword [0x14015e390], 0xffffffffffffffff
jne 0x1400066e7
mov r8d, 6
lea rdx, str._Debug
mov rcx, rbx
call fcn.1400f7630
test eax, eax
jne 0x1400066e7
movzx eax, word [rbx + 0xc]
test ax, ax
je 0x1400066bf
cmp ax, 0x3d
jne 0x1400066e7
add rbx, 0xe
mov edx, 0x3a
mov rcx, rbx
call fcn.1400f0974
lea rdx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov rsi, rax
mov rcx, rbx
test rax, rax
je 0x140006697
mov r8, rax
sub r8, rbx
sar r8, 1
call fcn.1400cdb30
lea rcx, [rsi + 2]
mov r8d, 0xffffffff
lea rdx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.1400cdb30
movzx esi, byte [rsp + 0xb0]
jmp 0x140006727
mov r8d, 0xffffffff
call fcn.1400cdb30
lea rdx, str.9000
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140006ed0
movzx esi, byte [rsp + 0xb0]
jmp 0x140006727
lea rdx, str.127.0.0.1
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140006ed0
lea rdx, str.9000
lea rcx, vtable.CKuStringT_char__class_CKuStringUtilA_.0
call fcn.140006ed0
jmp 0x140006727
cmp qword [0x140160810], rdi
mov sil, 1
mov byte [rsp + 0xb0], sil
jne 0x140006706
mov qword [rsp + 0x38], rbx
lea r15d, [rbp + 1]
jmp 0x140006727
dec ebp
sub r14, 8
lea r15d, [rbp + 1]
jmp 0x140006727
mov qword [0x140160810], rdi
jmp 0x140006727
mov byte [0x140160776], 1
jmp 0x140006727
mov r12b, 1
inc ebp
add r14, 8
call fcn.1400f77f0
cmp ebp, dword [rax]
jl 0x1400062f0
mov r14, qword [rsp + 0x38]
lea rax, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rdx, [0x14012054c]
mov dword [rsp + 0x20], 3
lea rcx, [0x140163cc0]
call fcn.1400506d0
mov rcx, rax
test rax, rax
jne 0x1400067b1
cmp byte [rsp + 0xb0], dil
lea rdx, [0x14012054c]
mov r9d, dword [rsp + 0x34]
lea rcx, [0x140163cc0]
mov eax, edi
setne al
xor r8d, r8d
inc eax
mov dword [rsp + 0x20], eax
call fcn.140050c00
mov rcx, rax
test rax, rax
je 0x140006506
lea eax, [r13 - 1]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, eax
call fcn.140001570
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, [0x140163cc0]
call fcn.1400506d0
mov rsi, rax
test rax, rax
jne 0x140006839
cmp byte [rsp + 0xb0], dil
lea r8d, [rsi + 6]
mov r9d, dword [rsp + 0x34]
lea rdx, str.A_Args
mov eax, edi
lea rcx, [0x140163cc0]
setne al
add eax, 0xc1
mov dword [rsp + 0x20], eax
call fcn.140050c00
mov rsi, rax
test rax, rax
je 0x140006506
call fcn.1400f77f0
mov ebx, dword [rax]
sub ebx, r15d
call fcn.1400f77f8
movsxd r8, r15d
mov edx, ebx
mov rax, qword [rax]
lea rcx, [rax + r8*8]
call fcn.1400bf040
test rax, rax
je 0x140006506
mov rdx, rax
mov rcx, rsi
call fcn.1400d63d0
cmp dword [0x140160574], edi
mov rcx, qword [0x14015bc10]
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 [0x140120a18]
mov dword [rcx + 0x9c], eax
mov word [rcx + 0x135], 0x44
mov byte [rcx + 0x139], 1
mov dword [rcx + 0x13c], edi
je 0x140006e3d
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 [0x1401607a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r9d, r12b
lea rcx, [0x140163cc0]
mov r8, r14
mov qword [0x1401607a0], rax
call fcn.140036d90
cmp eax, 1
jne 0x140006506
mov rax, qword [0x14015bc10]
lea rcx, [0x1401605d0]
mov edx, 2
nop dword [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 0x140006a30
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, [0x140163cc0]
call fcn.1400392c0
cmp eax, 0xffffffff
jne 0x140006afb
mov rbx, qword [0x1401648a8]
test rbx, rbx
je 0x140006506
mov r8d, dword [rbx + 0xc]
test r8d, r8d
je 0x140006ae9
cmp qword [rbx + 0x30], rdi
jne 0x140006ae9
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 0x140006506
test eax, eax
je 0x140006e3d
mov eax, dword [0x140160798]
test eax, eax
jne 0x140006b49
cmp word [0x14016179c], di
jne 0x140006b3d
cmp dword [0x140161780], edi
jne 0x140006b3d
cmp qword [0x140160790], rdi
jne 0x140006b3d
cmp qword [0x140160788], rdi
jne 0x140006b3d
cmp byte [0x140160775], dil
je 0x140006bc5
mov dword [0x140160798], 1
jmp 0x140006b4e
cmp eax, 4
je 0x140006bc5
test r12b, r12b
jne 0x140006bce
cmp byte [0x140160776], dil
jne 0x140006c6f
mov rdx, qword [0x140164898]
mov rcx, qword [str.AutoHotkey]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x140006c6f
mov eax, dword [0x140160798]
cmp eax, 3
je 0x140006e3d
cmp eax, 2
je 0x140006bbd
mov r8, qword [0x140164880]
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.1400d8410
cmp eax, 7
je 0x140006e3d
mov r8d, 0x407
jmp 0x140006bf4
test r12b, r12b
je 0x140006c6f
mov rdx, qword [0x140164898]
mov rcx, qword [str.AutoHotkey]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x140006c6f
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 0x140006c64
nop
cmp ebx, 0x64
jne 0x140006c4a
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.1400d8410
cmp eax, 7
je 0x140006506
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 0x140006c20
mov ecx, WSAAsyncSelect
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8, [0x14016087c]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x140006ca8
cmp dword [0x14016087c], edi
je 0x140006ca8
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, [0x140163cc0]
call fcn.140037740
cmp eax, 1
jne 0x140006506
mov ecx, eax
call fcn.1400fc2cc
xor r9d, r9d
mov rcx, rax
xor edx, edx
lea r8d, [r9 + 4]
call fcn.1400fc074
movsxd rax, dword [0x14015bc0c]
test eax, eax
je 0x140006d10
imul rcx, rax, 0xd4
call fcn.1400f75c0
mov qword [0x140160780], rax
test rax, rax
je 0x140006d10
movsxd rcx, dword [0x14015bc0c]
xor edx, edx
imul r8, rcx, 0xd4
mov rcx, rax
call fcn.1400f1130
mov rcx, qword [0x14015e348]
test rcx, rcx
je 0x140006d7a
cmp qword [rcx + 0x10], rdi
je 0x140006d7a
mov rax, qword [0x14015e360]
lea rdx, [0x140120a0e]
mov r8, rdx
test rax, rax
je 0x140006d42
mov rax, qword [rax]
test rax, rax
cmovne r8, rax
mov rax, qword [rcx]
test rax, rax
cmovne rdx, rax
call fcn.14000d110
test eax, eax
jne 0x140006d7a
cmp dword [0x14015e3e0], 2
je 0x140006d7a
lea rcx, [0x14015e370]
call fcn.140008790
test eax, eax
jne 0x140006d7a
lea rcx, [0x14015e370]
call fcn.1400088c0
lea rdx, [0x1400d5220]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140160778], rax
call fcn.1400178e0
lea rax, [rsp + 0xb0]
mov byte [0x1401648a0], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov dword [rsp + 0x20], 3
lea rdx, str.Clipboard
mov byte [0x140160774], dil
lea rcx, [0x140163cc0]
call fcn.1400506d0
mov rbx, rax
test rax, rax
jne 0x140006e10
cmp byte [rsp + 0xb0], dil
lea rdx, str.Clipboard
mov r9d, dword [rsp + 0x34]
lea rcx, [0x140163cc0]
setne dil
xor r8d, r8d
inc edi
mov dword [rsp + 0x20], edi
call fcn.140050c00
mov rbx, rax
test rax, rax
je 0x140006e33
cmp byte [rbx + 0x23], 0
jne 0x140006e1a
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x21], 0
jl 0x140006e33
mov rcx, rbx
call fcn.140001610
movzx eax, byte [rbx + 0x21]
and al, 0xf
or al, 0x80
mov byte [rbx + 0x21], al
call fcn.140006e50
jmp 0x14000650b
xor eax, eax
jmp 0x14000650b