Function at 0x430870
Capabilities:
Check for foreground window switch
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be48f
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x633ef8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.0042e600
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x13c], eax
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x4308cd
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 1
lea esi, [edi + 0x84]
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x40
or eax, ecx
jge 0x430902
push 0x40
mov ecx, esi
call fcn.004165b0
mov ecx, dword [esi]
lea edx, [ebp - 0x11c]
call fcn.00435280
mov ecx, dword [esi]
mov ebx, eax
test ecx, ecx
je 0x43092d
push dword [ecx - 8]
push ecx
call fcn.0059ea3d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x430c85
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x430c85
push dword [ebp - 0x13c]
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
mov byte [ecx + eax], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
sete byte [ebp - 0x12d]
cmp byte [ebp + 8], 0
je 0x430965
mov ecx, edi
call fcn.00430c90
jmp 0x43097e
push ecx
mov ecx, esp
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x134], ecx
call fcn.004163d0
mov ecx, edi
call fcn.00431140
test ebx, ebx
je 0x430c24
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 4
push eax
lea eax, [ebp - 0x118]
xor ebx, ebx
push eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], ebx
push eax
push dword [edi + 0x48]
push dword [edi + 0x44]
push SysReAllocStringLen
call dword [0x641014]
test eax, eax
jne 0x4309d6
cmp dword [ebp - 0x118], ebx
mov eax, 1
cmove ebx, eax
mov dword [ebp - 0x134], ebx
push 4
lea eax, [ebp - 0x118]
mov dword [ebp - 0x124], 4
push eax
push 4
push dword [edi + 0x48]
mov dword [ebp - 0x118], 1
push dword [edi + 0x44]
push SysReAllocStringLen
call dword [0x641018]
push 4
lea eax, [ebp - 0x118]
mov dword [ebp - 0x124], 4
push eax
push 4
push str.AutoRecover
push dword [edi + 0x8c]
mov dword [ebp - 0x118], 1
push SysReAllocStringLen
call dword [0x641018]
push dword [ebp - 0x11c]
call dword [0x641008]
test eax, eax
jne 0x430ab8
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0058f590
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x430a9d
push 0x60d4cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [edi + 0x90]
lea ecx, [ebp - 0x114]
push ecx
call eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x11c]
push 0x609340
push eax
call fcn.00415ec0
add esp, 0xc
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
push esi
mov dword [ebp - 0x128], 0
lea ebx, [ebp - 0x128]
mov dword [ebp - 0x138], ecx
call fcn.004163d0
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x138], esp
push 0x6097b3
call fcn.004160f0
push ecx
mov ecx, esp
mov byte [ebp - 4], 3
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x140], ecx
push eax
call fcn.004163d0
mov edx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00435c70
add esp, 0x10
test eax, eax
jne 0x430b80
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push esi
mov dword [ebp - 0x138], ecx
call fcn.004163d0
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x138], esp
push 0x6097b3
call fcn.004160f0
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x144], ecx
push eax
call fcn.004163d0
mov edx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00435800
add esp, 0x10
cmp byte [ebp - 0x12d], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x430be4
xor esi, esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x120]
je 0x430bd2
push 0x64
call ebx
inc esi
cmp esi, 0x12c
jl 0x430b91
jmp 0x430be4
push 0x3e8
call ebx
mov ecx, dword [ebp - 0x13c]
call fcn.004174e0
cmp dword [ebp - 0x134], 0
je 0x430c24
push 0x9c4
call ebx
push 4
lea eax, [ebp - 0x118]
mov dword [ebp - 0x124], 4
push eax
push 4
push dword [edi + 0x48]
mov dword [ebp - 0x118], 0
push dword [edi + 0x44]
push SysReAllocStringLen
call dword [0x641018]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x11c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x430c48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x430c67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005892bc
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00416970
int3