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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fa35
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x550144]
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 0x5380ec
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.0044a770
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.004dfec0
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 0x4897c0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0044a770
mov ecx, dword [ebp - 0x224]
cmp ecx, 1
jb 0x489833
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 + 0x534df4]
je 0x489833
add eax, 2
cmp eax, 4
jb 0x489810
push 1
push 0x536960
lea ecx, [ebp - 0x234]
call fcn.0044aee0
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.0048ccf0
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4898a2
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489898
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489cba
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x4898e6
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4898dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489cba
push edx
push ecx
call fcn.004de0ea
add esp, 8
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 0
cmovae eax, dword [ebp - 0x24c]
push eax
call fcn.004e764f
add esp, 8
xor ebx, ebx
cmp eax, 0xffffffff
je 0x489c39
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.004894b0
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.00491fc0
test eax, eax
jne 0x489982
xor ebx, ebx
jmp 0x489c1f
mov dword [ebp - 0x2fc], 0
mov byte [ebp - 4], 7
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x489c9c
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.0044f3f0
test al, al
jne 0x4899d7
push 0x18
push str.SOFTWARETencentSoftMgr
lea ecx, [ebp - 0x308]
call fcn.0044f580
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x2fc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4899ee
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 0x489c6d
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x489ca6
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.00479df0
mov edi, dword [ebp - 0x300]
cmp dword [edi - 0xc], 0
jne 0x489a6b
xor ebx, ebx
jmp 0x489bca
cmp dword [ebp - 0x2cc], 8
lea esi, [ebp - 0x2e0]
cmovae esi, dword [ebp - 0x2e0]
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x489cb0
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.0044f3f0
test al, al
jne 0x489adc
test esi, esi
jne 0x489ab8
xor ecx, ecx
jmp 0x489acf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489ac0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x304]
call fcn.0044f580
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x304]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x489cbf
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x489b14
push ebx
lea ecx, [ebp - 0x304]
call fcn.0044f7d0
mov esi, dword [ebp - 0x304]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004ea426
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x489cbf
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ebx, dword [edi - 0xc]
test ebx, ebx
js 0x489cbf
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x489b61
push ebx
lea ecx, [ebp - 0x300]
call fcn.0044f7d0
mov edi, dword [ebp - 0x300]
lea eax, [ebx + 1]
push eax
push edi
call fcn.004ea426
add esp, 8
cmp ebx, dword [edi - 8]
jg 0x489cbf
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
cmp dword [esi - 0xc], eax
jge 0x489b8a
or ebx, 0xffffffff
jmp 0x489ba3
push edi
push esi
call fcn.004e0110
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x489b9f
or ebx, 0xffffffff
jmp 0x489ba3
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 0x489bc4
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 0x489be6
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 0x489c08
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2fc]
test eax, eax
je 0x489c15
push eax
call edi
mov dword [ebp - 0x2fc], 0
lea ecx, [ebp - 0x2f8]
call fcn.00489cd0
cmp dword [ebp - 0x30c], 0
je 0x489c39
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x489c7e
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489c74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489cba
jmp 0x489c74
xor ebx, ebx
jmp 0x489bec
push edx
push ecx
call fcn.004de0ea
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.004de0fd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
call fcn.004e32da
push 0x80070057
call fcn.00450260
int3