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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a97b7
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
lea ecx, [ebp - 0x220]
call fcn.00407094
and dword [ebp - 4], 0
call fcn.00417fc6
add eax, 4
mov dword [ebp - 0x230], eax
push 0
push str.KvNoCmdline
push dword [ebp - 0x230]
mov eax, dword [ebp - 0x230]
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
je 0x493d88
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x60], 0
jne 0x493d88
push 0x4c5cbc
lea ecx, [ebp - 0x220]
call fcn.00406fd6
jmp 0x493e66
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00458260
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Kingsoft
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x228]
call fcn.00407094
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._silence1handle_dsupply_dinstallpath__s_
lea eax, [ebp - 0x228]
push eax
call fcn.004080bb
add esp, 0x14
mov ecx, dword [ebp + 0x10]
add ecx, 0x80
call fcn.00406ddd
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040c429
add esp, 0xc
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x244]
lea ecx, [ebp - 0x220]
call fcn.00406ff1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00405d4a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00405d4a
mov ecx, dword [ebp + 0x10]
add ecx, 0x68
call fcn.00401e9e
test eax, eax
jne 0x493e81
mov dword [ebp - 0x234], str.Install
jmp 0x493e92
mov ecx, dword [ebp + 0x10]
add ecx, 0x68
call fcn.00406ddd
mov dword [ebp - 0x234], eax
push dword [ebp - 0x234]
lea ecx, [ebp - 0x224]
call fcn.0040700c
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x60], 0
jne 0x493eb9
and dword [ebp - 0x238], 0
jmp 0x493ec3
mov dword [ebp - 0x238], 1
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x23c]
mov dword [eax + 0x98], ecx
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x224]
call fcn.004026c4
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x28
call fcn.00406ddd
push eax
call fcn.0041d862
mov ecx, eax
call fcn.0048c460
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x493f6d
lea ecx, [ebp - 0x220]
call fcn.004026c4
push eax
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x22c]
call dword [eax + 4]
test eax, eax
je 0x493f6d
and dword [ebp - 0x24c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00405d4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00405d4a
mov eax, dword [ebp - 0x24c]
jmp 0x493fbb
mov dword [ebp - 0x250], 9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00405d4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00405d4a
mov eax, dword [ebp - 0x250]
jmp 0x493fbb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret 0xc