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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c9ba
mov eax, dword fs:[0]
push eax
sub esp, 0x8c0
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84c], ecx
push 0xc
lea ecx, [ebp - 0x828]
call fcn.10005000
lea ecx, [ebp - 0x828]
call fcn.1003f410
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x818]
call fcn.10005000
lea ecx, [ebp - 0x818]
call fcn.10007cc0
mov byte [ebp - 4], 1
push 0x101e06ec
mov eax, dword [ebp - 0x84c]
mov ecx, dword [eax + 0x64]
push ecx
push 0x101e070c
lea edx, [ebp - 0x818]
push edx
call fcn.10012d40
add esp, 0x10
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.10155de0
add esp, 0xc
lea ecx, [ebp - 0x810]
push ecx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x840]
push eax
call fcn.1001f7d0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x84c]
mov edx, dword [ecx + 0x14]
push edx
lea ecx, [ebp - 0x8cc]
call fcn.1001f6e0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x840]
call fcn.1001f780
push 4
lea ecx, [ebp - 0x814]
call fcn.10005000
lea ecx, [ebp - 0x814]
call fcn.10007cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x838]
push ecx
lea ecx, [ebp - 0x848]
call fcn.1001f630
push 4
lea ecx, [ebp - 0x81c]
call fcn.10005000
push 0x101e0718
lea ecx, [ebp - 0x81c]
call fcn.1000af00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x818]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100112bb
mov edx, dword [ebp - 0x84c]
movzx eax, byte [edx + 0xd]
test eax, eax
je 0x100112bb
push 0x5c
lea ecx, [ebp - 0x818]
call fcn.10012170
push eax
lea ecx, [ebp - 0x8bc]
push ecx
lea ecx, [ebp - 0x818]
call fcn.10012060
mov dword [ebp - 0x8b4], eax
mov edx, dword [ebp - 0x8b4]
mov dword [ebp - 0x8b8], edx
mov byte [ebp - 4], 4
push 0
push 0
push 0
mov ecx, dword [ebp - 0x8b8]
call fcn.100055d0
push eax
push 0
lea ecx, [ebp - 0x818]
call fcn.100055d0
push eax
lea ecx, [ebp - 0x81c]
call fcn.100055d0
push eax
lea ecx, [ebp - 0x828]
call fcn.1003fa00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8bc]
call fcn.10009c10
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x828]
call fcn.10040140
mov dword [ebp - 0x8c0], eax
mov ecx, dword [ebp - 0x8c0]
mov dword [ebp - 0x850], ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x81c]
push edx
mov eax, dword [ebp - 0x850]
push eax
lea ecx, [ebp - 0x85c]
push ecx
call fcn.10005430
add esp, 0xc
mov dword [ebp - 0x854], eax
mov edx, dword [ebp - 0x854]
mov dword [ebp - 0x858], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x858]
push eax
lea ecx, [ebp - 0x814]
call fcn.10005520
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x85c]
call fcn.10009c10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x860]
call fcn.10009c10
push 0x101e0730
lea ecx, [ebp - 0x814]
call fcn.1001fb90
lea ecx, [ebp - 0x814]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100112bb
call fcn.1003ecd0
test eax, eax
je 0x10011297
lea ecx, [ebp - 0x814]
call fcn.100055d0
mov ecx, eax
call fcn.1003ebd0
mov ecx, dword [ebp - 0x84c]
cmp dword [ecx + 0x14], 0
jle 0x100112bb
lea ecx, [ebp - 0x814]
call fcn.100055d0
mov edx, eax
lea ecx, [ebp - 0x838]
call fcn.1003ef30
lea ecx, [ebp - 0x818]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100113f1
mov edx, dword [ebp - 0x84c]
movzx eax, byte [edx + 0x1b]
test eax, eax
je 0x100113f1
lea ecx, [ebp - 0x818]
call fcn.100055d0
push eax
push 0x101e073c
lea ecx, [ebp - 0x828]
call fcn.1003fc00
lea ecx, [ebp - 0x878]
push ecx
lea ecx, [ebp - 0x828]
call fcn.10040120
mov dword [ebp - 0x864], eax
mov edx, dword [ebp - 0x864]
mov dword [ebp - 0x868], edx
mov byte [ebp - 4], 7
push str.SteamBerrySteamBerry
mov eax, dword [ebp - 0x868]
push eax
lea ecx, [ebp - 0x874]
push ecx
call fcn.10005370
add esp, 0xc
mov dword [ebp - 0x86c], eax
mov edx, dword [ebp - 0x86c]
mov dword [ebp - 0x870], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x870]
push eax
lea ecx, [ebp - 0x814]
call fcn.10005520
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x874]
call fcn.10009c10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x878]
call fcn.10009c10
push 0x101e0794
lea ecx, [ebp - 0x814]
call fcn.1001fb90
lea ecx, [ebp - 0x814]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100113f1
call fcn.1003ecd0
test eax, eax
je 0x100113cd
lea ecx, [ebp - 0x814]
call fcn.100055d0
mov ecx, eax
call fcn.1003ebd0
mov ecx, dword [ebp - 0x84c]
cmp dword [ecx + 0x14], 0
jle 0x100113f1
lea ecx, [ebp - 0x814]
call fcn.100055d0
mov edx, eax
lea ecx, [ebp - 0x838]
call fcn.1003ef30
push str.uninst.exe
mov edx, dword [ebp - 0x84c]
add edx, 0x64
push edx
lea eax, [ebp - 0x880]
push eax
call fcn.10005370
add esp, 0xc
mov dword [ebp - 0x87c], eax
mov ecx, dword [ebp - 0x87c]
mov dword [ebp - 0x8c4], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x8c4]
push edx
lea ecx, [ebp - 0x818]
call fcn.10005520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x880]
call fcn.10009c10
lea ecx, [ebp - 0x818]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001157c
mov eax, dword [ebp - 0x84c]
movzx ecx, byte [eax + 0x1b]
test ecx, ecx
je 0x1001157c
lea ecx, [ebp - 0x818]
call fcn.100055d0
push eax
push 0x101e07b8
lea ecx, [ebp - 0x828]
call fcn.1003fc00
lea edx, [ebp - 0x898]
push edx
lea ecx, [ebp - 0x828]
call fcn.10040120
mov dword [ebp - 0x884], eax
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x888], eax
mov byte [ebp - 4], 0xa
push str.SteamBerry_
mov ecx, dword [ebp - 0x888]
push ecx
lea edx, [ebp - 0x894]
push edx
call fcn.10005370
add esp, 0xc
mov dword [ebp - 0x88c], eax
mov eax, dword [ebp - 0x88c]
mov dword [ebp - 0x890], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x890]
push ecx
lea ecx, [ebp - 0x814]
call fcn.10005520
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x894]
call fcn.10009c10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x898]
call fcn.10009c10
push 0x101e0820
lea ecx, [ebp - 0x814]
call fcn.1001fb90
lea ecx, [ebp - 0x814]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001157c
call fcn.1003ecd0
test eax, eax
je 0x10011558
lea ecx, [ebp - 0x814]
call fcn.100055d0
mov ecx, eax
call fcn.1003ebd0
mov edx, dword [ebp - 0x84c]
cmp dword [edx + 0x14], 0
jle 0x1001157c
lea ecx, [ebp - 0x814]
call fcn.100055d0
mov edx, eax
lea ecx, [ebp - 0x838]
call fcn.1003ef30
lea eax, [ebp - 0x8b0]
push eax
lea ecx, [ebp - 0x828]
call fcn.10040120
mov dword [ebp - 0x89c], eax
mov ecx, dword [ebp - 0x89c]
mov dword [ebp - 0x8a0], ecx
mov byte [ebp - 4], 0xc
push 0x101e082c
mov edx, dword [ebp - 0x8a0]
push edx
lea eax, [ebp - 0x8ac]
push eax
call fcn.10005370
add esp, 0xc
mov dword [ebp - 0x8a4], eax
mov ecx, dword [ebp - 0x8a4]
mov dword [ebp - 0x8a8], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x8a8]
push edx
lea ecx, [ebp - 0x814]
call fcn.10005520
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x8ac]
call fcn.10009c10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8b0]
call fcn.10009c10
lea ecx, [ebp - 0x814]
call fcn.100055d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001165a
call fcn.1003ecd0
test eax, eax
je 0x10011636
lea ecx, [ebp - 0x814]
call fcn.100055d0
mov ecx, eax
call fcn.1003ebd0
mov eax, dword [ebp - 0x84c]
cmp dword [eax + 0x14], 0
jle 0x1001165a
lea ecx, [ebp - 0x814]
call fcn.100055d0
mov edx, eax
lea ecx, [ebp - 0x838]
call fcn.1003ef30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x81c]
call fcn.10009c10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x814]
call fcn.10009c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x818]
call fcn.10009c10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.1003f570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret