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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ca1df
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x234], esp
push 0x100d6f7e
call fcn.10001465
mov eax, dword [ebp + 0x10]
push dword [eax + 0x428]
push 0x1f4
push 0
push 6
mov ecx, 0x101158b0
call fcn.100bbf7d
lea ecx, [ebp - 0x10]
call fcn.10014b4b
and dword [ebp - 4], 0
push 0
push str.KvNoCmdline
mov eax, dword [ebp - 0x244]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x244]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
push ecx
call dword [eax + 0x20]
test eax, eax
je 0x100a5251
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x320], 0
jne 0x100a5251
push 0x100da9dc
lea ecx, [ebp - 0x10]
call fcn.10003c7e
jmp 0x100a5325
and word [ebp - 0x22c], 0
push 0x208
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.100771d0
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Kingsoft
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x230]
call fcn.10014b4b
mov byte [ebp - 4], 1
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._silence1handle_dsupply_dinstallpath__s_
lea eax, [ebp - 0x230]
push eax
call fcn.10008825
add esp, 0x14
mov eax, dword [ebp + 0x10]
add eax, 0x3a8
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.10014e8c
add esp, 0xc
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x10]
call fcn.10003c65
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.10014be9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10014be9
mov eax, dword [ebp + 0x10]
add eax, 0x328
push eax
call fcn.10077b0b
pop ecx
test eax, eax
jne 0x100a5344
mov dword [ebp - 0x250], 0x100daa5c
jmp 0x100a5352
mov eax, dword [ebp + 0x10]
add eax, 0x328
mov dword [ebp - 0x250], eax
push dword [ebp - 0x250]
lea ecx, [ebp - 0x18]
call fcn.10003bfa
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x244]
push dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
mov eax, dword [ebp + 0x10]
push dword [eax + 0x428]
lea ecx, [ebp - 0x18]
call fcn.10005b69
push eax
mov eax, dword [ebp + 0x10]
add eax, 0x90
push eax
call fcn.1001602c
mov ecx, eax
call fcn.100b1ede
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100a53e3
lea ecx, [ebp - 0x10]
call fcn.10005b69
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call dword [eax]
test eax, eax
je 0x100a53e3
and dword [ebp - 0x23c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10014be9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10014be9
mov eax, dword [ebp - 0x23c]
jmp 0x100a5425
mov dword [ebp - 0x240], 9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10014be9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10014be9
mov eax, dword [ebp - 0x240]
jmp 0x100a5425
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100771ba
leave
ret 0xc