Function at 0x48a6e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a459d
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x643da0]
mov edx, dword [eax + edx*4]
mov eax, dword [0x641f90]
cmp eax, dword [edx + 4]
jg 0x48a96e
xor eax, eax
mov dword [ebp - 0x228], eax
mov word [ebp - 0x224], ax
cmp byte [0x6421fc], al
je 0x48a77e
mov cx, word [0x641f8e]
mov eax, 1
mov word [ebp - 0x228], ax
mov eax, dword [0x641f8c]
mov word [ebp - 0x224], cx
movzx ecx, cx
mov word [ebp - 0x226], ax
push ecx
movzx eax, ax
push eax
push 1
call fcn.004d4f70
add esp, 0xc
mov dword [ebp - 4], 2
call fcn.00429250
test eax, eax
je 0x48a964
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
or esi, 0xffffffff
mov byte [ebp - 4], 3
cmp dword [edi + 0xe0], 0
je 0x48a7f3
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.00494d80
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.004297a0
mov edx, dword [ebp - 0x22c]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a847
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48a847
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a825
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042a060
lea eax, [ebp - 0x21c]
push eax
call fcn.0047fa90
add esp, 4
lea ecx, [ebp - 0x21c]
push 0x14
push str.KingsoftWPS_Office_
call fcn.004299d0
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00429b80
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
push eax
call fcn.0047fae0
lea eax, [ebp - 0x220]
push eax
call fcn.0047d910
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
je 0x48a964
push eax
push dword [ebp - 0x220]
call fcn.0056b422
add esp, 8
test eax, eax
jne 0x48a8e7
lea eax, [ebp - 0x21c]
push eax
call fcn.0047fae0
lea eax, [ebp - 0x21c]
push eax
call fcn.00448aa0
push 0
push 1
push dword [ebp - 0x21c]
call fcn.0047fb80
add esp, 0x14
mov edx, dword [ebp - 0x220]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a904
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x48a91f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x6421fc], 0
mov dword [ebp - 4], 6
je 0x48a949
push dword [ebp - 0x224]
push dword [ebp - 0x226]
push dword [ebp - 0x228]
call fcn.004d4fb0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
push 0x641f90
call fcn.0055c868
add esp, 4
cmp dword [0x641f90], 0xffffffff
jne 0x48a72f
push 0x5ba110
push str.KUninstall::ClearDefaultInstallPath
mov ecx, 0x641f8c
mov dword [ebp - 4], 0
call fcn.004d4340
push 0x641f90
mov dword [ebp - 4], 0xffffffff
call fcn.0055c81e
add esp, 4
jmp 0x48a72f