Function at 0x414d60
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 0x5c8003
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.00402780
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.00490360
add esp, 0xc
cmp dword [esi + 0x10], 0
jne 0x41522c
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x415016
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 0x414e50
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.00402780
lea edx, [ebp - 0x268]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.00405200
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x29c], 0x11
jbe 0x414ecf
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 0x414ecf
push edx
lea ecx, [ebp - 0x250]
call fcn.00409fa0
lea eax, [ebp - 0x250]
cmp esi, eax
je 0x414f59
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x414f16
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x414f0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152f9
mov eax, edx
push ecx
push eax
call fcn.00439938
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 0x414f5f
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 1
mov edi, 1
mov dword [ebp - 0x29c], edi
cmp eax, 7
jbe 0x414fa8
mov edx, dword [ebp - 0x250]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414f9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152f9
push ecx
push edx
call fcn.00439938
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 0x415008
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414ffe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152f9
push ecx
push edx
call fcn.00439938
add esp, 8
push 0xb
push str.TMLauncher
mov ecx, esi
call fcn.0040a240
cmp dword [esi + 0x10], 0
jne 0x41522c
lea eax, [ebp - 0x298]
push eax
call fcn.00414ad0
mov edi, eax
mov edx, edi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x238]
call fcn.00405200
cmp dword [ebp - 0x228], 0
mov dword [ebp - 0x29c], 3
jbe 0x41507a
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x41505f
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
mov edx, 0x5c
cmp dx, word [ecx + eax*2 - 2]
je 0x41507a
push edx
lea ecx, [ebp - 0x238]
call fcn.00409fa0
push 0xe
push str.CacheLauncher
lea ecx, [ebp - 0x238]
call fcn.0040a240
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 0x41513d
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x415117
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4150fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152fe
mov eax, edx
push ecx
push eax
call fcn.00439938
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 0x415143
mov ecx, dword [ebp - 0x26c]
cmp ecx, 7
jbe 0x41517d
mov edx, dword [ebp - 0x280]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415173
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152fe
push ecx
push edx
call fcn.00439938
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 0x4151cc
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4151c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152fe
push ecx
push edx
call fcn.00439938
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 0x41522c
mov edx, dword [ebp - 0x298]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415222
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152fe
push ecx
push edx
call fcn.00439938
add esp, 8
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x415236
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4152d7
mov edx, esi
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x238]
call fcn.00405200
or edi, 8
cmp dword [ebp - 0x228], 0
mov dword [ebp - 0x29c], edi
jbe 0x415290
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x415275
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov edx, 0x5c
cmp dx, word [ecx + eax*2 - 2]
je 0x415290
push edx
lea ecx, [ebp - 0x238]
call fcn.00409fa0
lea ecx, [ebp - 0x238]
call fcn.00404f90
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x4152d7
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4152cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415303
push ecx
push edx
call fcn.00439938
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.004398fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00494baa
call fcn.00494baa
call fcn.00494baa
int3