Function at 0x48ce60
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e131e
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5203c4]
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 eax, dword [0x527b7c]
test eax, eax
jne 0x48cece
push 0x4eb980
push 0x2c
call fcn.004a8e8b
add esp, 8
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x48cec0
mov ecx, eax
call fcn.00475760
jmp 0x48cec2
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x527b7c], eax
push str.initInstPath
push str.App___SetupHelper
push eax
call fcn.00477180
call fcn.0048b810
push 0x208
push 0
push 0x5282a0
call fcn.004ad7b0
add esp, 0x18
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48d571
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x244], eax
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360GameAssistant.exe
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x48cf48
movzx esi, ax
push 0
push esi
call fcn.004763e0
add esp, 8
test eax, eax
je 0x48cf5a
push esi
push eax
lea ecx, [ebp - 0x244]
call fcn.0048b6d0
jmp 0x48cf5a
push 0x48
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360GameAssistant.exe
lea ecx, [ebp - 0x244]
call fcn.00477ed0
mov dword [ebp - 4], 2
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48d57b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 3
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x48d585
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov eax, str.Path
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x48cfd0
movzx esi, ax
push 0
push esi
call fcn.004763e0
add esp, 8
test eax, eax
je 0x48cfe2
push esi
push eax
lea ecx, [ebp - 0x234]
call fcn.0048b6d0
jmp 0x48cfe2
push 4
push str.Path
lea ecx, [ebp - 0x234]
call fcn.00477ed0
push 0x80000001
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0048ae80
mov edx, dword [ebp - 0x234]
or ebx, 0xffffffff
add esp, 0x10
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d02c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x240]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d059
push dword [ebp - 0x240]
push 0x104
push 0x5282a0
call fcn.004b9505
add esp, 0xc
jmp 0x48d510
push 0x4e84b4
lea eax, [ebp - 0x230]
mov ecx, 0x528720
push eax
call fcn.00493920
cmp dword [ebp - 0x220], 0
je 0x48d0a5
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
jb 0x48d08d
mov eax, dword [ebp - 0x230]
push eax
push 0x104
push 0x5282a0
call fcn.004b9505
add esp, 0xc
jmp 0x48d49f
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
push 0x14
mov byte [ebp - 4], 7
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
call fcn.004a8c07
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 8
push eax
call fcn.00486e50
mov eax, dword [ebp - 0x250]
add esp, 8
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x264], ecx
cmp eax, ecx
je 0x48d347
lea esp, [esp]
mov edi, dword [eax]
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x48d151
cmp ecx, dword [esi]
jne 0x48d151
lock inc dword [eax]
jmp 0x48d1a8
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 2
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x48d59e
mov ecx, dword [ebx]
lea eax, [esi + 0x10]
mov dword [esi + 4], ecx
mov ecx, dword [ebx]
inc ecx
add ecx, ecx
je 0x48d1a5
test eax, eax
je 0x48d195
push ecx
test edi, edi
je 0x48d18a
push edi
push eax
call fcn.004ad230
add esp, 0xc
jmp 0x48d1a5
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
call fcn.004b588e
mov dword [eax], 0x16
call fcn.004b03ff
or ebx, 0xffffffff
lea eax, [esi + 0x10]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 9
push eax
call fcn.00487c70
add esp, 4
test eax, eax
je 0x48d30b
mov eax, dword [ebp - 0x23c]
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], ecx
mov edi, dword [eax + 4]
cmp byte [edi + 0xd], bl
jne 0x48d25d
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x268], edi
test eax, eax
je 0x48d571
mov edx, dword [edi + 0x10]
mov ecx, eax
mov si, word [edx]
cmp si, word [ecx]
jne 0x48d229
test si, si
je 0x48d225
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x48d229
add edx, 4
add ecx, 4
test si, si
jne 0x48d203
xor ecx, ecx
jmp 0x48d22e
sbb ecx, ecx
or ecx, 1
shr ecx, 0x1f
test cl, cl
je 0x48d242
mov edi, dword [edi + 8]
xor ebx, ebx
mov ecx, dword [ebp - 0x254]
jmp 0x48d251
mov ecx, edi
mov ebx, 1
mov edi, dword [edi]
mov dword [ebp - 0x254], ecx
cmp byte [edi + 0xd], 0
je 0x48d1f0
mov edi, dword [ebp - 0x268]
cmp byte [ecx + 0xd], 0
jne 0x48d28d
lea eax, [ecx + 0x10]
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00476070
test al, al
je 0x48d308
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x238], 0xccccccc
je 0x48d599
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x270], eax
push 0x14
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x26c], 0
call fcn.004a8c07
mov esi, eax
add esp, 4
mov dword [ebp - 0x26c], esi
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x10]
push eax
call fcn.0047a310
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x23c]
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
push ebx
mov dword [esi + 8], eax
push edi
mov word [esi + 0xc], 0
mov dword [ebp - 0x26c], 0
call fcn.00408240
or ebx, 0xffffffff
mov edx, dword [ebp - 0x234]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d32c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x25c]
add eax, 4
mov dword [ebp - 0x25c], eax
cmp eax, dword [ebp - 0x264]
jne 0x48d130
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00487210
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xc
push 0
push eax
call fcn.004ad7b0
add esp, 0x14
lea eax, [ebp - 0x218]
push 0
push 0x2a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x48d3a4
js 0x48d58f
mov ax, word [eax]
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
push 0x5282a0
call fcn.004b9505
mov edx, dword [ebp - 0x260]
add esp, 0xc
mov byte [ebp - 4], 8
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d3de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x23c]
push dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
mov ecx, eax
call fcn.00475230
push 0x14
push dword [ebp - 0x23c]
call fcn.004a8c37
mov esi, dword [ebp - 0x250]
add esp, 8
mov byte [ebp - 4], 6
test esi, esi
je 0x48d49f
mov edi, dword [ebp - 0x24c]
cmp esi, edi
je 0x48d447
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d43a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x48d421
mov esi, dword [ebp - 0x250]
mov eax, dword [ebp - 0x248]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x48d477
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d5a3
push ecx
push esi
call fcn.004a8c37
add esp, 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
push str.GameAssistant
push 0x5282a0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x48d4f3
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d4e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d5a8
push edx
push ecx
call fcn.004a8c37
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov edx, dword [ebp - 0x240]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d531
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48d553
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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.004a8e4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00476460
push 0x80004005
call fcn.00476460
push 0x80004005
call fcn.00476460
push 0x80070057
call fcn.00476460
call fcn.00408950
call fcn.00478020
call fcn.004b040f
call fcn.004b040f
int3