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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1dd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push 2
lea eax, [ebp - 0x42c]
push eax
push ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x481004
lea edi, [ebp - 0x42c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x480f80
mov cx, word [0x6055c4]
mov eax, dword [ebp + 8]
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x480f97
lea edi, [ebp - 0x42c]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x480fb0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x42c]
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x480fd0
mov edx, dword [str..lnk]
mov cl, byte [0x607ce0]
mov dword [eax], edx
lea edx, [ebp - 0x42c]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
cmp al, bl
jne 0x4810a4
push ebx
push 0x17
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x481205
lea edi, [ebp - 0x42c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x481024
mov cx, word [0x6055c4]
mov eax, dword [ebp + 8]
mov word [edi], cx
mov ecx, eax
jmp 0x481040
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x481040
lea edi, [ebp - 0x42c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x481052
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x42c]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x481070
mov edx, dword [str..lnk]
mov cl, byte [0x607ce0]
mov dword [eax], edx
lea edx, [ebp - 0x42c]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
cmp al, bl
je 0x481205
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x481205
lea eax, [ebp - 0x14]
push eax
push 0x621c24
push 1
push ebx
push 0x622d28
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4810e6
push 0x637c4c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 0xff67697f
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x18]
push ecx
push 0x622d18
push eax
call edx
cmp eax, ebx
jge 0x481112
push 0x637c4c
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0xff67697f
call sub.msvcrt.dll__CxxThrowException
push 0x104
lea ecx, [ebp - 0x634]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x42c]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x634]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebx
jge 0x48115b
push 0x637c4c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], 0xff67697f
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 2
push ebx
push 0x400
lea ecx, [ebp - 0xa34]
push ecx
push eax
call edx
cmp eax, ebx
jge 0x48118e
push 0x637c4c
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0xff67697f
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0xa34]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x4811bd
mov byte [eax + 1], bl
lea ecx, [ebp - 0xa34]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00480950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4