Function at 0x459f60
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bf5b
mov eax, dword fs:[0]
push eax
mov eax, 0x1e20
call fcn.00486920
mov eax, dword [0x5746cc]
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
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a3360
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0xc
push str.halowp.exe
push dword [edi]
push eax
call esi
cmp dword [edi + 8], 0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
je 0x45a04b
push 0x800
lea eax, [ebp - 0xe28]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0xe28]
push 1
push 0x19
push eax
push 0
call ebx
push 0x800
lea eax, [ebp - 0x1628]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0xe28]
push 0x535568
push eax
lea eax, [ebp - 0x1628]
push eax
call esi
push 0
push 0
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x1628]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x535568
call fcn.0045a3d0
test eax, eax
je 0x45a258
cmp dword [edi + 0xc], 0
je 0x45a106
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x830]
push 1
push 0x17
push eax
push 0
call ebx
push 0x52b694
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a0ac
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1628]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x535568
push eax
lea eax, [ebp - 0x1628]
push eax
call esi
push 0
push 0
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x1628]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x52b694
call fcn.0045a3d0
test eax, eax
je 0x45a258
cmp dword [edi + 0x10], 0
je 0x45a271
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x420]
push 1
push 0x17
push eax
push 0
call ebx
push 0x52b694
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a167
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1e28]
push 0
push eax
call fcn.004a3360
add esp, 0xc
call fcn.0040b740
mov ecx, eax
test ecx, ecx
je 0x45a292
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1e2c], eax
push 0x52b694
lea eax, [ebp - 0x1e2c]
mov dword [ebp - 4], 0
push 0x535584
push eax
call fcn.004094c0
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x1e2c]
push eax
lea eax, [ebp - 0x1e28]
push eax
call esi
push 0x52b694
lea eax, [ebp - 0x1e2c]
push 0x535598
push eax
call fcn.004094c0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004a3360
add esp, 0x18
lea eax, [ebp - 0x628]
push str.Uninstall.exe
push dword [edi]
push eax
call esi
mov esi, dword [ebp - 0x1e2c]
lea eax, [ebp - 0x628]
push 1
push 0
push eax
lea eax, [ebp - 0x1e28]
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x628]
push eax
push esi
call fcn.0045a3d0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x45a25c
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45a258
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x45a276
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45a271
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.004864b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409360
int3