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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3a81
mov eax, dword fs:[0]
push eax
sub esp, 0x908
mov eax, dword [0x509380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xorps xmm0, xmm0
mov dword [ebp - 0x838], 0
movups xmmword [ebp - 0x848], xmm0
mov dword [ebp - 0x834], 0xf
mov byte [ebp - 0x848], 0
mov ecx, dword [edi + 0x6fc]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x40ccb9
mov eax, dword [ecx]
lea edx, [ebp - 0x914]
push edx
mov eax, dword [eax + 0x38]
call eax
mov ecx, eax
mov byte [ebp - 4], 1
call sym.Install.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 0x890]
push eax
call fcn.00401530
mov esi, eax
add esp, 8
lea eax, [ebp - 0x848]
cmp eax, esi
je 0x40cc55
mov ecx, eax
call fcn.00402c10
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x848], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x838], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x87c]
cmp ecx, 0xf
jbe 0x40cc8f
mov edx, dword [ebp - 0x890]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cc85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d070
push ecx
push edx
call fcn.0049ce1b
add esp, 8
lea ecx, [ebp - 0x914]
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 0xf
mov byte [ebp - 0x890], 0
mov byte [ebp - 4], 0
call sym.Install.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0049e980
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
add esp, 0xc
push 0
push 0x10
push eax
push 0
call esi
push 0x4c7344
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x834], 0xf
lea eax, [ebp - 0x848]
cmova eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.00401700
add esp, 8
push 0xd
push str.WinRepair.exe
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 2
call fcn.0040f6f0
cmp dword [ebp - 0x84c], 7
lea ecx, [ebp - 0x420]
push 0
push ecx
lea eax, [ebp - 0x860]
mov ecx, edi
cmova eax, dword [ebp - 0x860]
push 0
push eax
call fcn.0040d650
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0xb
push eax
push 0
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x4c6c50
push eax
call esi
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0049e980
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0049e980
add esp, 0x18
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x218]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x62a], ax
test ax, ax
jne 0x40cdd0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x218]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x832], ax
test ax, ax
jne 0x40cdf0
push 0x4c7438
lea eax, [ebp - 0x628]
push eax
call esi
push 0x4c7458
lea eax, [ebp - 0x830]
push eax
call esi
cmp dword [ebp - 0x834], 0xf
lea eax, [ebp - 0x848]
cmova eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x890]
push eax
call fcn.00401700
mov esi, eax
add esp, 8
lea eax, [ebp - 0x860]
cmp eax, esi
je 0x40ce85
mov ecx, eax
call fcn.00402bb0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x860], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x850], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x87c]
cmp ecx, 7
jbe 0x40cec5
mov edx, dword [ebp - 0x890]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cebb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d075
push ecx
push edx
call fcn.0049ce1b
add esp, 8
push 0xd
push str.WinRepair.exe
lea ecx, [ebp - 0x860]
call fcn.0040f6f0
cmp dword [ebp - 0x834], 0xf
lea eax, [ebp - 0x848]
cmova eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.00401700
add esp, 8
push 0xd
push str.Uninstall.exe
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 3
call fcn.0040f6f0
cmp dword [ebp - 0x84c], 7
lea ecx, [ebp - 0x628]
push 0
push ecx
lea eax, [ebp - 0x860]
mov ecx, edi
cmova eax, dword [ebp - 0x860]
push 0
push eax
call fcn.0040d650
cmp dword [ebp - 0x864], 7
lea ecx, [ebp - 0x830]
push 0
push ecx
lea eax, [ebp - 0x878]
mov ecx, edi
cmova eax, dword [ebp - 0x878]
push 0
push eax
call fcn.0040d650
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x864]
cmp ecx, 7
jbe 0x40cfa5
mov edx, dword [ebp - 0x878]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d07a
push ecx
push edx
call fcn.0049ce1b
add esp, 8
mov ecx, dword [ebp - 0x84c]
xor eax, eax
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
cmp ecx, 7
jbe 0x40d002
mov edx, dword [ebp - 0x860]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cff8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d07a
push ecx
push edx
call fcn.0049ce1b
add esp, 8
mov ecx, dword [ebp - 0x834]
xor eax, eax
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 7
mov word [ebp - 0x860], ax
cmp ecx, 0xf
jbe 0x40d055
mov edx, dword [ebp - 0x848]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d04b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d07a
push ecx
push edx
call fcn.0049ce1b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049cd8d
mov esp, ebp
pop ebp
ret
call fcn.004a746a
call fcn.004a746a
call fcn.004a746a
int3