Function at 0x489480
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c775
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x300], 0
lea ecx, [ebp - 0x264]
push 8
xor eax, eax
mov dword [ebp - 0x264], 0
push 0x53414c
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.0044a750
mov dword [ebp - 4], 1
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 0x234], 0
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x300], 1
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489560
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0044a750
mov ecx, dword [ebp - 0x224]
cmp ecx, 1
jb 0x4895d3
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
nop dword [eax + eax]
cmp cx, word [eax + 0x530e54]
je 0x4895d3
add eax, 2
cmp eax, 4
jb 0x4895b0
push 1
push 0x5329c0
lea ecx, [ebp - 0x234]
call fcn.0044ae60
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x264]
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0048c810
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x489642
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489a5a
push edx
push ecx
call fcn.004dafca
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x489686
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48967c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489a5a
push edx
push ecx
call fcn.004dafca
add esp, 8
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 0
cmovae eax, dword [ebp - 0x24c]
push eax
call fcn.004e43a1
add esp, 8
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4899d9
push 6
push ebx
mov dword [ebp - method.CInstallShortCut.virtual_0], vtable.CInstallShortCut.0
mov dword [ebp - method.CQMTInitializeCOMThread.virtual_0], vtable.CQMTInitializeCOMThread.0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 5
call fcn.00489250
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2f8]
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push ecx
cmovae eax, dword [ebp - 0x24c]
push eax
call fcn.00491b00
test eax, eax
jne 0x489722
xor ebx, ebx
jmp 0x4899bf
mov dword [ebp - 0x2fc], 0
mov byte [ebp - 4], 7
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x489a3c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x308], eax
push str.SOFTWARETencentSoftMgr
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 8
call fcn.0044f2b0
test al, al
jne 0x489777
push 0x18
push str.SOFTWARETencentSoftMgr
lea ecx, [ebp - 0x308]
call fcn.0044f440
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x2fc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48978e
push eax
call edi
mov esi, dword [ebp - 0x308]
lea eax, [ebp - 0x2fc]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2fc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x489a0d
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x489a46
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 0xa
push eax
push str.InstallDir
lea ecx, [ebp - 0x2fc]
call fcn.00479c60
mov edi, dword [ebp - 0x300]
cmp dword [edi - 0xc], 0
jne 0x48980b
xor ebx, ebx
jmp 0x48996a
cmp dword [ebp - 0x2cc], 8
lea esi, [ebp - 0x2e0]
cmovae esi, dword [ebp - 0x2e0]
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x489a50
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x304], eax
push esi
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0xb
call fcn.0044f2b0
test al, al
jne 0x48987c
test esi, esi
jne 0x489858
xor ecx, ecx
jmp 0x48986f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489860
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x304]
call fcn.0044f440
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x304]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x489a5f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4898b4
push ebx
lea ecx, [ebp - 0x304]
call fcn.0044f690
mov esi, dword [ebp - 0x304]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004e7176
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x489a5f
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ebx, dword [edi - 0xc]
test ebx, ebx
js 0x489a5f
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x489901
push ebx
lea ecx, [ebp - 0x300]
call fcn.0044f690
mov edi, dword [ebp - 0x300]
lea eax, [ebx + 1]
push eax
push edi
call fcn.004e7176
add esp, 8
cmp ebx, dword [edi - 8]
jg 0x489a5f
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
cmp dword [esi - 0xc], eax
jge 0x48992a
or ebx, 0xffffffff
jmp 0x489943
push edi
push esi
call fcn.004dce60
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x48993f
or ebx, 0xffffffff
jmp 0x489943
sub ebx, esi
sar ebx, 1
not ebx
mov byte [ebp - 4], 0xa
shr ebx, 0x1f
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x489964
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x308]
mov byte [ebp - 4], 9
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x489986
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 7
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4899a8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2fc]
test eax, eax
je 0x4899b5
push eax
call edi
mov dword [ebp - 0x2fc], 0
lea ecx, [ebp - 0x2f8]
call fcn.00489a70
cmp dword [ebp - 0x30c], 0
je 0x4899d9
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x489a1e
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489a14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489a5a
jmp 0x489a14
xor ebx, ebx
jmp 0x48998c
push edx
push ecx
call fcn.004dafca
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450130
push 0x80004005
call fcn.00450130
push 0x80004005
call fcn.00450130
call fcn.004e002c
push 0x80070057
call fcn.00450130
int3