Function at 0x40da30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5454a1
mov eax, dword fs:[0]
push eax
sub esp, 0xa64
mov eax, dword [0x5ec938]
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 eax, dword [ebp + 8]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0xa6c], edi
mov dword [ebp - 0xa70], eax
cmp eax, esi
je 0x40db19
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa44], esi
mov dword [ebp - 0xa64], esi
mov dword [ebp - 0xa54], esi
cmp eax, 1
jne 0x40dac8
mov eax, dword [edi + 0x65c]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0xa64]
push ecx
lea edx, [ebp - 0xa44]
lea ebx, [edi + 0x65c]
push edx
push str.GSCInfo
push str._group_shortcut_
mov ecx, ebx
mov dword [ebp - 0xa5c], ebx
call eax
jmp 0x40db01
cmp eax, esi
jne 0x40db19
mov edx, dword [edi + 0x65c]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0xa64]
push eax
lea eax, [ebp - 0xa44]
lea ecx, [edi + 0x65c]
push eax
push str.DSCInfo
push str._desktop_shortcut_
mov dword [ebp - 0xa5c], ecx
call edx
mov ebx, dword [ebp - 0xa5c]
cmp eax, esi
je 0x40db19
mov eax, dword [ebp - 0xa44]
cmp dword [eax], esi
jg 0x40db39
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
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.0052c2ec
mov esp, ebp
pop ebp
ret 8
call fcn.00436219
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40db53
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa40], eax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 4], esi
mov word [ebp - 0x218], cx
call fcn.0052c850
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00436219
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40dbb2
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa50], eax
movzx ecx, word [edi + 0xdb30]
push ecx
mov byte [ebp - 4], 1
call fcn.00406ed0
mov edx, dword [edi + 0x64c]
push eax
push str.readme
push edx
lea eax, [ebp - 0xa50]
push 0x5583f0
push eax
call fcn.00403bf0
mov ecx, dword [ebp - 0xa44]
add esp, 0x18
mov dword [ebp - 0xa60], esi
mov dword [ebp - 0xa68], esi
cmp dword [ecx], esi
jle 0x40df6a
mov dword [ebp - 0xa4c], esi
xor ebx, ebx
jmp 0x40dc22
xor esi, esi
call fcn.00436219
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
je 0x40db49
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa48], eax
mov ecx, dword [ebp - 0xa44]
mov edx, dword [ebx + ecx + 0x290]
push 0x558740
push edx
lea eax, [ebp - 0xa48]
push str._s._s
push eax
mov byte [ebp - 4], 2
call fcn.00403bf0
mov ecx, dword [ebp - 0xa48]
push ecx
lea edx, [ebp - 0xa3c]
push 0x104
push edx
call fcn.0052cd4a
mov eax, dword [ebp - 0xa44]
mov ecx, dword [ebx + eax + 0x294]
add esp, 0x1c
cmp ecx, esi
jne 0x40dca0
xor eax, eax
jmp 0x40dcb4
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40dca5
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xa40]
call fcn.004026f0
lea ecx, [ebp - 0x218]
push ecx
push str._SysFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
mov eax, dword [edi + 0x64c]
push eax
push str._InsFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
mov esi, dword [ebp - 0xa50]
push esi
push str._InsReadmeFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
mov edx, dword [ebp - 0xa40]
push edx
lea eax, [ebp - 0x834]
push 0x104
push eax
call fcn.0052cd4a
mov ecx, dword [ebp - 0xa44]
mov ecx, dword [ebx + ecx + 0x29c]
add esp, 0xc
test ecx, ecx
jne 0x40dd36
xor eax, eax
jmp 0x40dd54
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0xa58], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40dd41
sub eax, dword [ebp - 0xa58]
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xa40]
call fcn.004026f0
lea eax, [ebp - 0x218]
push eax
push str._SysFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
mov eax, dword [edi + 0x64c]
push eax
push str._InsFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
push esi
push str._InsReadmeFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
mov ecx, dword [ebp - 0xa40]
push ecx
lea edx, [ebp - 0x424]
push 0x104
push edx
call fcn.0052cd4a
mov eax, dword [ebp - 0xa44]
mov eax, dword [ebx + eax + 0x298]
add esp, 0xc
test eax, eax
jne 0x40ddd0
xor ecx, ecx
jmp 0x40ddf3
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0xa58], edx
jmp 0x40dde0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40dde0
sub ecx, dword [ebp - 0xa58]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa40]
call fcn.004026f0
lea eax, [ebp - 0x218]
push eax
push str._SysFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
mov eax, dword [edi + 0x64c]
push eax
push str._InsFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
push esi
push str._InsReadmeFolder_
lea ecx, [ebp - 0xa40]
call fcn.0040a2e0
mov ecx, dword [ebp - 0xa40]
push ecx
lea edx, [ebp - 0x62c]
push 0x104
push edx
call fcn.0052cd4a
mov eax, dword [ebp - 0xa44]
mov ecx, dword [ebx + eax + 0x2a0]
push 0x5bfb88
push ecx
call fcn.0040d6d0
add esp, 0x14
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
jne 0x40de87
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0xa60]
test eax, eax
jne 0x40dea7
push 0x824
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x40dec4
mov edx, dword [ebp - 0xa4c]
add edx, 0x824
push edx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov byte [ebp - 4], 1
test eax, eax
jne 0x40def0
mov eax, dword [ebp - 0xa48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40df43
mov edi, dword [ebp - 0xa4c]
inc dword [ebp - 0xa54]
add dword [ebp - 0xa4c], 0x824
add edi, eax
mov dword [ebp - 0xa60], eax
mov eax, dword [ebp - 0xa48]
mov ecx, 0x209
lea esi, [ebp - 0xa3c]
add eax, 0xfffffff0
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40df3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0xa6c]
mov eax, dword [ebp - 0xa68]
mov ecx, dword [ebp - 0xa44]
inc eax
add ebx, 0x71c
mov dword [ebp - 0xa68], eax
cmp eax, dword [ecx]
jl 0x40dc20
mov ebx, dword [ebp - 0xa5c]
lea ecx, [ebp - 0xa50]
call fcn.004022d0
mov edx, dword [ebp - 0xa70]
mov eax, dword [ebp - 0xa60]
mov dword [edx], eax
mov edx, dword [ebx]
mov eax, dword [ebp - 0xa44]
mov edx, dword [edx + 0x14]
push eax
mov ecx, ebx
call edx
mov eax, dword [ebp - 0xa50]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dfb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xa40]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dfe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xa54]
jmp 0x40db1b