Function at 0x545ef7
Capabilities:
Get common file path

Disassembly:
push 8
push 0x458
mov eax, 0x606a99
call fcn.005f9b04
mov edi, ecx
mov dword [ebp - 0x42c], edi
push 0xffffffffffffffff
call fcn.00546b2f
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x63633c
push ecx
push eax
call fcn.004138b3
lea eax, [ebp - 0x220]
push eax
call fcn.00505bb3
pop ecx
lea ecx, [ebp - 0x220]
push ecx
push eax
lea ecx, [edi + 0xc]
call fcn.0040f513
push dword [edi + 0xc]
mov ecx, edi
call fcn.00413a35
mov ecx, edi
call fcn.00545ce3
mov eax, dword [0x6738a0]
push 3
pop esi
cmp eax, esi
cmovg eax, esi
mov dword [0x6738a0], eax
xor eax, eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x444]
push eax
push 0x636344
push dword [edi + 8]
call fcn.004135ba
add esp, 0x14
cmp eax, esi
jne 0x545fe2
movzx eax, byte [ebp - 0x440]
shl ax, 8
movzx ecx, ax
movzx eax, word [ebp - 0x444]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp - 0x448]
or ecx, eax
mov dword [edi + 0x30], ecx
mov ecx, dword [edi + 0x30]
mov esi, 0x668010
lea eax, [ecx - 0x50200]
cmp eax, 0x403
ja 0x5460c4
cmp ecx, 0x60000
jae 0x5460c4
mov ecx, edi
mov dword [edi + 0x708], 1
call fcn.005479e6
mov eax, dword [0x668294]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x428]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x434]
test eax, eax
js 0x546054
lea eax, [ebp - 0x428]
push eax
call fcn.0040d2ee
push str.TTPlayercache_
jmp 0x546063
push 0x67476c
call fcn.0040d2ee
push str.Cache_
mov edx, eax
lea ecx, [ebp - 0x438]
call fcn.0040ce1d
push eax
lea ecx, [ebp - 0x430]
call fcn.0040d242
mov ecx, dword [ebp - 0x438]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x54608e
call fcn.00407965
mov ecx, dword [ebp - 0x434]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5460a0
call fcn.00407965
lea eax, [ebp - 0x430]
push eax
lea ecx, [edi + 0x6ec]
call fcn.0040d242
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5460c4
call fcn.00407965
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [ebp - 0x430], eax
call esi
cmp dword [edi + 0x68], 0
mov dword [ebp - 0x434], eax
jl 0x5460fc
cmp dword [edi + 0x6c], 0
jl 0x5460fc
mov ecx, dword [ebp - 0x430]
lea esi, [edi + 0x60]
cmp dword [esi], ecx
jge 0x5460fc
cmp dword [edi + 0x64], eax
jl 0x546106
lea esi, [edi + 0x60]
push esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [edi + 0x30]
lea eax, [ecx - 1]
cmp eax, 0x50702
ja 0x54620f
cmp ecx, 0x60000
jae 0x54620f
push dword [esi + 4]
lea eax, [edi + 0xa0]
push dword [esi]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x430]
lea eax, [edi + 0xa0]
cmp dword [eax], ecx
jge 0x546169
mov ecx, dword [ebp - 0x434]
cmp dword [edi + 0xa4], ecx
jge 0x546169
cmp dword [edi + 0xa8], 0
jl 0x546169
cmp dword [edi + 0xac], 0
jge 0x546201
mov eax, dword [esi + 4]
neg eax
push eax
mov eax, dword [esi]
neg eax
push eax
lea eax, [edi + 0xa0]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [edi + 0xa0]
mov edx, dword [eax]
cmp edx, dword [ebp - 0x430]
jge 0x5461b1
mov ecx, dword [ebp - 0x434]
cmp dword [edi + 0xa4], ecx
jge 0x5461b1
cmp dword [edi + 0xa8], 0
jl 0x5461b1
cmp dword [edi + 0xac], 0
jge 0x546201
mov eax, dword [edi + 0xa8]
sub eax, edx
push eax
call fcn.00507370
pop ecx
mov ecx, dword [esi + 8]
inc ecx
add eax, ecx
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0xac]
sub eax, dword [edi + 0xa4]
push eax
call fcn.00507370
inc eax
add eax, dword [esi + 4]
mov dword [edi + 0xac], eax
mov eax, dword [esi + 8]
mov dword [edi + 0xa0], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xa4], eax
lea eax, [edi + 0xa0]
pop ecx
push eax
lea eax, [edi + 0xfc]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [edi + 0xfc]
cmp ecx, dword [ebp - 0x430]
jge 0x54623d
mov eax, dword [ebp - 0x434]
cmp dword [edi + 0x100], eax
jge 0x54623d
cmp dword [edi + 0x104], 0
jl 0x54623d
cmp dword [edi + 0x108], 0
jge 0x546286
mov eax, dword [edi + 0x104]
sub eax, ecx
push eax
call fcn.00507370
pop ecx
mov ecx, dword [edi + 0x68]
inc ecx
add eax, ecx
mov dword [edi + 0x104], eax
mov eax, dword [edi + 0x108]
sub eax, dword [edi + 0x100]
push eax
call fcn.00507370
pop ecx
mov ecx, dword [edi + 0x64]
inc eax
add eax, ecx
mov dword [edi + 0x100], ecx
mov dword [edi + 0x108], eax
mov eax, dword [edi + 0x68]
mov dword [edi + 0xfc], eax
mov eax, dword [edi + 0x30]
cmp eax, 0x50703
jae 0x54629a
mov dword [edi + 0x5f8], 1
test eax, eax
je 0x5462e0
cmp eax, 0x50705
jae 0x5462e0
push str._Default_Skin_
push dword [edi + 0x7e0]
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
jne 0x5462e0
push esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
xor eax, eax
inc eax
push ecx
mov ecx, edi
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
call fcn.0054692f
mov dword [edi + 0x18], 1
xor ecx, ecx
cmp dword [edi + 0x1bc], ecx
jne 0x5462f4
mov dword [edi + 0x1bc], 7
cmp dword [edi + 0x22c], 0xff
jne 0x54630a
mov dword [edi + 0x22c], 0xf
cmp dword [edi + 0x680], ecx
jne 0x546318
mov dword [edi + 0x5cc], ecx
mov eax, dword [edi + 0x6ec]
cmp dword [eax - 8], ecx
jne 0x5463d6
mov eax, dword [0x668294]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x428]
push eax
push ecx
push ecx
push 0x1a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x434]
test eax, eax
js 0x546361
lea eax, [ebp - 0x428]
push eax
call fcn.0040d2ee
push str.TTPlayercache_
jmp 0x546370
push 0x67476c
call fcn.0040d2ee
push str.Cache_
mov edx, eax
lea ecx, [ebp - 0x438]
call fcn.0040ce1d
push eax
lea ecx, [ebp - 0x430]
call fcn.0040d242
mov ecx, dword [ebp - 0x438]
mov esi, 0x668010
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5463a0
call fcn.00407965
mov ecx, dword [ebp - 0x434]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5463b2
call fcn.00407965
lea eax, [ebp - 0x430]
push eax
lea ecx, [edi + 0x6ec]
call fcn.0040d242
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5463d6
call fcn.00407965
lea ecx, [ebp - 0x458]
call fcn.00414080
and dword [ebp - 4], 0
mov eax, 0x668ba0
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], 0x36
mov esi, eax
lea edi, [ebp - 0x464]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x42c]
mov esi, dword [edi + 0x258]
sub esi, 1
js 0x54645e
lea eax, [edi + 0x254]
mov dword [ebp - 0x438], eax
push esi
mov ecx, eax
call fcn.004140de
mov ecx, dword [ebp - 0x464]
cmp dword [eax], ecx
je 0x546441
sub esi, 1
lea eax, [edi + 0x254]
jns 0x546422
jmp 0x54645e
mov ecx, dword [ebp - 0x438]
push esi
call fcn.004140de
mov esi, eax
lea edi, [ebp - 0x464]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x42c]
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x458]
call fcn.0041409c
mov eax, dword [ebp - 0x434]
add eax, 0xc
sub dword [ebp - 0x430], 1
mov dword [ebp - 0x434], eax
jne 0x5463fa
push ecx
lea eax, [edi + 0x254]
push ecx
mov ecx, eax
mov dword [ebp - 0x438], eax
call fcn.004143e0
xor esi, esi
cmp dword [ebp - 0x454], esi
jle 0x5464d4
mov edi, dword [ebp - 0x438]
push esi
lea ecx, [ebp - 0x458]
call fcn.004140de
push eax
mov ecx, edi
call fcn.0041409c
inc esi
cmp esi, dword [ebp - 0x454]
jl 0x5464b1
mov edi, dword [ebp - 0x42c]
mov eax, dword [edi + 0x48c]
lea ecx, [edi + 0x488]
and dword [ebp - 0x430], 0
xor esi, esi
sub eax, 1
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x42c], eax
js 0x5465c8
jmp 0x546506
lea ecx, [edi + 0x488]
push eax
call fcn.00413f65
mov dword [ebp - 0x438], eax
mov edx, dword [eax]
cmp dword [edx - 8], 0
je 0x5465a4
xor esi, esi
cmp dword [ebp - 0x430], esi
jne 0x546540
push dword [edi + 0x20]
push edx
call fcn.005073b0
mov edx, dword [ebp - 0x438]
neg eax
pop ecx
sbb esi, esi
pop ecx
mov edx, dword [edx]
inc esi
test esi, esi
jne 0x546574
cmp dword [ebp - 0x434], esi
jne 0x546574
push dword [edi + 0x24]
push edx
call fcn.005073b0
neg eax
pop ecx
pop ecx
sbb ecx, ecx
mov eax, dword [ebp - 0x438]
mov edx, dword [eax]
add ecx, 1
je 0x546584
mov dword [ebp - 0x434], 1
jmp 0x546584
xor ecx, ecx
test esi, esi
je 0x546584
mov dword [ebp - 0x430], 1
cmp word [edx], 0x3c
jne 0x5465a4
test esi, esi
jne 0x5465a4
test ecx, ecx
jne 0x5465a4
push ecx
push dword [ebp - 0x42c]
lea ecx, [edi + 0x488]
call fcn.00414025
mov eax, dword [ebp - 0x42c]
sub eax, 1
mov dword [ebp - 0x42c], eax
jns 0x546500
cmp dword [ebp - 0x430], 0
mov esi, dword [ebp - 0x434]
jne 0x546610
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040d36e
and dword [ebp - 0x438], 0
push ecx
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 1
push eax
push ecx
lea ecx, [edi + 0x488]
call fcn.00413f84
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x43c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x546610
call fcn.00407965
test esi, esi
jne 0x546655
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040d36e
and dword [ebp - 0x438], esi
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x488]
call fcn.00413f16
mov ecx, dword [ebp - 0x43c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x546655
call fcn.00407965
push 0x10
pop eax
cmp dword [edi + 0x784], eax
jle 0x546666
mov dword [edi + 0x784], eax
lea esi, [edi + 0x7e0]
mov ecx, esi
call fcn.005ca3af
test eax, eax
jne 0x54671f
push str._Default_Skin_
push dword [esi]
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
je 0x54671f
push 0x67476c
lea ecx, [ebp - 0x434]
call fcn.0040d2ee
push str.Skin_
mov edx, eax
lea ecx, [ebp - 0x438]
call fcn.0040ce1d
mov edx, dword [esi]
mov ecx, dword [0x668294]
push edx
mov eax, dword [eax]
push dword [edx - 8]
mov dword [ebp - 0x42c], ecx
lea ecx, [ebp - 0x42c]
push eax
push dword [eax - 8]
call fcn.0040f4c7
lea eax, [ebp - 0x42c]
mov ecx, esi
push eax
call fcn.0040d242
mov ecx, dword [ebp - 0x42c]
mov esi, 0x668010
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5466fb
call fcn.00407965
mov ecx, dword [ebp - 0x438]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x54670d
call fcn.00407965
mov ecx, dword [ebp - 0x434]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x54671f
call fcn.00407965
lea esi, [edi + 0x80c]
mov eax, dword [esi]
cmp dword [eax - 8], 0
jne 0x546746
push str.__Artist______Title_
call fcn.00505bb3
mov dword [esp], str.__Artist______Title_
mov ecx, esi
push eax
call fcn.0040f513
push 0x67476c
lea ecx, [ebp - 0x438]
call fcn.0040d2ee
push 0x636388
mov edx, eax
lea ecx, [ebp - 0x42c]
call fcn.0040ce1d
mov ecx, dword [ebp - 0x438]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x54677e
call fcn.00407965
mov esi, dword [ebp - 0x42c]
mov ecx, esi
call fcn.00547bd8
mov eax, dword [edi + 0x818]
cmp dword [eax - 8], 0
jne 0x5467eb
mov eax, dword [0x668294]
push str.1.ttvi_cfg
mov dword [ebp - 0x42c], eax
call fcn.00505bb3
mov dword [esp], str.1.ttvi_cfg
lea ecx, [ebp - 0x42c]
push eax
push esi
push dword [esi - 8]
call fcn.0040f4c7
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 0x818]
call fcn.0040d242
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5467eb
call fcn.00407965
mov eax, dword [edi + 0x81c]
cmp dword [eax - 8], 0
jne 0x54684b
mov eax, dword [0x668294]
push str.1.tteq_cfg
mov dword [ebp - 0x42c], eax
call fcn.00505bb3
mov dword [esp], str.1.tteq_cfg
lea ecx, [ebp - 0x42c]
push eax
push esi
push dword [esi - 8]
call fcn.0040f4c7
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 0x81c]
call fcn.0040d242
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x54684b
call fcn.00407965
mov eax, dword [edi + 0x820]
cmp dword [eax - 8], 0
jne 0x5468ab
mov eax, dword [0x668294]
push str.1.ttlr_cfg
mov dword [ebp - 0x42c], eax
call fcn.00505bb3
mov dword [esp], str.1.ttlr_cfg
lea ecx, [ebp - 0x42c]
push eax
push esi
push dword [esi - 8]
call fcn.0040f4c7
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 0x820]
call fcn.0040d242
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5468ab
call fcn.00407965
mov eax, dword [edi + 0x824]
cmp dword [eax - 8], 0
jne 0x54690b
mov eax, dword [0x668294]
push str.1.ttpl_cfg
mov dword [ebp - 0x42c], eax
call fcn.00505bb3
mov dword [esp], str.1.ttpl_cfg
lea ecx, [ebp - 0x42c]
push eax
push esi
push dword [esi - 8]
call fcn.0040f4c7
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 0x824]
call fcn.0040d242
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x54690b
call fcn.00407965
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x54691b
call fcn.00407965
lea ecx, [ebp - 0x458]
call fcn.004140fd
mov ecx, dword [ebp - 0x14]
call fcn.005f9ae2
ret