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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e90c
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4c8748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xfde9
lea eax, [esi + 0x50]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004640a0
cmp dword [ebp - 0x27c], 8
lea eax, [esi + 0xf8]
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0
cmovae ecx, dword [ebp - 0x290]
push eax
push ecx
call fcn.00414a30
add esp, 0x14
cmp dword [esi + 0x110], 0
je 0x415521
lea eax, [esi + 0x144]
push eax
lea ecx, [ebp - 0x260]
call fcn.004046c0
lea eax, [esi + 0x114]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x278]
call fcn.004046c0
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 3
push eax
lea eax, [esi + 0x12c]
push eax
call fcn.00465d70
add esp, 8
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415500
cmp dword [ebp - 0x268], 0
je 0x415500
cmp dword [ebp - 0x250], 0
je 0x415500
push 0x20a
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.00478960
add esp, 0xc
lea eax, [ebp - 0x230]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push str..lnk
push eax
call fcn.00479624
add esp, 8
test eax, eax
je 0x415464
lea eax, [ebp - 0x230]
push eax
call fcn.004664a0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x260]
cmovae ecx, dword [ebp - 0x248]
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x230]
push ecx
push eax
call fcn.004663d0
add esp, 0x10
jmp 0x415500
xor eax, eax
mov dword [ebp - 0x1c], 0x75002e
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x18], 0x6c0072
push eax
call fcn.00479624
add esp, 8
test eax, eax
jne 0x4154a7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x230]
push 0x105
push eax
call fcn.0047c5fe
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
call fcn.004664a0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
push 0xffffffffffffffff
cmovae ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x24], 0x4e004c
push ecx
push eax
mov dword [ebp - 0x20], 0x4b
call fcn.004662a0
add esp, 0x18
lea ecx, [ebp - 0x248]
call fcn.00401cf0
lea ecx, [ebp - 0x278]
call fcn.00401cf0
lea ecx, [ebp - 0x260]
call fcn.00401cf0
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x41555d
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415553
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41557b
push edx
push ecx
call fcn.00476d79
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047702f
mov esp, ebp
pop ebp
ret 8
call fcn.0047c5ae
int3