Function at 0x40abc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5878bc
mov eax, dword fs:[0]
push eax
sub esp, 0xc70
mov eax, dword [0x5f50fc]
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 - 0xc5c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc7c], eax
test eax, eax
je 0x40ac94
mov dword [eax], 0
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc50], 0
mov dword [ebp - 0xc70], 0
mov dword [ebp - 0xc6c], esi
cmp eax, 1
jne 0x40ac4f
lea ebx, [ecx + 0x658]
lea ecx, [ebp - 0xc70]
push ecx
lea ecx, [ebp - 0xc50]
push ecx
push str.GSCInfo
push str._group_shortcut_
jmp 0x40ac71
test eax, eax
jne 0x40ac94
lea ebx, [ecx + 0x658]
lea ecx, [ebp - 0xc70]
push ecx
lea ecx, [ebp - 0xc50]
push ecx
push str.DSCInfo
push str._desktop_shortcut_
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0xc78], ebx
call dword [eax + 0x10]
test eax, eax
je 0x40ac94
mov edx, dword [ebp - 0xc50]
cmp dword [edx], esi
jg 0x40acb4
mov eax, dword [ebx]
mov ecx, ebx
push edx
call dword [eax + 0x14]
xor eax, eax
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.005663a7
mov esp, ebp
pop ebp
ret 8
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x40b339
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc4c], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp - 0xc50]
xor edi, edi
or ebx, 0xffffffff
mov dword [ebp - 0xc54], edi
mov dword [ebp - 0xc74], edi
cmp dword [ecx], edi
jle 0x40b2f0
xor esi, esi
mov dword [ebp - 0xc68], edi
mov dword [ebp - 0xc60], esi
nop dword [eax]
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x40b339
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc64], eax
mov eax, dword [ebp - 0xc50]
push 0x598dcc
mov byte [ebp - 4], 1
push dword [esi + eax + 0x290]
lea eax, [ebp - 0xc64]
push str._s._s
push eax
call fcn.00406e60
mov edi, dword [ebp - 0xc64]
lea eax, [ebp - 0xc48]
push edi
push 0x104
push eax
call fcn.0056b3b9
mov eax, dword [ebp - 0xc50]
add esp, 0x1c
mov esi, dword [esi + eax + 0x294]
test esi, esi
jne 0x40ada4
xor ecx, ecx
jmp 0x40adbf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40adb0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xc4c]
call fcn.00407520
lea eax, [ebp - 0x218]
push eax
push str._SysFolder_
lea ecx, [ebp - 0xc4c]
call fcn.0040e190
mov esi, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc4c]
push dword [esi + 0x644]
push str._InsFolder_
call fcn.0040e190
push 0x598e10
push 0x598e14
lea ecx, [ebp - 0xc4c]
call fcn.0040e190
push dword [esi + 0x63c]
lea ecx, [ebp - 0xc4c]
push str._ProductName_
call fcn.0040e190
test eax, eax
jle 0x40ae5e
mov eax, dword [esi + 0x63c]
cmp dword [eax - 0xc], 0
jne 0x40ae5e
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40b2b7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40b2b7
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x40b339
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc58], eax
mov eax, 0x598e28
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc58]
test eax, 0xffff0000
jne 0x40ae9c
movzx eax, ax
push eax
call fcn.0040e020
jmp 0x40aea8
push 0xa
push 0x598e28
call fcn.00407520
mov esi, dword [ebp - 0xc58]
mov ecx, 1
mov byte [ebp - 4], 3
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40aedc
push 0x104
lea ecx, [ebp - 0xc58]
call fcn.00407480
mov esi, dword [ebp - 0xc58]
push 0x104
push esi
call fcn.00402b30
push dword [esi - 8]
push esi
call fcn.0056d04f
add esp, 8
test eax, eax
js 0x40b32f
cmp eax, dword [esi - 8]
jg 0x40b32f
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
lea ecx, [ebp - 0xc4c]
push str._ReadmeFile_
call fcn.0040e190
push dword [ebp - 0xc4c]
lea eax, [ebp - 0xa40]
push 0x104
push eax
call fcn.0056b3b9
mov eax, dword [ebp - 0xc50]
add esp, 0xc
mov edx, dword [ebp - 0xc60]
mov edx, dword [edx + eax + 0x29c]
test edx, edx
jne 0x40af53
xor ecx, ecx
jmp 0x40af72
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af60
sub ecx, ebx
sar ecx, 1
or ebx, 0xffffffff
push ecx
push edx
lea ecx, [ebp - 0xc4c]
call fcn.00407520
lea eax, [ebp - 0x218]
push eax
push str._SysFolder_
lea ecx, [ebp - 0xc4c]
call fcn.0040e190
mov eax, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc4c]
push dword [eax + 0x644]
push str._InsFolder_
call fcn.0040e190
mov eax, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc4c]
push dword [eax + 0x63c]
push str._ProductName_
call fcn.0040e190
test eax, eax
jle 0x40b008
mov eax, dword [ebp - 0xc5c]
mov eax, dword [eax + 0x63c]
cmp dword [eax - 0xc], 0
jne 0x40b008
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ae3a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ae3a
push 0x598e10
push 0x598e14
lea ecx, [ebp - 0xc4c]
call fcn.0040e190
push dword [ebp - 0xc4c]
lea eax, [ebp - 0x630]
push 0x104
push eax
call fcn.0056b3b9
mov eax, dword [ebp - 0xc50]
add esp, 0xc
mov ecx, dword [ebp - 0xc60]
mov edx, dword [ecx + eax + 0x298]
test edx, edx
jne 0x40b052
xor ecx, ecx
jmp 0x40b066
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b057
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc4c]
call fcn.00407520
lea eax, [ebp - 0x218]
push eax
push str._SysFolder_
lea ecx, [ebp - 0xc4c]
call fcn.0040e190
mov ebx, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc4c]
push dword [ebx + 0x644]
push str._InsFolder_
call fcn.0040e190
push dword [ebx + 0x63c]
lea ecx, [ebp - 0xc4c]
push str._ProductName_
call fcn.0040e190
test eax, eax
jle 0x40b0d7
mov eax, dword [ebx + 0x63c]
cmp dword [eax - 0xc], 0
jne 0x40b0d7
add esi, 0xfffffff0
or ebx, 0xffffffff
jmp 0x40afe7
push dword [ebp - 0xc4c]
lea eax, [ebp - 0x838]
push 0x104
push eax
call fcn.0056b3b9
mov eax, dword [ebp - 0xc50]
mov ebx, dword [ebp - 0xc60]
push str.INST_NML
push dword [ebx + eax + 0x2a0]
call fcn.004083d0
add esp, 0x14
mov ecx, 1
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, dword [ebp - 0xc50]
mov dword [ebp - 0x428], ecx
mov ebx, dword [ebx + eax + 0x2a4]
test ebx, ebx
jne 0x40b134
xor ecx, ecx
jmp 0x40b14f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b140
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xc4c]
call fcn.00407520
lea eax, [ebp - 0x218]
push eax
push str._SysFolder_
lea ecx, [ebp - 0xc4c]
call fcn.0040e190
mov ebx, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc4c]
push dword [ebx + 0x644]
push str._InsFolder_
call fcn.0040e190
push dword [ebx + 0x63c]
lea ecx, [ebp - 0xc4c]
push str._ProductName_
call fcn.0040e190
test eax, eax
jle 0x40b1c0
mov eax, dword [ebx + 0x63c]
cmp dword [eax - 0xc], 0
jne 0x40b1c0
add esi, 0xfffffff0
or ebx, 0xffffffff
jmp 0x40afe7
push dword [ebp - 0xc4c]
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.0056b3b9
mov eax, dword [ebp - 0xc50]
mov ecx, dword [ebp - 0xc60]
push str.INST_DEL
push dword [ecx + eax + 0x2a8]
call fcn.004083d0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x40b206
add esi, 0xfffffff0
or ebx, eax
jmp 0x40afe7
mov edi, dword [ebp - 0xc54]
mov dword [ebp - 0x21c], eax
test edi, edi
jne 0x40b232
push 0xa30
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 0xc68]
jmp 0x40b24f
mov ebx, dword [ebp - 0xc68]
lea eax, [ebx + 0xa30]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
jne 0x40b272
lea ecx, [ebp - 0xc58]
call fcn.00406710
lea ecx, [ebp - 0xc64]
mov byte [ebp - 4], 0
call fcn.00406710
or ebx, 0xffffffff
jmp 0x40b2bd
inc dword [ebp - 0xc6c]
lea edi, [ebx + eax]
mov ecx, 0x28c
mov dword [ebp - 0xc54], eax
lea esi, [ebp - 0xc48]
add ebx, 0xa30
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc58]
mov dword [ebp - 0xc68], ebx
call fcn.00406710
lea ecx, [ebp - 0xc64]
mov byte [ebp - 4], 0
call fcn.00406710
or ebx, 0xffffffff
mov edi, dword [ebp - 0xc54]
mov eax, dword [ebp - 0xc74]
mov ecx, dword [ebp - 0xc50]
inc eax
mov esi, dword [ebp - 0xc60]
add esi, 0x514
mov dword [ebp - 0xc74], eax
mov dword [ebp - 0xc60], esi
cmp eax, dword [ecx]
jl 0x40ad30
mov esi, dword [ebp - 0xc6c]
mov eax, dword [ebp - 0xc7c]
mov edx, dword [ebp - 0xc78]
push ecx
mov ecx, edx
mov dword [eax], edi
mov eax, dword [edx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0xc4c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40b328
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x40ac96
push 0x80070057
call fcn.00406af0
push 0x80004005
call fcn.00406af0
int3