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

Disassembly:
push ebp
lea ebp, [esp - 0x828]
sub esp, 0x828
push 0xffffffffffffffff
push 0x42a166
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp + 0x824], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00408780
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x415c3e
mov ecx, ebx
call fcn.00407750
mov dword [ebp - 4], 0
mov eax, dword [0x436eac]
test al, 1
jne 0x415c8d
or eax, 1
mov dword [0x436eac], eax
mov byte [ebp - 4], 1
push 0x412
push 0
push 0x436a90
call fcn.00418400
push 0x42a7b0
mov dword [0x436ea4], 0
mov byte [0x436ea8], 0
call fcn.00417085
add esp, 0x10
mov byte [ebp - 4], 0
cmp byte [0x436ea8], 0
jne 0x415e31
push 0x410
lea eax, [ebp + 0x414]
mov byte [0x436ea8], 1
push 0
push eax
call fcn.00418400
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x415cfd
lea eax, [ebp + 0x414]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x415cf4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x415cfd
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x415cfd
xor eax, eax
mov word [ebp + 0x414], ax
lea edi, [ebp + 0x414]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x415d06
mov eax, dword [0x430d04]
lea ecx, [ebp + 0x414]
mov dword [edi], eax
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x415d22
mov eax, dword [str.2345Pic]
mov dword [ecx], eax
mov eax, dword [0x431488]
mov dword [ecx + 4], eax
mov eax, dword [0x43148c]
mov dword [ecx + 8], eax
mov eax, dword [0x431490]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415d68
xor eax, eax
mov word [ebp + 0x414], ax
push 0x412
lea eax, [ebp]
push 0
push eax
call fcn.00418400
lea ecx, [ebp + 0x414]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415d84
sub ecx, edx
sar ecx, 1
je 0x415e08
push 0x207
lea eax, [ebp + 0x414]
push eax
lea eax, [ebp]
push eax
call fcn.0041c9c7
lea ecx, [ebp]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415db3
sub ecx, edx
sar ecx, 1
je 0x415e08
lea edi, [ebp]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x415dd0
mov eax, dword [0x430d04]
mov dword [edi], eax
lea edi, [ebp]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x415df0
mov ecx, 7
mov esi, 0x42b280
rep movsd dword es:[edi], dword [esi]
call fcn.0040aa00
lea ecx, [ebp]
mov edx, eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415e15
sub ecx, esi
sar ecx, 1
je 0x415e31
lea eax, [ebp]
mov ecx, edx
push eax
call fcn.0040ab00
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x415e4a
mov ecx, ebx
call fcn.00407760
mov dword [ebp - 0x18], 0
mov eax, 0x436a90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x824]
xor ecx, ebp
call fcn.00416b58
lea esp, [ebp + 0x828]
pop ebp
ret