Function at 0x402270
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
push 0x45de58
push 0x104
mov dword [0x45d6e0], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
test eax, eax
jne 0x402295
mov byte [0x45de58], al
push ebx
push esi
push edi
push 0x45de58
call fcn.0043c030
mov ecx, dword [0x4632a8]
mov dword [0x45df5c], eax
mov eax, dword [0x4632a4]
mov edx, dword [ecx]
mov esi, 1
add esp, 4
xor bl, bl
cmp eax, esi
mov byte [esp + 0x34], 0
mov dword [esp + 0xc], edx
mov edi, esi
jle 0x4023d4
test bl, bl
je 0x402320
push edi
push 0x44f694
lea eax, [esp + 0x18]
push 0x20
push eax
call fcn.0043c2b0
add esp, 0x10
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x45ebb8
call fcn.00415ab0
test eax, eax
je 0x4024bd
mov edx, dword [0x4632a8]
mov ecx, dword [edx + esi*4]
push 0
push 0xffffffffffffffff
push ecx
mov ecx, eax
call fcn.0043e8a0
inc edi
jmp 0x4023c6
mov edx, dword [0x4632a8]
mov eax, dword [edx + esi*4]
push 0x44f690
push eax
call fcn.0044e5aa
add esp, 8
test eax, eax
je 0x4023c1
mov ecx, dword [0x4632a8]
mov edx, dword [ecx + esi*4]
push str._restart
push edx
call fcn.0044e5aa
add esp, 8
test eax, eax
je 0x4023c1
mov eax, dword [0x4632a8]
mov ecx, dword [eax + esi*4]
push 0x44f680
push ecx
call fcn.0044e5aa
add esp, 8
test eax, eax
je 0x4023b8
mov edx, dword [0x4632a8]
mov eax, dword [edx + esi*4]
push str._force
push eax
call fcn.0044e5aa
add esp, 8
test eax, eax
je 0x4023b8
mov ecx, dword [0x4632a8]
mov edx, dword [ecx + esi*4]
push str._ErrorStdOut
push edx
call fcn.0044e5aa
add esp, 8
test eax, eax
jne 0x4023b3
mov byte [0x45ef18], 1
jmp 0x4023c6
mov bl, 1
dec esi
jmp 0x4023c6
mov byte [0x45d808], 1
jmp 0x4023c6
mov byte [esp + 0x34], 1
mov eax, dword [0x4632a4]
inc esi
cmp esi, eax
jl 0x4022d1
push ebp
xor ebp, ebp
push ebp
push ebp
push 0x44f664
mov ecx, 0x45ebb8
call fcn.00415ab0
cmp eax, ebp
je 0x402704
dec edi
push edi
mov ecx, eax
call fcn.0043fa40
push 0x45d5f8
call fcn.004021e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add esp, 4
push eax
push ecx
mov ecx, 0x45ebb8
call fcn.00410520
cmp eax, 1
jne 0x402704
mov ecx, 0x3a
mov esi, 0x45d5f8
mov edi, 0x45d400
rep movsd dword es:[edi], dword [esi]
call fcn.0040a600
call fcn.0040a850
push 0x1220
call fcn.0043bf80
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [0x45eb68], edi
je 0x4026e5
xor eax, eax
mov ecx, 0x488
rep stosd dword es:[edi], eax
mov ecx, 0x45ebb8
call fcn.00426bd0
cmp eax, 0xffffffff
je 0x402704
cmp eax, ebp
je 0x4026d9
mov eax, dword [0x45d80c]
cmp eax, ebp
jne 0x4024cb
mov edx, dword [0x45c5a0]
cmp word [edx], bp
jne 0x4024b1
cmp dword [0x45fc9c], ebp
jne 0x4024b1
mov al, byte [0x45f183]
test al, al
jne 0x4024b1
mov al, byte [0x45d810]
test al, al
je 0x402545
mov dword [0x45d80c], 1
jmp 0x4024d0
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x24
ret 0x10
cmp eax, 4
je 0x402545
mov al, byte [esp + 0x38]
test al, al
jne 0x402551
mov al, byte [0x45d808]
test al, al
jne 0x4025d1
mov eax, dword [0x45ef10]
push eax
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, ebp
je 0x4025d1
mov eax, dword [0x45d80c]
cmp eax, 3
je 0x4026d9
cmp eax, 2
je 0x40253e
fld qword [0x44f650]
mov ecx, dword [0x45ef04]
sub esp, 8
fstp qword [esp]
push ecx
push 4
push str.An_older_instance_of_this_SingleInstance_script_is_already_running.__Replace_it_with_this_instance_
call fcn.00440460
add esp, 0x14
cmp eax, 7
je 0x4026d9
mov eax, 0x407
jmp 0x40256e
mov al, byte [esp + 0x38]
test al, al
je 0x4025d1
mov edx, dword [0x45ef10]
push edx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, ebp
je 0x4025d1
mov eax, 0x406
push ebp
push eax
push 0x44
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
xor esi, esi
call ebp
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push edi
call ebx
test eax, eax
je 0x4025cb
cmp esi, 0x64
jne 0x4025bf
fld qword [0x44f650]
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.00440460
add esp, 0x14
cmp eax, 7
je 0x402704
xor esi, esi
push 0x14
inc esi
call ebp
push edi
call ebx
test eax, eax
jne 0x402592
push 0x64
call ebp
xor ebp, ebp
call fcn.00440920
mov ecx, 0x45ebb8
call fcn.00415820
cmp eax, 1
jne 0x402704
call fcn.00408d10
cmp dword [0x45fc94], ebp
mov byte [0x45ef14], 1
je 0x402637
mov al, byte [0x45d813]
test al, al
jne 0x402637
mov eax, dword [0x45d6e8]
push ebp
push 0xa
push 9
push eax
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne al
test al, al
mov byte [0x45d813], al
jne 0x402637
push ebp
push 0x44f56c
push 1
mov ecx, 0x45ebb8
call fcn.0041e040
mov ecx, 0x45ebb8
call fcn.0041f2c0
mov ecx, dword [0x45c5a0]
cmp word [ecx], bp
jne 0x40267f
cmp dword [0x45fc9c], ebp
jne 0x40267f
mov cl, byte [0x45f183]
test cl, cl
jne 0x40267f
mov cl, byte [0x45d810]
test cl, cl
jne 0x40267f
neg eax
sbb eax, eax
push ebp
and eax, 7
push ebp
add eax, 2
push eax
mov ecx, 0x45ebb8
call fcn.0041e040
push ebp
mov byte [0x45d64e], 0
mov dword [0x45d6d0], ebp
mov dword [0x45d6d4], ebp
mov byte [0x45d6d8], 0
mov dword [0x45d610], ebp
mov ecx, 0x3a
mov esi, 0x45d5f8
mov edi, 0x45d400
push 0xffffffffffffffff
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x45de54]
push 0x44f664
call fcn.0043e8a0
push 1
push 0xa
mov dword [0x45d614], 0x80000000
call fcn.00401650
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret 0x10
fld qword [0x44f650]
sub esp, 8
fstp qword [esp]
push ebp
push 0x10000
push str.Out_of_memory_for_key_history.
call fcn.00440460
add esp, 0x14
pop ebp
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x24
ret 0x10