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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c79d3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x6540c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x29c], 0
push 0
movups xmmword [esi], xmm0
push 0x646054
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004027e0
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
mov edi, 1
push eax
mov dword [ebp - 0x29c], edi
call fcn.0048fce0
add esp, 0xc
cmp dword [esi + 0x10], 0
jne 0x414b7c
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x414966
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x254], 0
movups xmmword [ebp - 0x268], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4147a0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.004027e0
lea edx, [ebp - 0x268]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.00405290
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x29c], 0x11
jbe 0x41481f
cmp dword [ebp - 0x254], 7
lea ecx, [ebp - 0x268]
mov eax, dword [ebp - 0x258]
mov edx, 0x5c
cmova ecx, dword [ebp - 0x268]
cmp dx, word [ecx + eax*2 - 2]
je 0x41481f
push edx
lea ecx, [ebp - 0x250]
call fcn.00409b90
lea eax, [ebp - 0x250]
cmp esi, eax
je 0x4148a9
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x414866
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41485c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c49
mov eax, edx
push ecx
push eax
call fcn.004392c8
add esp, 8
movups xmm0, xmmword [ebp - 0x250]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
xor ecx, ecx
movups xmmword [esi], xmm0
mov word [ebp - 0x250], cx
movq xmm0, qword [ebp - 0x240]
mov dword [ebp - 0x240], eax
mov eax, 7
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x23c], eax
jmp 0x4148af
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 1
mov edi, 1
mov dword [ebp - 0x29c], edi
cmp eax, 7
jbe 0x4148f8
mov edx, dword [ebp - 0x250]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4148ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c49
push ecx
push edx
call fcn.004392c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp ecx, 7
jbe 0x414958
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41494e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c49
push ecx
push edx
call fcn.004392c8
add esp, 8
push 0xc
push str.AAALauncher
mov ecx, esi
call fcn.00409e30
cmp dword [esi + 0x10], 0
jne 0x414b7c
lea eax, [ebp - 0x298]
push eax
call fcn.00414420
mov edi, eax
mov edx, edi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x238]
call fcn.00405290
cmp dword [ebp - 0x228], 0
mov dword [ebp - 0x29c], 3
jbe 0x4149ca
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x4149af
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
mov edx, 0x5c
cmp dx, word [ecx + eax*2 - 2]
je 0x4149ca
push edx
lea ecx, [ebp - 0x238]
call fcn.00409b90
push 0xe
push str.CacheLauncher
lea ecx, [ebp - 0x238]
call fcn.00409e30
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x280]
movq qword [ebp - 0x2a8], xmm1
movq qword [ebp - 0x270], xmm1
movups xmmword [ebp - 0x2b8], xmm0
movups xmmword [ebp - 0x280], xmm0
cmp esi, eax
je 0x414a8d
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x414a67
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x414a4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c4e
mov eax, edx
push ecx
push eax
call fcn.004392c8
movups xmm0, xmmword [ebp - 0x2b8]
add esp, 8
movq xmm1, qword [ebp - 0x2a8]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov ecx, 7
movups xmmword [esi], xmm0
mov word [ebp - 0x280], ax
movq qword [esi + 0x10], xmm1
jmp 0x414a93
mov ecx, dword [ebp - 0x26c]
cmp ecx, 7
jbe 0x414acd
mov edx, dword [ebp - 0x280]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414ac3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c4e
push ecx
push edx
call fcn.004392c8
add esp, 8
mov byte [ebp - 4], 3
mov edi, 5
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x29c], edi
cmp ecx, 7
jbe 0x414b1c
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414b12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c4e
push ecx
push edx
call fcn.004392c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp ecx, 7
jbe 0x414b7c
mov edx, dword [ebp - 0x298]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414b72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c4e
push ecx
push edx
call fcn.004392c8
add esp, 8
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x414b86
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414c27
mov edx, esi
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x238]
call fcn.00405290
or edi, 8
cmp dword [ebp - 0x228], 0
mov dword [ebp - 0x29c], edi
jbe 0x414be0
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x414bc5
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov edx, 0x5c
cmp dx, word [ecx + eax*2 - 2]
je 0x414be0
push edx
lea ecx, [ebp - 0x238]
call fcn.00409b90
lea ecx, [ebp - 0x238]
call fcn.00405020
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x414c27
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414c1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414c53
push ecx
push edx
call fcn.004392c8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043928a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0049452a
call fcn.0049452a
call fcn.0049452a
int3