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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c792
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
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 esi, ecx
mov eax, dword [0x629e08]
test al, 1
jne 0x4859d8
or eax, 1
mov dword [0x629db8], 0
mov dword [0x629e08], eax
xor eax, eax
push 0x5ad370
mov dword [0x629dbc], 7
mov word [0x629da8], ax
mov dword [0x629dd0], eax
mov dword [0x629dd4], 7
mov word [0x629dc0], ax
mov dword [0x629de8], eax
mov dword [0x629dec], 7
mov word [0x629dd8], ax
mov dword [0x629e00], eax
mov dword [0x629e04], 7
mov word [0x629df0], ax
call fcn.0053d46e
add esp, 4
cmp dword [0x61b864], 0
je 0x485c06
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]
push 0x5bc540
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00425c00
push str.wpscloudsvr.exe
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
call fcn.00425c00
add esp, 0x18
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 1
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485a50
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x629da8
call fcn.00439df0
mov edx, dword [ebp - 0x21c]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485a8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov eax, esi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485ab3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x485c26
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
test eax, 0xffff0000
jne 0x485af5
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.00426130
jmp 0x485b22
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485b00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004263f0
push str.Kingsoftoffice6_
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00425c00
push str.wpscloudsvr.exe
push eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 4
push eax
call fcn.00425c00
add esp, 0x18
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 5
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485b65
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x629dc0
call fcn.00439df0
mov edx, dword [ebp - 0x224]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485ba1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485bc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x485be4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xe
push str.InstallService
mov ecx, 0x629dd8
call fcn.00439df0
push 0x10
push str.UninstallService
mov ecx, 0x629df0
call fcn.00439df0
mov eax, 0x629da8
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