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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x62819c]
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 [0x633954]
mov edx, dword [eax + edx*4]
mov eax, dword [0x631b20]
cmp eax, dword [edx + 4]
jg 0x4836f6
xor eax, eax
mov dword [ebp - 0x228], eax
mov word [ebp - 0x224], ax
cmp byte [0x631d90], al
je 0x4834fe
mov cx, word [0x631b1e]
mov eax, 1
mov word [ebp - 0x228], ax
mov eax, dword [0x631b1c]
mov word [ebp - 0x224], cx
movzx ecx, cx
mov word [ebp - 0x226], ax
push ecx
movzx eax, ax
push eax
push 1
call fcn.004ca750
add esp, 0xc
mov dword [ebp - 4], 1
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4836ec
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 0x483573
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.0048b750
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.0042a6a0
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 0x4835c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4835c7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054b380
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 0x4835a5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00429870
lea eax, [ebp - 0x21c]
push eax
call fcn.00479790
add esp, 4
lea ecx, [ebp - 0x21c]
push 0x14
push str.KingsoftWPS_Office_
call fcn.00429240
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.004293f0
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 4
push eax
call fcn.004797e0
lea eax, [ebp - 0x220]
push eax
call fcn.004780f0
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
je 0x4836ec
push eax
push dword [ebp - 0x220]
call fcn.00555852
add esp, 8
test eax, eax
jne 0x483667
lea eax, [ebp - 0x21c]
push eax
call fcn.004797e0
lea eax, [ebp - 0x21c]
push eax
call fcn.004471f0
push 0
push 1
push dword [ebp - 0x21c]
call fcn.00479880
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 0x483688
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 0x4836a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x631d90], 0
mov dword [ebp - 4], 5
je 0x4836d1
push dword [ebp - 0x224]
push dword [ebp - 0x226]
push dword [ebp - 0x228]
call fcn.004ca790
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x631b20
call fcn.00546388
add esp, 4
cmp dword [0x631b20], 0xffffffff
jne 0x4834af
push 0x5ae038
push str.KUninstall::ClearDefaultInstallPath
mov ecx, 0x631b1c
mov dword [ebp - 4], 0
call fcn.004c9bd0
push 0x631b20
mov dword [ebp - 4], 0xffffffff
call fcn.0054633e
add esp, 4
jmp 0x4834af