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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c162
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
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 esi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x633954]
mov edx, dword [eax + edx*4]
mov eax, dword [0x631b34]
cmp eax, dword [edx + 4]
jg 0x48c456
cmp dword [0x602590], 0
je 0x48c436
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]
push 0x5b69d0
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00429080
push str.wpscloudsvr.exe
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
call fcn.00429080
add esp, 0x18
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 1
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c281
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x602530
call fcn.0042daa0
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 0x48c2c0
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 0x48c2e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x48c48c
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 0x48c326
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.004295b0
jmp 0x48c352
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c330
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00429870
push str.Kingsoftoffice6_
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00429080
push str.wpscloudsvr.exe
push eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 4
push eax
call fcn.00429080
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 0x48c395
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x602548
call fcn.0042daa0
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 0x48c3d1
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 0x48c3f2
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 0x48c414
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xe
push str.InstallService
mov ecx, 0x602560
call fcn.0042daa0
push 0x10
push str.UninstallService
mov ecx, 0x602578
call fcn.0042daa0
mov eax, 0x602530
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 0x631b34
call fcn.00546388
add esp, 4
cmp dword [0x631b34], 0xffffffff
jne 0x48c20f
push 0x5a9780
call fcn.0054669a
push 0x631b34
call fcn.0054633e
add esp, 8
jmp 0x48c20f
push 0x80004005
call fcn.004293d0
int3