Function at 0x4034b0
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 0x4bfbf0
mov dword [0x4c0d14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4c1690
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4035b4
xor ecx, ecx
mov word [0x4c1690], cx
mov esi, 0x4a5c64
mov ebx, 1
mov dword [0x4c168c], esi
mov byte [esp + 0x34], 0
mov byte [esp + 0x2e], 0
mov dword [esp + 0x30], 1
cmp dword [0x4bea48], ebx
jle 0x4036af
mov edi, edi
cmp byte [esp + 0x2e], 0
mov eax, dword [0x4bea50]
mov esi, dword [eax + ebx*4]
je 0x403629
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push 0x49c0e0
push edx
call fcn.004821e3
add esp, 0xc
cmp word [esp + 0x40], 0
mov edi, eax
je 0x4036fd
lea eax, [esp + 0x2f]
push eax
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push edi
lea edx, [esp + 0x54]
push edx
mov ecx, 0x4c3000
call fcn.0041e310
test eax, eax
jne 0x40359d
movzx eax, byte [esp + 0x2f]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push edi
lea edx, [esp + 0x4c]
push edx
mov ecx, 0x4c3000
call fcn.0041e680
test eax, eax
je 0x4036fd
push 1
push 0
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.004698a0
inc dword [esp + 0x30]
jmp 0x4036a2
cmp word [0x4c1690], 0
je 0x4034f0
mov eax, 0x4c1690
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4035d0
sub eax, edx
sar eax, 1
mov ebx, eax
lea edi, [ebx + ebx]
lea eax, [edi + 2]
call fcn.00464590
mov esi, eax
test esi, esi
jne 0x40360b
push 0x4c1690
push str.Out_of_memory.
mov ecx, 0x4c3000
call fcn.0042b900
jmp 0x4034f5
test ebx, ebx
je 0x40361e
push edi
push 0x4c1690
push esi
call fcn.00485e70
add esp, 0xc
xor edx, edx
mov word [edi + esi], dx
jmp 0x4034f5
push 0x49c0e8
push esi
call fcn.00481dd9
add esp, 8
test eax, eax
je 0x40369d
push str._restart
push esi
call fcn.00481dd9
add esp, 8
test eax, eax
je 0x40369d
push 0x49c104
push esi
call fcn.00481dd9
add esp, 8
test eax, eax
je 0x403694
push str._force
push esi
call fcn.00481dd9
add esp, 8
test eax, eax
je 0x403694
push str._ErrorStdOut
push esi
call fcn.00481dd9
add esp, 8
test eax, eax
jne 0x40368c
mov byte [0x4c3898], 1
jmp 0x4036a2
mov byte [esp + 0x2e], 1
dec ebx
jmp 0x4036a2
mov byte [0x4c0d3d], 1
jmp 0x4036a2
mov byte [esp + 0x34], 1
inc ebx
cmp ebx, dword [0x4bea48]
jl 0x403520
lea eax, [esp + 0x2f]
push eax
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x49c138
mov ecx, 0x4c3000
call fcn.0041e310
test eax, eax
jne 0x4036f2
movzx edx, byte [esp + 0x2f]
mov eax, dword [esp + 0x38]
push edx
push eax
push 0
push 0x49c138
mov ecx, 0x4c3000
call fcn.0041e680
test eax, eax
je 0x4036fd
cmp byte [eax + 0x17], 0
jne 0x40370b
mov esi, dword [eax + 0xc]
jmp 0x40370d
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 0x403723
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, 0x9f
or al, 0x18
mov dword [esi + 4], edx
mov byte [esi + 0x15], al
jns 0x403747
mov eax, esi
call fcn.00401160
and byte [esi + 0x15], 0x8f
jmp 0x40376c
cmp dword [0x4c0e68], 0
je 0x403754
test al, 0x10
jne 0x403761
cmp dword [0x4c0e6c], 0
je 0x40376c
test al, 0x20
je 0x40376c
test al, 8
je 0x40376c
mov eax, esi
call fcn.00401160
call fcn.00403340
mov eax, dword [esp + 0x34]
push eax
push 0x4c3000
call fcn.00414750
cmp eax, 1
jne 0x4036fd
mov esi, dword [0x4bd4c4]
mov ecx, 0x3e
mov edi, 0x4bf970
mov eax, 0x4c3000
rep movsd dword es:[edi], dword [esi]
call fcn.004154e0
cmp eax, 0xffffffff
je 0x4036fd
test eax, eax
je 0x403a55
mov eax, dword [0x4c0e58]
test eax, eax
jne 0x4037fa
mov ecx, dword [0x4be5dc]
cmp word [ecx], ax
jne 0x4037ee
cmp dword [0x4c2890], eax
jne 0x4037ee
cmp dword [0x4c0e4c], eax
jne 0x4037ee
cmp dword [0x4c0e50], eax
jne 0x4037ee
cmp byte [0x4c0d3f], al
je 0x403871
mov dword [0x4c0e58], 1
jmp 0x4037ff
cmp eax, 4
je 0x403871
cmp byte [esp + 0x34], 0
jne 0x403878
cmp byte [0x4c0d3d], 0
jne 0x4038f7
mov edx, dword [0x4c3890]
push edx
push 0x49c13c
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4038f7
mov eax, dword [0x4c0e58]
cmp eax, 3
je 0x403a55
cmp eax, 2
je 0x40386a
fldz
mov eax, dword [0x4c3884]
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.0046b2c0
add esp, 0x18
cmp eax, 7
je 0x403a55
mov eax, 0x407
jmp 0x403895
cmp byte [esp + 0x34], 0
je 0x4038f7
mov ecx, dword [0x4c3890]
push ecx
push 0x49c13c
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4038f7
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 0x4038f3
cmp esi, 0x64
jne 0x4038e3
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.0046b2c0
add esp, 0x18
cmp eax, 7
je 0x4036fd
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4038b8
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0x4bf874
push 0
push 0x2000
call esi
test eax, eax
je 0x403927
cmp dword [0x4bf874], 0
je 0x403927
push 2
push 0
push 0
push 0x2001
call esi
push 0x4c3000
call fcn.00414a60
cmp eax, 1
jne 0x4036fd
push 0
push 4
push 0
call fcn.00482378
add eax, 0x20
push eax
call fcn.00482282
mov esi, dword [0x4bd3c4]
add esp, 0x10
test esi, esi
je 0x40397f
imul esi, esi, 0xd4
push esi
call fcn.00481e64
add esp, 4
mov dword [0x4c189c], eax
test eax, eax
je 0x40397f
push esi
push 0
push eax
call fcn.0048bac0
add esp, 0xc
cmp byte [0x4c3c1b], 0
jne 0x4039c2
push str.InitCommonControlsEx
push str.comctl32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4039bc
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], 8
mov dword [esp + 0x40], 0x1ff
call eax
jmp 0x4039c2
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00409440
lea eax, [esp + 0x2f]
push eax
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
push str.Clipboard
mov ecx, 0x4c3000
mov byte [0x4c3894], 1
call fcn.0041e310
test eax, eax
jne 0x403a11
movzx edx, byte [esp + 0x2f]
mov eax, dword [esp + 0x38]
push edx
push eax
push 0
push str.Clipboard
mov ecx, 0x4c3000
call fcn.0041e680
test eax, eax
je 0x403a37
cmp byte [eax + 0x17], 0
jne 0x403a1c
mov esi, dword [eax + 0xc]
jmp 0x403a1e
mov esi, eax
test byte [esi + 0x15], 0x80
jne 0x403a37
mov eax, esi
call fcn.00401160
mov cl, byte [esi + 0x15]
and cl, 0xf
or cl, 0x80
mov byte [esi + 0x15], cl
push 0x4c3000
call fcn.00414f70
test eax, eax
je 0x4036fd
push 0
push 0xa
call fcn.00401350
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10