Function at 0x4022c0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f090
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x5b7f60]
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 edi, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov dword [ebp - 0x150], ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00534390
mov esi, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x154]
push ecx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jge 0x402508
cmp esi, 0x2e
jne 0x40249c
cmp eax, 0x80070057
jne 0x40249c
mov dword [ebp - 0x148], 0x58dcc8
mov dword [ebp - 0x11c], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x11c]
xor edx, edx
mov dword [ebp - 0x130], 7
mov dword [ebp - 0x134], ebx
mov word [ebp - 0x144], dx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x11c]
lea eax, [ebp + eax - 0x11c]
push ecx
call esi
lea edx, [ebp - 0x148]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x174], edx
push 1
lea eax, [ebp - 0x149]
push eax
push str.C:Documents_and_SettingsAll_UsersDocuments_
mov byte [ebp - 4], 1
call fcn.00532e79
add esp, 4
push eax
push str.C:Documents_and_SettingsAll_UsersDocuments_
lea ecx, [ebp - 0x148]
call fcn.00403000
mov ecx, dword [ebp - 0x148]
mov eax, dword [ecx + 4]
mov edx, dword [ebp + eax - 0x148]
lea eax, [ebp + eax - 0x148]
push edx
call esi
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x128]
lea esi, [esi + esi + 2]
cmp esi, dword [ebp - 0x124]
jae 0x402424
cmp eax, ebx
jne 0x402446
push eax
call fcn.0043097b
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x124], esi
call fcn.00430986
add esp, 8
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x124]
push 3
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.00401bb0
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40248e
push 0xa0
lea ecx, [ebp - 0x170]
call fcn.00401ca0
push 0x5aaff4
lea eax, [ebp - 0x170]
push eax
call fcn.00533fcd
push 1
lea ecx, [ebp - 0x148]
push ecx
jmp 0x402683
lea ecx, [ebp - 0x170]
call fcn.00531d21
mov dword [ebp - 4], 3
push 4
mov dword [ebp - method.is::win32_exception.virtual_0], vtable.is::win32_exception.0
mov dword [ebp - 0x164], 0xa0
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x15c], bl
call fcn.0043094c
add esp, 4
cmp eax, ebx
je 0x4024ea
mov dword [eax], 1
mov dword [ebp - 0x158], eax
jmp 0x4024f0
mov dword [ebp - 0x158], ebx
push 0x5aaff4
lea edx, [ebp - 0x170]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00533fcd
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x114]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40256e
lea ecx, [ebp - 0x170]
call fcn.00531d21
mov dword [ebp - 4], 4
push 4
mov dword [ebp - method.is::win32_exception.virtual_0], vtable.is::win32_exception.0
mov dword [ebp - 0x164], 0xa0
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x15c], bl
call fcn.0043094c
add esp, 4
cmp eax, ebx
je 0x4024ea
mov dword [eax], 1
mov dword [ebp - 0x158], eax
jmp 0x4024f0
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x4025a2
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 0x154]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x148], 0x58dcc8
mov dword [ebp - 0x11c], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x11c]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x118], eax
xor eax, eax
mov word [ebp - 0x144], ax
mov dword [ebp - 0x130], 7
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov eax, dword [ecx + 4]
mov edx, dword [ebp + eax - 0x11c]
lea eax, [ebp + eax - 0x11c]
push edx
call esi
lea eax, [ebp - 0x148]
mov dword [ebp - 4], 5
mov dword [ebp - 0x174], eax
push 1
lea ecx, [ebp - 0x149]
push ecx
lea edx, [ebp - 0x114]
push edx
mov byte [ebp - 4], 6
call fcn.00532e79
add esp, 4
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x148]
call fcn.00403000
mov ecx, dword [ebp - 0x148]
mov eax, dword [ecx + 4]
mov edx, dword [ebp + eax - 0x148]
lea eax, [ebp + eax - 0x148]
push edx
call esi
push 1
push 0x58daa4
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 7
call fcn.00401f10
push eax
mov ecx, edi
call fcn.00402e40
lea ecx, [ebp - 0x148]
call fcn.004026f0
mov eax, edi
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.005319a6
mov esp, ebp
pop ebp
ret