Function at 0x42cc64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x42cc6d
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00404fcc
mov eax, dword [ebp + 8]
call fcn.00404fcc
xor eax, eax
push ebp
push 0x42d0c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.0042b338
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0042b368
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov edx, 0x42d0d8
call fcn.004097d8
push 0
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.0042b338
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0042b368
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov edx, 0x42d0ec
call fcn.004097d8
push ebp
push 0
call sub.kernel32.dll_GetModuleHandleA_2
mov edx, eax
mov eax, 0x42d100
call fcn.0042cb00
pop ecx
push ebp
mov edx, ebx
mov eax, 0x42d10c
call fcn.0042cb00
pop ecx
cmp dword [ebp - 8], 0
jne 0x42cd22
lea eax, [ebp - 8]
mov edx, 0x42d118
call fcn.00404bb4
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, 0x42d128
call fcn.004097d8
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, 0x42d13c
call fcn.004097d8
push 0
mov eax, dword [ebp - 4]
mov ecx, 0x42d150
mov edx, 0x42d15c
call fcn.004097d8
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetLocalTime
lea eax, [ebp - 0x44]
push eax
movzx eax, word [ebp - 0x30]
mov cl, 0x30
mov edx, 4
call fcn.0040a44c
push dword [ebp - 0x44]
push 0x42d16c
lea eax, [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x2e]
mov cl, 0x30
mov edx, 2
call fcn.0040a44c
push dword [ebp - 0x48]
push 0x42d16c
lea eax, [ebp - 0x4c]
push eax
movzx eax, word [ebp - 0x2a]
mov cl, 0x30
mov edx, 2
call fcn.0040a44c
push dword [ebp - 0x4c]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00404e9c
lea eax, [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x28]
mov cl, 0x30
mov edx, 2
call fcn.0040a44c
push dword [ebp - 0x50]
push 0x42d178
lea eax, [ebp - 0x54]
push eax
movzx eax, word [ebp - 0x26]
mov cl, 0x30
mov edx, 2
call fcn.0040a44c
push dword [ebp - 0x54]
push 0x42d178
lea eax, [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x24]
mov cl, 0x30
mov edx, 2
call fcn.0040a44c
push dword [ebp - 0x58]
push 0x42d184
lea eax, [ebp - 0x5c]
push eax
movzx eax, word [ebp - 0x22]
mov cl, 0x30
mov edx, 1
call fcn.0040a44c
push dword [ebp - 0x5c]
push 0x42d190
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.00404e9c
push dword [ebp - 0xc]
push 0x42d184
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e9c
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, 0x42d19c
call fcn.004097d8
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, 0x42d1ac
call fcn.004097d8
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, 0x42d1bc
call fcn.004097d8
push 0x7fffffff
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, 1
mov eax, 0x42d1d0
call fcn.00409b00
test eax, eax
jg 0x42cec8
push 0x7fffffff
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, 1
mov eax, 0x42d1e8
call fcn.00409b00
test eax, eax
jle 0x42d081
lea eax, [ebp - 0x18]
push eax
call sub.shell32.dll_SHGetMalloc_1
test eax, eax
jne 0x42d081
push 0x7fffffff
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, 1
mov eax, 0x42d1d0
call fcn.00409b00
test eax, eax
jle 0x42cfad
lea eax, [ebp - 0x1c]
push eax
push 0x1a
push 0xffffffffffffffff
call sub.shell32.dll_SHGetSpecialFolderLocation_1
test eax, eax
jne 0x42cfad
lea eax, [ebp - 0x20]
mov edx, 0x105
call fcn.00405168
mov eax, dword [ebp - 0x20]
call fcn.00404fdc
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.shell32.dll_SHGetPathFromIDListA_1
test eax, eax
je 0x42cfa0
mov eax, dword [ebp - 0x20]
call fcn.00404fdc
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00404d14
cmp dword [ebp - 0x20], 0
je 0x42cf73
mov eax, dword [ebp - 0x20]
call fcn.00404ddc
mov edx, dword [ebp - 0x20]
cmp byte [edx + eax - 1], 0x5c
jne 0x42cf73
mov eax, dword [ebp - 0x20]
call fcn.00404ddc
mov edx, eax
lea eax, [ebp - 0x20]
mov ecx, 1
call fcn.0040507c
cmp dword [ebp - 0x20], 0
jne 0x42cf8e
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.0042b338
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x20]
call fcn.0042b3e4
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov edx, 0x42d1d0
call fcn.004097d8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
push 0x7fffffff
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, 1
mov eax, 0x42d1e8
call fcn.00409b00
test eax, eax
jle 0x42d081
lea eax, [ebp - 0x1c]
push eax
push 0x23
push 0xffffffffffffffff
call sub.shell32.dll_SHGetSpecialFolderLocation_1
test eax, eax
jne 0x42d081
lea eax, [ebp - 0x20]
mov edx, 0x105
call fcn.00405168
mov eax, dword [ebp - 0x20]
call fcn.00404fdc
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.shell32.dll_SHGetPathFromIDListA_1
test eax, eax
je 0x42d074
mov eax, dword [ebp - 0x20]
call fcn.00404fdc
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00404d14
cmp dword [ebp - 0x20], 0
je 0x42d047
mov eax, dword [ebp - 0x20]
call fcn.00404ddc
mov edx, dword [ebp - 0x20]
cmp byte [edx + eax - 1], 0x5c
jne 0x42d047
mov eax, dword [ebp - 0x20]
call fcn.00404ddc
mov edx, eax
lea eax, [ebp - 0x20]
mov ecx, 1
call fcn.0040507c
cmp dword [ebp - 0x20], 0
jne 0x42d062
lea edx, [ebp - 0x64]
xor eax, eax
call fcn.0042b338
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x20]
call fcn.0042b3e4
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov edx, 0x42d1e8
call fcn.004097d8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d0c8
lea eax, [ebp - 0x64]
mov edx, 0xd
call fcn.00404b40
lea eax, [ebp - 0x20]
call fcn.00404b1c
lea eax, [ebp - 0x18]
call fcn.00406814
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404b40
lea eax, [ebp + 8]
call fcn.00404b1c
ret