Function at 0x403a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [ebp + 8]
sub esp, 0x74
push ebx
push esi
push edi
push 0x4c7378
mov dword [0x4c84a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4c8ca8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x403b77
xor ecx, ecx
mov word [0x4c8ca8], cx
mov esi, 0x4a1840
mov ebx, 1
mov dword [0x4c8eb0], esi
mov byte [esp + 0x34], 0
mov byte [esp + 0x2e], 0
mov dword [esp + 0x30], ebx
cmp dword [0x4c61a4], ebx
jle 0x403c6f
cmp byte [esp + 0x2e], 0
mov eax, dword [0x4c61ac]
mov edi, dword [eax + ebx*4]
je 0x403be9
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push 0x4a18bc
push edx
call fcn.0048da13
add esp, 0xc
cmp word [esp + 0x40], 0
mov esi, eax
je 0x403cc0
lea eax, [esp + 0x2f]
push eax
push 3
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x50]
push edx
mov ecx, 0x4ca630
call fcn.00421550
test eax, eax
jne 0x403b61
cmp byte [esp + 0x2f], al
mov ecx, dword [esp + 0x38]
setne al
lea edx, [esp + 0x40]
inc eax
push eax
push ecx
push edx
push 0x4ca630
mov ecx, esi
call fcn.004217f0
test eax, eax
je 0x403cc0
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00476f40
inc dword [esp + 0x30]
jmp 0x403c62
cmp word [0x4c8ca8], 0
je 0x403ab8
mov eax, 0x4c8ca8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b90
sub eax, edx
sar eax, 1
mov ebx, eax
lea edi, [ebx + ebx]
lea eax, [edi + 2]
call fcn.004715b0
mov esi, eax
test esi, esi
jne 0x403bcb
push 0x4c8ca8
push str.Out_of_memory.
mov ecx, 0x4ca630
call fcn.0042e460
jmp 0x403abd
test ebx, ebx
je 0x403bde
push edi
push 0x4c8ca8
push esi
call fcn.00495990
add esp, 0xc
xor edx, edx
mov word [edi + esi], dx
jmp 0x403abd
push 0x4a18c4
push edi
call fcn.0048d609
add esp, 8
test eax, eax
je 0x403c5d
push str._restart
push edi
call fcn.0048d609
add esp, 8
test eax, eax
je 0x403c5d
push 0x4a18e0
push edi
call fcn.0048d609
add esp, 8
test eax, eax
je 0x403c54
push str._force
push edi
call fcn.0048d609
add esp, 8
test eax, eax
je 0x403c54
push str._ErrorStdOut
push edi
call fcn.0048d609
add esp, 8
test eax, eax
jne 0x403c4c
mov byte [0x4cb0ff], 1
jmp 0x403c62
mov byte [esp + 0x2e], 1
dec ebx
jmp 0x403c62
mov byte [0x4c85c9], 1
jmp 0x403c62
mov byte [esp + 0x34], 1
inc ebx
cmp ebx, dword [0x4c61a4]
jl 0x403ae2
lea eax, [esp + 0x2f]
push eax
push 3
lea ecx, [esp + 0x40]
push ecx
push 0
push 0x4a1914
mov ecx, 0x4ca630
call fcn.00421550
test eax, eax
jne 0x403cb5
mov eax, dword [esp + 0x38]
xor edx, edx
cmp byte [esp + 0x2f], dl
setne dl
xor ecx, ecx
inc edx
push edx
push eax
push 0x4a1914
push 0x4ca630
call fcn.004217f0
test eax, eax
je 0x403cc0
cmp byte [eax + 0x17], 0
jne 0x403cce
mov esi, dword [eax + 0xc]
jmp 0x403cd0
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x403ce6
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
dec eax
cdq
mov dword [esi], eax
mov al, byte [esi + 0x15]
and al, 0x9b
or al, 0x18
mov dword [esi + 4], edx
mov byte [esi + 0x15], al
jns 0x403d0a
mov eax, esi
call fcn.00401160
and byte [esi + 0x15], 0x8f
jmp 0x403d2f
cmp dword [0x4c8604], 0
je 0x403d17
test al, 0x10
jne 0x403d24
cmp dword [0x4c8608], 0
je 0x403d2f
test al, 0x20
je 0x403d2f
test al, 8
je 0x403d2f
mov eax, esi
call fcn.00401160
call fcn.00403900
mov eax, dword [esp + 0x34]
push eax
push 0x4ca630
call fcn.00415740
cmp eax, 1
jne 0x403cc0
mov esi, dword [0x4c49ac]
mov ecx, 0x44
mov edi, 0x4c70d8
mov eax, 0x4ca630
rep movsd dword es:[edi], dword [esi]
call fcn.00416550
cmp eax, 0xffffffff
je 0x403cc0
test eax, eax
je 0x404001
mov eax, dword [0x4c85f4]
test eax, eax
jne 0x403dbd
mov ecx, dword [0x4c5ac0]
cmp word [ecx], ax
jne 0x403db1
cmp dword [0x4c9ea8], eax
jne 0x403db1
cmp dword [0x4c85d8], eax
jne 0x403db1
cmp dword [0x4c85dc], eax
jne 0x403db1
cmp byte [0x4c85f8], al
je 0x403e34
mov dword [0x4c85f4], 1
jmp 0x403dc2
cmp eax, 4
je 0x403e34
cmp byte [esp + 0x34], 0
jne 0x403e3f
cmp byte [0x4c85c9], 0
jne 0x403ebf
mov edx, dword [0x4cb0f8]
push edx
push 0x4a1918
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403ebf
mov eax, dword [0x4c85f4]
cmp eax, 3
je 0x404001
cmp eax, 2
je 0x403e2d
fldz
mov eax, dword [0x4cb0ec]
push 0
sub esp, 8
fstp qword [esp]
push eax
push 4
push 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.00478ae0
add esp, 0x18
cmp eax, 7
je 0x404001
mov eax, 0x407
jmp 0x403e5c
cmp byte [esp + 0x34], 0
je 0x403ebf
mov ecx, dword [0x4cb0f8]
push ecx
push 0x4a1918
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403ebf
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]
push 0x14
xor esi, esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403ebb
nop
cmp esi, 0x64
jne 0x403eab
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 4
push str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
call fcn.00478ae0
add esp, 0x18
cmp eax, 7
je 0x403cc0
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403e80
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0x4c6fc4
push 0
push 0x2000
call esi
test eax, eax
je 0x403eef
cmp dword [0x4c6fc4], 0
je 0x403eef
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ca630
call fcn.00415950
cmp eax, 1
jne 0x403cc0
push 0
push 4
push 0
call fcn.0048dbbd
add eax, 0x20
push eax
call fcn.0048dac7
mov esi, dword [0x4c48b8]
add esp, 0x10
test esi, esi
je 0x403f47
imul esi, esi, 0xd4
push esi
call fcn.0048d694
add esp, 4
mov dword [0x4c8eb8], eax
test eax, eax
je 0x403f47
push esi
push 0
push eax
call fcn.004964e0
add esp, 0xc
cmp byte [0x4cb2ba], 0
jne 0x403f6b
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], 8
mov dword [esp + 0x40], 0x1ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00409e10
lea eax, [esp + 0x2f]
push eax
push 3
lea ecx, [esp + 0x40]
push ecx
push 0
push str.Clipboard
mov ecx, 0x4ca630
mov byte [0x4cb0fc], 1
call fcn.00421550
test eax, eax
jne 0x403fbd
mov eax, dword [esp + 0x38]
xor edx, edx
cmp byte [esp + 0x2f], dl
setne dl
xor ecx, ecx
inc edx
push edx
push eax
push str.Clipboard
push 0x4ca630
call fcn.004217f0
test eax, eax
je 0x403fe3
cmp byte [eax + 0x17], 0
jne 0x403fc8
mov esi, dword [eax + 0xc]
jmp 0x403fca
mov esi, eax
test byte [esi + 0x15], 0x80
jne 0x403fe3
mov eax, esi
call fcn.00401160
mov cl, byte [esi + 0x15]
and cl, 0xf
or cl, 0x80
mov byte [esi + 0x15], cl
push 0x4ca630
call fcn.00415f20
test eax, eax
je 0x403cc0
push 0
push 0xa
call fcn.00401360
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10