Function at 0x40e6a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xe44], ecx
mov dword [ebp - 0xe48], eax
call fcn.0043c7f0
cmp eax, 1
jne 0x40e6e8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x40ebe4
cmp word [esi], 0
je 0x40ebe4
push edi
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push str.desktop
push esi
mov dword [ebp - 0xe40], 0
call edi
add esp, 8
test eax, eax
jne 0x40e84d
mov dword [ebp - 0xe40], eax
call fcn.00488c20
push eax
push 0
push str.desktopshortcuts
push str.installinfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40eb12
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xa2a]
push ecx
mov word [ebp - 0xa2c], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x40e
push edx
lea eax, [ebp - 0x822]
push eax
mov word [ebp - 0x824], dx
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp - 0xe3a]
push edx
mov word [ebp - 0xe3c], cx
call sub.MSVCR100.dll_memset
add esp, 0x30
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 1
push 0
jne 0x40e88d
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
lea ecx, [ebp - 0x414]
push ecx
push 0
call esi
test eax, eax
je 0x40ebcc
push 0
push 2
lea edx, [ebp - 0xa2c]
push edx
push 0
call esi
test eax, eax
je 0x40ebcc
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
xor ecx, ecx
lea edi, [ebp - 0x414]
add esp, 8
mov word [eax + 2], cx
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e830
mov ecx, 9
mov esi, str.All_UsersDesktop
rep movsd dword es:[edi], dword [esi]
jmp 0x40e8e1
push str.startmenu
push esi
call edi
add esp, 8
test eax, eax
jne 0x40e86b
mov dword [ebp - 0xe40], 1
jmp 0x40e744
push str.temp
push esi
call edi
add esp, 8
test eax, eax
jne 0x40e724
mov dword [ebp - 0xe40], 3
jmp 0x40e744
call fcn.00438260
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
movzx edx, al
neg edx
sbb edx, edx
and edx, 0xfffffff7
add edx, 0x19
push edx
lea eax, [ebp - 0x414]
push eax
push 0
call esi
test eax, eax
je 0x40ebcc
push 0
call fcn.00438260
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0xffffffeb
add ecx, 0x17
push ecx
lea edx, [ebp - 0xa2c]
push edx
push 0
call esi
test eax, eax
je 0x40ebcc
mov eax, dword [ebp - 0xe40]
test eax, eax
jne 0x40e90a
jmp 0x40e8f0
movzx ecx, word [ebp + eax - 0x414]
mov word [ebp + eax - 0x824], cx
add eax, 2
test cx, cx
jne 0x40e8f0
jmp 0x40e96f
cmp eax, 1
jne 0x40e93a
xor eax, eax
jmp 0x40e920
movzx ecx, word [ebp + eax - 0xa2c]
mov word [ebp + eax - 0x824], cx
add eax, 2
test cx, cx
jne 0x40e920
jmp 0x40e96f
cmp eax, 3
jne 0x40e96f
mov eax, dword [ebp - 0xe44]
add eax, 0x30
cmp dword [eax + 0x14], 8
jb 0x40e950
mov eax, dword [eax]
lea edx, [ebp - 0x824]
sub edx, eax
jmp 0x40e960
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e960
lea eax, [ebp - 0x824]
lea edx, [eax + 2]
jmp 0x40e980
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e980
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x826], 0x5c
je 0x40e9b6
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e9a3
mov eax, dword [0x4c7780]
mov dword [edi], eax
push 0x104
lea ecx, [ebp - 0xe3c]
push ecx
push 1
push 0
push 2
call fcn.0043baf0
test eax, eax
jne 0x40ebcc
lea edi, [ebp - 0xe3c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e9e0
mov edx, dword [0x4c7780]
mov dword [edi], edx
test ebx, ebx
je 0x40ea31
cmp word [ebx], ax
je 0x40ea31
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ea01
lea edi, [ebp - 0x824]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40ea20
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40ea20
jmp 0x40ead2
cmp dword [ebp - 0xe40], 1
jne 0x40eae2
call fcn.00488c20
mov esi, eax
test esi, esi
je 0x40eae2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ea50
sub eax, edx
sar eax, 1
je 0x40eae2
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x4c79ac
push str.startmenudir
push str.installinfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eab0
lea edi, [ebp - 0x824]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40eac6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0xe48]
mov esi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push 0x4c8ac0
push edi
call esi
add esp, 8
test eax, eax
jne 0x40eb27
push 0x1000071
lea esi, [eax + 0xb]
call fcn.00433cd0
test eax, eax
jne 0x40eb98
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0xc
push str.wpslauncher
push edi
call esi
add esp, 8
test eax, eax
jne 0x40eb4a
lea esi, [eax + 0xc]
mov eax, dword [ebp - 0xe40]
test eax, eax
jne 0x40eb86
call fcn.00433f00
jmp 0x40eb90
push str.showtime
push edi
call esi
add esp, 8
test eax, eax
jne 0x40eb5e
lea esi, [eax + 0xe]
jmp 0x40eb98
push str.prometheus
push edi
call esi
add esp, 8
test eax, eax
jne 0x40eb72
lea esi, [eax + 0x12]
jmp 0x40eb98
push str.cloudusbdrive
push edi
call esi
add esp, 8
test eax, eax
jne 0x40ebcc
lea esi, [eax + 0x13]
jmp 0x40eb98
cmp eax, 1
jne 0x40eb98
call fcn.00433ee0
test eax, eax
jne 0x40eb12
mov eax, dword [ebp - 0xe40]
push eax
push esi
lea ecx, [ebp - 0x824]
push ecx
mov ecx, dword [ebp - 0xe44]
lea edx, [ebp - 0xe3c]
push edx
call fcn.0040d600
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x80070057
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0xc