Function at 0x404b00
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
push 0
call fcn.00497e17
add esp, 4
push eax
call fcn.00497d80
add esp, 4
push 8
call fcn.0048b1c4
add esp, 4
mov edi, eax
xor esi, esi
xorps xmm0, xmm0
movq qword [edi], xmm0
lea ebx, [esi + 0x19]
call fcn.00497d5f
cdq
idiv ebx
add dl, 0x61
mov byte [esi + edi], dl
inc esi
cmp esi, 7
jl 0x404b37
push 8
call fcn.0048b1c4
mov edi, eax
xorps xmm0, xmm0
add esp, 4
xor esi, esi
movq qword [edi], xmm0
call fcn.00497d5f
cdq
idiv ebx
add dl, 0x61
mov byte [esi + edi], dl
inc esi
cmp esi, 7
jl 0x404b60
push 8
call fcn.0048b1c4
mov edi, eax
xorps xmm0, xmm0
add esp, 4
xor esi, esi
movq qword [edi], xmm0
nop dword [eax]
call fcn.00497d5f
cdq
idiv ebx
add dl, 0x61
mov byte [esi + edi], dl
inc esi
cmp esi, 7
jl 0x404b90
mov eax, dword [ebp + 8]
push 0x4d16ac
mov dword [0x4d16c4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4d1460
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x404ca7
mov word [0x4d1460], ax
mov edi, 0x4ac22c
mov ebx, 1
mov dword [0x4d16a8], edi
mov byte [esp + 0x14], 0
mov edi, ebx
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], ebx
call fcn.0048f3e2
cmp dword [eax], ebx
jle 0x404d9e
nop word [eax + eax]
call fcn.0048f3e8
cmp byte [esp + 0x12], 0
mov eax, dword [eax]
mov esi, dword [eax + edi*4]
je 0x404d17
push ebx
lea eax, [esp + 0x24]
push 0x4ac2a8
push eax
call fcn.004053a0
add esp, 0xc
mov ebx, eax
cmp word [esp + 0x20], 0
je 0x405374
lea eax, [esp + 0x13]
mov ecx, 0x4d3ee0
push eax
push 3
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.00420d90
test eax, eax
jne 0x404c8b
cmp byte [esp + 0x13], al
mov ecx, 0x4d3ee0
setne al
inc eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00421000
test eax, eax
je 0x405374
push 1
push 0
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.00475930
mov ebx, dword [esp + 0x18]
inc ebx
mov dword [esp + 0x18], ebx
jmp 0x404d90
cmp word [0x4d1460], 0
je 0x404bdd
mov esi, 0x4d1460
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404cc0
sub esi, ecx
sar esi, 1
lea ebx, [esi + esi]
lea ecx, [ebx + 2]
call fcn.00470370
mov edi, eax
test edi, edi
jne 0x404cf9
push 0x4d1460
push str.Out_of_memory.
mov ecx, 0x4d3ee0
call fcn.0042d580
jmp 0x404be2
test esi, esi
je 0x404d0c
push ebx
push 0x4d1460
push edi
call fcn.0048ea30
add esp, 0xc
xor eax, eax
mov word [ebx + edi], ax
jmp 0x404be2
push 0x4ac2b0
push esi
call fcn.0048f253
add esp, 8
test eax, eax
je 0x404d8b
push str._restart
push esi
call fcn.0048f253
add esp, 8
test eax, eax
je 0x404d8b
push 0x4ac2cc
push esi
call fcn.0048f253
add esp, 8
test eax, eax
je 0x404d82
push str._force
push esi
call fcn.0048f253
add esp, 8
test eax, eax
je 0x404d82
push str._ErrorStdOut
push esi
call fcn.0048f253
add esp, 8
test eax, eax
jne 0x404d7a
mov byte [0x4d49af], 1
jmp 0x404d90
mov byte [esp + 0x12], 1
dec edi
jmp 0x404d90
mov byte [0x4d1699], 1
jmp 0x404d90
mov byte [esp + 0x14], 1
inc edi
call fcn.0048f3e2
cmp edi, dword [eax]
jl 0x404c10
lea eax, [esp + 0x13]
mov ecx, 0x4d3ee0
push eax
push 3
lea eax, [esp + 0x24]
push eax
push 0
push 0x4ac300
call fcn.00420d90
mov ecx, eax
test ecx, ecx
jne 0x404de8
cmp byte [esp + 0x13], al
setne al
inc eax
push eax
push dword [esp + 0x20]
push ecx
push 0x4ac300
mov ecx, 0x4d3ee0
call fcn.00421000
mov ecx, eax
test ecx, ecx
je 0x405374
push 0x18
lea eax, [ebx - 1]
cdq
push edx
push eax
call fcn.00401ac0
mov ecx, dword [0x4ce8c8]
call fcn.00401990
push dword [esp + 0x14]
mov dword [ecx + 0xd4], 0
mov dword [ecx + 0x20], 1
sub esp, 8
mov dword [ecx + 0xe9], 0x1010001
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0xd8], 5
mov dword [ecx + 0xe0], 0
mov word [ecx + 0xed], 1
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], SysStringLen
mov dword [ecx + 0x40], SysStringLen
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x50], 0x2af8
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x54], 0x64
mov dword [ecx + 0x58], 0x14
mov dword [ecx + 0x5c], 0xa
mov dword [ecx + 0x60], 0xffffffff
mov dword [ecx + 0x64], 0xffffffff
mov dword [ecx + 0x68], 0xffffffff
mov dword [ecx + 0x6c], 0xa
mov dword [ecx + 0x70], 0xffffffff
mov byte [ecx + 0xef], 2
mov dword [ecx + 0xf0], 0x1000000
mov byte [ecx + 0xf4], 1
movq xmm0, qword [str._0.6f]
movq qword [ecx + 0x74], xmm0
mov eax, dword [0x4ac2a4]
mov dword [ecx + 0x7c], eax
mov word [ecx + 0xf5], 0x44
mov byte [ecx + 0xf9], 1
mov dword [ecx + 0xfc], 0
mov ecx, 0x4d3ee0
call fcn.00415550
cmp eax, 1
jne 0x405374
mov esi, dword [0x4ce8c8]
mov ecx, 0x44
mov edi, 0x4d1340
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x4d3ee0
call fcn.004162f0
cmp eax, 0xffffffff
je 0x405374
test eax, eax
je 0x405369
mov eax, dword [0x4d16a4]
test eax, eax
jne 0x404f91
cmp word [0x4d30f4], ax
jne 0x404f83
cmp dword [0x4d2148], eax
jne 0x404f83
cmp dword [0x4d16a0], eax
jne 0x404f83
cmp dword [0x4d169c], eax
jne 0x404f83
cmp byte [0x4d1698], al
je 0x404f8d
mov eax, 1
mov dword [0x4d16a4], eax
test eax, eax
je 0x405002
cmp eax, 4
je 0x405002
cmp byte [esp + 0x14], 0
jne 0x405009
cmp byte [0x4d1699], 0
jne 0x405080
push dword [0x4d49a8]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x405080
mov eax, dword [0x4d16a4]
cmp eax, 3
je 0x405369
cmp eax, 2
je 0x404ffb
push 0
push dword [0x4d499c]
xorps xmm3, xmm3
mov edx, 4
mov ecx, 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.
call fcn.00477540
add esp, 8
cmp eax, 7
je 0x405369
mov eax, 0x407
jmp 0x405022
cmp byte [esp + 0x14], 0
je 0x405080
push dword [0x4d49a8]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x405080
mov eax, 0x406
push 0
push eax
push 0x44
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0x14
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40507c
cmp esi, 0x64
jne 0x40506c
push 0
push 0
xorps xmm3, xmm3
lea edx, [esi - 0x60]
mov ecx, str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
call fcn.00477540
add esp, 8
cmp eax, 7
je 0x405374
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405045
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0x4d17e8
push 0
push 0x2000
call esi
test eax, eax
je 0x4050b0
cmp dword [0x4d17e8], 0
je 0x4050b0
push 2
push 0
push 0
push 0x2001
call esi
mov ecx, 0x4d3ee0
call fcn.004158d0
cmp eax, 1
jne 0x405374
push 0
push 4
push 0
push eax
call fcn.004912b2
add esp, 4
push eax
call fcn.00491166
mov eax, dword [0x4ce8cc]
add esp, 0x10
test eax, eax
je 0x405112
imul eax, eax, 0xd4
push eax
call fcn.0048f3be
add esp, 4
mov dword [0x4d1694], eax
test eax, eax
je 0x405112
imul ecx, dword [0x4ce8cc], 0xd4
push ecx
push 0
push eax
call fcn.0048ce40
add esp, 0xc
call fcn.0040b1b0
lea eax, [esp + 0x13]
mov byte [0x4d49ac], 1
push eax
push 3
lea eax, [esp + 0x24]
mov ecx, 0x4d3ee0
push eax
push 0
push str.Clipboard
call fcn.00420d90
mov esi, eax
test esi, esi
jne 0x405164
cmp byte [esp + 0x13], al
mov ecx, 0x4d3ee0
setne al
inc eax
push eax
push dword [esp + 0x20]
push esi
push str.Clipboard
call fcn.00421000
mov esi, eax
test esi, esi
je 0x405184
cmp byte [esi + 0x17], 0
jne 0x40516d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x15], 0
jl 0x405184
mov ecx, esi
call fcn.00401b40
mov al, byte [esi + 0x15]
and al, 0xf
or al, 0x80
mov byte [esi + 0x15], al
mov eax, dword [0x4ce8c4]
add eax, 4
imul eax, eax, 0x110
push eax
call fcn.0048f3be
add esp, 4
mov dword [0x4d133c], eax
test eax, eax
je 0x405374
mov esi, dword [0x4ce8c8]
mov edi, eax
push 0x404aa0
push 0x4ef6d80
push 0xe
push dword [0x4d1684]
mov ecx, 0x44
mov dword [0x4ce8c8], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
call edi
cmp dword [0x4d3ee0], 0
jne 0x4051e9
mov ebx, 1
jmp 0x40529a
mov eax, dword [0x4ce8c8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xec], 0
call esi
cmp byte [0x4d1339], 0
mov ecx, dword [0x4ce8c8]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x405236
push 0x404a00
push 0x64
push 0xb
push dword [0x4d1684]
call edi
test eax, eax
setne byte [0x4d1339]
mov byte [0x4d49ad], 1
call esi
mov ecx, dword [0x4d3ee0]
inc dword [0x4d1670]
push 0
push 0
push 1
mov dword [0x4d49c4], eax
mov dword [0x4d49c0], eax
call fcn.00423dc0
dec dword [0x4d1670]
mov ebx, eax
cmp byte [0x4d1339], 0
je 0x405293
push 0xb
push dword [0x4d1684]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4d1339]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4d1339], cl
mov byte [0x4d49ad], 0
mov eax, dword [0x4ce8c8]
cmp dword [eax + 0x100], 0
lea ecx, [eax + 0x100]
je 0x4052c0
mov edx, dword [eax + 0x104]
call fcn.0042d770
mov ebx, eax
mov eax, dword [0x4ce8c8]
mov ecx, eax
call fcn.00401990
push 1
push 0
mov byte [eax + 0xec], 1
mov esi, eax
mov ecx, 0x44
mov edi, 0x4d1340
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4d166c]
push 0xffffffffffffffff
push 0x4ac300
mov word [eax + 0xec], 0x101
mov dword [eax + 0xe0], 0
mov byte [eax + 0xee], 0
mov dword [eax + 0x2c], SysStringLen
call fcn.00475930
cmp word [0x4d30f4], 0
jne 0x40535f
cmp dword [0x4d2148], 0
jne 0x40535f
cmp dword [0x4d16a0], 0
jne 0x40535f
cmp dword [0x4d169c], 0
jne 0x40535f
cmp byte [0x4d1698], 0
jne 0x40535f
push 0
test ebx, ebx
mov edx, 2
mov eax, 9
mov ecx, 0x4d3ee0
push 0
cmove eax, edx
push eax
call fcn.00415ef0
xor edx, edx
lea ecx, [edx + 0xa]
call fcn.00401e60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x10