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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f51bb
mov eax, dword fs:[0]
push eax
mov eax, 0x1e20
call fcn.10069fc0
mov eax, dword [0x10136674]
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.1007bae0
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 0x1004e83b
push 0x800
lea eax, [ebp - 0xe28]
push 0
push eax
call fcn.1007bae0
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.1007bae0
add esp, 0xc
lea eax, [ebp - 0xe28]
push 0x10108fa8
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 0x10108fa8
call fcn.1004ebc0
test eax, eax
je 0x1004ea48
cmp dword [edi + 0xc], 0
je 0x1004e8f6
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1007bae0
add esp, 0xc
lea eax, [ebp - 0x830]
push 1
push 0x17
push eax
push 0
call ebx
push str.Halo
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 0x1004e89c
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.1007bae0
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x10108fa8
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 str.Halo
call fcn.1004ebc0
test eax, eax
je 0x1004ea48
cmp dword [edi + 0x10], 0
je 0x1004ea61
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1007bae0
add esp, 0xc
lea eax, [ebp - 0x420]
push 1
push 0x17
push eax
push 0
call ebx
push str.Halo
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 0x1004e957
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.1007bae0
add esp, 0xc
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1004ea82
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1e2c], eax
push str.Halo
lea eax, [ebp - 0x1e2c]
mov dword [ebp - 4], 0
push 0x10108fd8
push eax
call fcn.10006000
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x1e2c]
push eax
lea eax, [ebp - 0x1e28]
push eax
call esi
push str.Halo
lea eax, [ebp - 0x1e2c]
push 0x10108fec
push eax
call fcn.10006000
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1007bae0
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.1004ebc0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x1004ea4c
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004ea48
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x1004ea66
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004ea61
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.10069b58
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005ea0
int3