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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59baba
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x61ce74]
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 [0x629d90]
test al, 1
jne 0x47d842
or eax, 1
mov dword [0x629d90], eax
push 0x5bed51
push str.KUninstall::ClearDefaultInstallPath
mov ecx, 0x629d8c
mov dword [ebp - 4], 0
call fcn.004c71f0
mov dword [ebp - 4], 0xffffffff
cmp byte [0x62a1c4], 0
je 0x47d883
mov cx, word [0x629d8e]
mov eax, 1
mov word [ebp - 0x228], ax
mov eax, dword [0x629d8c]
mov word [ebp - 0x224], cx
movzx ecx, cx
mov word [ebp - 0x226], ax
push ecx
movzx eax, ax
push eax
push 1
call fcn.004c7f20
add esp, 0xc
mov dword [ebp - 4], 1
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x47da77
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
or esi, 0xffffffff
mov byte [ebp - 4], 2
cmp dword [edi + 0xe0], 0
je 0x47d8f8
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.00484fb0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.00427100
mov edx, dword [ebp - 0x22c]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47d952
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47d952
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00540d70
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]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d930
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004263f0
lea eax, [ebp - 0x21c]
push eax
call fcn.00474b30
add esp, 4
lea ecx, [ebp - 0x21c]
push 0x14
push str.KingsoftWPS_Office_
call fcn.00425dc0
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00425f70
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 4
push eax
call fcn.00474b80
lea eax, [ebp - 0x220]
push eax
call fcn.00473880
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
je 0x47da77
push eax
push dword [ebp - 0x220]
call fcn.0054b581
add esp, 8
test eax, eax
jne 0x47d9f2
lea eax, [ebp - 0x21c]
push eax
call fcn.00474b80
lea eax, [ebp - 0x21c]
push eax
call fcn.00443130
push 0
push 1
push dword [ebp - 0x21c]
call fcn.00474c20
add esp, 0x14
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47da13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x47da32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x62a1c4], 0
mov dword [ebp - 4], 5
je 0x47da5c
push dword [ebp - 0x224]
push dword [ebp - 0x226]
push dword [ebp - 0x228]
call fcn.004c7f60
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
int3