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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517c4b
mov eax, dword fs:[0]
push eax
mov eax, 0x1e20
call fcn.00483980
mov eax, dword [0x56e6c4]
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.0049d980
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 0x458efb
push 0x800
lea eax, [ebp - 0xe28]
push 0
push eax
call fcn.0049d980
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.0049d980
add esp, 0xc
lea eax, [ebp - 0xe28]
push 0x530568
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 0x530568
call fcn.00459280
test eax, eax
je 0x459108
cmp dword [edi + 0xc], 0
je 0x458fb6
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0049d980
add esp, 0xc
lea eax, [ebp - 0x830]
push 1
push 0x17
push eax
push 0
call ebx
push 0x526694
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 0x458f5c
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.0049d980
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x530568
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 0x526694
call fcn.00459280
test eax, eax
je 0x459108
cmp dword [edi + 0x10], 0
je 0x459121
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0049d980
add esp, 0xc
lea eax, [ebp - 0x420]
push 1
push 0x17
push eax
push 0
call ebx
push 0x526694
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 0x459017
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.0049d980
add esp, 0xc
call fcn.0040ab00
mov ecx, eax
test ecx, ecx
je 0x459142
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1e2c], eax
push 0x526694
lea eax, [ebp - 0x1e2c]
mov dword [ebp - 4], 0
push 0x530584
push eax
call fcn.00408880
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x1e2c]
push eax
lea eax, [ebp - 0x1e28]
push eax
call esi
push 0x526694
lea eax, [ebp - 0x1e2c]
push 0x530598
push eax
call fcn.00408880
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0049d980
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.00459280
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x45910c
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x459108
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x459126
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x459121
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.00483518
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408720
int3