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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fd95
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 0x538254
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.0044a760
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.004e0230
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 0x489750
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0044a760
mov ecx, dword [ebp - 0x224]
cmp ecx, 1
jb 0x4897c3
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 + 0x534f54]
je 0x4897c3
add eax, 2
cmp eax, 4
jb 0x4897a0
push 1
push 0x536ac0
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.0048cc70
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x489832
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489828
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489c4a
push edx
push ecx
call fcn.004de45a
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x489876
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48986c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489c4a
push edx
push ecx
call fcn.004de45a
add esp, 8
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 0
cmovae eax, dword [ebp - 0x24c]
push eax
call fcn.004e79bf
add esp, 8
xor ebx, ebx
cmp eax, 0xffffffff
je 0x489bc9
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.00489440
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.00491f10
test eax, eax
jne 0x489912
xor ebx, ebx
jmp 0x489baf
mov dword [ebp - 0x2fc], 0
mov byte [ebp - 4], 7
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x489c2c
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 0x489967
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 0x48997e
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 0x489bfd
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x489c36
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.00479d70
mov edi, dword [ebp - 0x300]
cmp dword [edi - 0xc], 0
jne 0x4899fb
xor ebx, ebx
jmp 0x489b5a
cmp dword [ebp - 0x2cc], 8
lea esi, [ebp - 0x2e0]
cmovae esi, dword [ebp - 0x2e0]
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x489c40
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 0x489a6c
test esi, esi
jne 0x489a48
xor ecx, ecx
jmp 0x489a5f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489a50
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 0x489c4f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x489aa4
push ebx
lea ecx, [ebp - 0x304]
call fcn.0044f7d0
mov esi, dword [ebp - 0x304]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004ea796
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x489c4f
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ebx, dword [edi - 0xc]
test ebx, ebx
js 0x489c4f
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x489af1
push ebx
lea ecx, [ebp - 0x300]
call fcn.0044f7d0
mov edi, dword [ebp - 0x300]
lea eax, [ebx + 1]
push eax
push edi
call fcn.004ea796
add esp, 8
cmp ebx, dword [edi - 8]
jg 0x489c4f
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
cmp dword [esi - 0xc], eax
jge 0x489b1a
or ebx, 0xffffffff
jmp 0x489b33
push edi
push esi
call fcn.004e0480
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x489b2f
or ebx, 0xffffffff
jmp 0x489b33
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 0x489b54
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 0x489b76
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 0x489b98
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2fc]
test eax, eax
je 0x489ba5
push eax
call edi
mov dword [ebp - 0x2fc], 0
lea ecx, [ebp - 0x2f8]
call fcn.00489c60
cmp dword [ebp - 0x30c], 0
je 0x489bc9
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x489c0e
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489c04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489c4a
jmp 0x489c04
xor ebx, ebx
jmp 0x489b7c
push edx
push ecx
call fcn.004de45a
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.004de46d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
call fcn.004e364a
push 0x80070057
call fcn.00450260
int3