Function at 0x40be30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479bfa
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4a3140]
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
push 0x1fe
xor ebx, ebx
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
mov dword [ebp - 4], 1
push ecx
mov word [ebp - 0x210], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x284]
push edx
push ebx
push ebx
mov dword [ebp - 0x284], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40bebf
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 8]
xor eax, eax
push ecx
mov esi, 7
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], ax
call fcn.00401390
push 4
push str..lnk
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.0040c300
cmp dword [0x52ce84], ebx
jne 0x40bf35
push 0x58
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x40bf2a
push eax
call fcn.00424cd0
jmp 0x40bf2c
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x52ce84], eax
lea edi, [ebp - 0x264]
call fcn.004251e0
push 0xffffffffffffffff
mov byte [ebp - 4], 4
push ebx
mov eax, edi
xor edx, edx
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], dx
call fcn.00401390
mov byte [ebp - 4], 5
cmp dword [0x52ce84], ebx
jne 0x40bfa2
push 0x58
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x40bf97
push eax
call fcn.00424cd0
jmp 0x40bf99
xor eax, eax
mov byte [ebp - 4], 5
mov dword [0x52ce84], eax
lea esi, [ebp - 0x280]
call fcn.00424da0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.0040c1f0
mov ebx, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x26c], ebx
jb 0x40bfe1
mov ecx, dword [ebp - 0x280]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 1
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, dword [ebp + 0x24]
add esp, 4
mov esi, eax
cmp dword [ebp + 0x38], ebx
jae 0x40bff9
lea edi, [ebp + 0x24]
mov eax, dword [ebp - 0x264]
cmp dword [ebp - 0x250], ebx
jae 0x40c00d
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 0x22c]
cmp dword [ebp - 0x218], ebx
jae 0x40c021
lea ecx, [ebp - 0x22c]
cmp dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x248]
jae 0x40c035
lea ebx, [ebp - 0x248]
push eax
lea edx, [ebp - 0x210]
push edx
mov edx, 0x484354
call fcn.004244b0
xor ebx, ebx
cmp esi, ebx
je 0x40c057
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
cmp dword [ebp - 0x234], esi
jb 0x40c074
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], cx
cmp dword [ebp - 0x250], esi
jb 0x40c0a6
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x264], ax
cmp dword [ebp - 0x218], esi
jb 0x40c0d3
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], dx
cmp dword [ebp + 0x1c], esi
jb 0x40c0fa
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], esi
jb 0x40c118
mov edx, dword [ebp + 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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.00456bde
mov esp, ebp
pop ebp
ret