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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ffed
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x63434c]
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 [0x63ec50]
mov edx, dword [eax + edx*4]
mov eax, dword [0x63ce78]
cmp eax, dword [edx + 4]
jg 0x48a00e
xor eax, eax
mov dword [ebp - 0x228], eax
mov word [ebp - 0x224], ax
cmp byte [0x63d0e4], al
je 0x489e1e
mov cx, word [0x63ce76]
mov eax, 1
mov word [ebp - 0x228], ax
mov eax, dword [0x63ce74]
mov word [ebp - 0x224], cx
movzx ecx, cx
mov word [ebp - 0x226], ax
push ecx
movzx eax, ax
push eax
push 1
call fcn.004d44d0
add esp, 0xc
mov dword [ebp - 4], 2
call fcn.004291f0
test eax, eax
je 0x48a004
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 0x489e93
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.00494420
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00429740
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 0x489ee7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x489ee7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0055c530
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 0x489ec5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042a000
lea eax, [ebp - 0x21c]
push eax
call fcn.0047f130
add esp, 4
lea ecx, [ebp - 0x21c]
push 0x14
push str.KingsoftWPS_Office_
call fcn.00429970
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00429b20
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
push eax
call fcn.0047f180
lea eax, [ebp - 0x220]
push eax
call fcn.0047d730
mov eax, dword [ebp - 0x21c]
add esp, 0xc
test eax, eax
je 0x48a004
push eax
push dword [ebp - 0x220]
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x489f87
lea eax, [ebp - 0x21c]
push eax
call fcn.0047f180
lea eax, [ebp - 0x21c]
push eax
call fcn.00448f40
push 0
push 1
push dword [ebp - 0x21c]
call fcn.0047f220
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 0x489fa4
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 0x489fbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x63d0e4], 0
mov dword [ebp - 4], 6
je 0x489fe9
push dword [ebp - 0x224]
push dword [ebp - 0x226]
push dword [ebp - 0x228]
call fcn.004d4510
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.00557e89
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
push 0x63ce78
call fcn.00558348
add esp, 4
cmp dword [0x63ce78], 0xffffffff
jne 0x489dcf
push 0x5b5110
push str.KUninstall::ClearDefaultInstallPath
mov ecx, 0x63ce74
mov dword [ebp - 4], 0
call fcn.004d38a0
push 0x63ce78
mov dword [ebp - 4], 0xffffffff
call fcn.005582fe
add esp, 4
jmp 0x489dcf