Function at 0x40cc60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c629
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x450440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 0xc]
lea edi, [esi + 0x38]
mov eax, dword [ecx + edi*4]
lea edi, [ecx + edi*4]
cmp dword [eax - 0xc], 0
je 0x40ccb9
mov esi, dword [ebp + 8]
lea ecx, [eax - 0x10]
mov dword [ebp + 0xc], esi
call fcn.00405ab0
add eax, 0x10
mov dword [esi], eax
jmp 0x40ced8
cmp esi, 0xc
je 0x40ce58
cmp esi, 0xf
je 0x40cd64
mov eax, dword [ecx + 0x1ec]
xor ebx, ebx
dec eax
je 0x40ccde
dec eax
jne 0x40cce5
or ebx, 0xffffffff
jmp 0x40cce5
call fcn.0040d040
mov ebx, eax
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x40cd07
push 0x104
mov ecx, edi
call fcn.00405a40
push dword [edi]
push 0
push ebx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40cd2b
push eax
push 0x78
mov edx, str.Environment::GetShellFolder
mov ecx, str.environment.cpp
call fcn.004091e0
push ecx
mov ecx, edi
call fcn.00408b70
push dword [edi]
push esi
push str.ShellFolder__d___S
push 0x7b
push str.Environment::GetShellFolder
call fcn.0040e8c0
mov ecx, dword [edi]
add esp, 0x14
mov esi, dword [ebp + 8]
sub ecx, 0x10
mov dword [ebp + 0xc], esi
call fcn.00405ab0
add eax, 0x10
mov dword [esi], eax
jmp 0x40ced8
push 0x1c
lea eax, [ebp - 0x18]
push eax
call fcn.0040cc60
mov dword [ebp - 4], 0xb
push dword [eax]
lea eax, [ebp - 0x14]
push str._sLow
push eax
call fcn.00406090
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00404e30
mov byte [ebp - 4], 0xb
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40cdbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00402ad0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00405ab0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xb
mov ecx, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ce14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40ce42
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x1c
lea eax, [ebp - 0x1c]
push eax
call fcn.0040cc60
mov dword [ebp - 4], 4
mov ecx, edi
push eax
call fcn.00402ad0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
call fcn.0040d2a0
add esp, 4
test al, al
jne 0x40ceb7
mov ecx, edi
call fcn.0040a3c0
push str.Temp
mov ecx, edi
call fcn.00408ae0
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
sub ecx, 0x10
mov dword [ebp - 0x20], esi
call fcn.00405ab0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8