Function at 0x5a7485
Capabilities:
Get common file path

Disassembly:
push 0xf54
mov eax, 0x60da1f
call fcn.004db4be
mov edi, ecx
mov dword [ebp - 0xe2c], edi
push 0x67476c
lea ecx, [ebp - 0xe58]
call fcn.0040d2ee
and dword [ebp - 4], 0
mov esi, str.ttpsvr.exe
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0xe58]
call fcn.0040f454
mov esi, dword [ebp - 0xe58]
mov ecx, esi
call fcn.00414841
test eax, eax
je 0x5a7f2f
mov ecx, esi
call fcn.005b34b6
test eax, eax
je 0x5a7f2f
lea ecx, [ebp - 0xe78]
call fcn.004929d5
lea ecx, [ebp - 0xe68]
call fcn.0041d3e0
lea eax, [ebp - 0xe4c]
push eax
lea ecx, [edi + 0x5c]
call fcn.0047bd6d
push dword [ebp - 0xe4c]
mov ecx, dword [ebp - 0xe48]
lea eax, [ebp - 0xe54]
push eax
call fcn.0047fa46
mov eax, dword [ebp - 0xe54]
mov ebx, 0x668010
mov dword [ebp - 0xe28], eax
test eax, eax
je 0x5a7745
mov ecx, dword [ebp - 0xe50]
mov dword [ebp - 0xe34], ecx
push eax
lea eax, [ebp - 0xe4c]
push eax
call fcn.0047fa46
mov esi, dword [ebp - 0xe4c]
test esi, esi
je 0x5a7707
mov edi, dword [ebp - 0xe48]
push esi
mov ecx, edi
call fcn.0047fa87
mov dword [ebp - 0xe50], eax
test eax, eax
je 0x5a76d8
mov eax, dword [eax]
push 0x800
mov dword [ebp - 0xe30], eax
lea eax, [ebp - 0xe20]
push 0
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x210]
mov ecx, edi
push 0x100
push eax
push esi
call fcn.00492b0b
test eax, eax
je 0x5a76d8
cmp dword [ebp - 0xe30], 1
jne 0x5a769e
mov eax, dword [0x668294]
mov dword [ebp - 0xe40], eax
mov dword [ebp - 0xe3c], eax
mov dword [ebp - 0xe38], eax
push esi
lea eax, [ebp - 0xe80]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0047f9f8
mov ecx, dword [ebp - 0xe7c]
lea eax, [ebp - 0xe20]
push 0x400
push eax
push dword [ebp - 0xe80]
call fcn.00492b0b
lea eax, [ebp - 0x210]
push eax
call fcn.00505bb3
pop ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0xe40]
call fcn.0040f513
lea eax, [ebp - 0xe20]
push eax
call fcn.00505bb3
pop ecx
lea ecx, [ebp - 0xe20]
push ecx
push eax
lea ecx, [ebp - 0xe3c]
call fcn.0040f513
mov eax, dword [ebp - 0xe50]
lea ecx, [ebp - 0xe38]
add eax, 8
push eax
call fcn.0040d242
lea eax, [ebp - 0xe40]
push eax
lea ecx, [ebp - 0xe78]
call fcn.00492a08
lea ecx, [ebp - 0xe40]
call fcn.00487584
jmp 0x5a76d8
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xe24]
call fcn.0040d2ee
lea eax, [ebp - 0xe24]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xe68]
call fcn.0042b3ea
mov ecx, dword [ebp - 0xe24]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a76d8
call fcn.00407965
push esi
lea eax, [ebp - 0xe88]
mov ecx, edi
push eax
call fcn.0047fa1f
mov esi, dword [ebp - 0xe88]
mov edi, dword [ebp - 0xe84]
test esi, esi
jne 0x5a7570
mov dword [ebp - 0xe4c], esi
mov dword [ebp - 0xe48], edi
push dword [ebp - 0xe28]
mov ecx, dword [ebp - 0xe34]
lea eax, [ebp - 0xe90]
push eax
call fcn.0047fa1f
mov eax, dword [ebp - 0xe90]
mov ecx, dword [ebp - 0xe8c]
mov dword [ebp - 0xe28], eax
mov dword [ebp - 0xe34], ecx
test eax, eax
jne 0x5a754f
mov edi, dword [ebp - 0xe2c]
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x42d
push dword [edi + 4]
call esi
test eax, eax
je 0x5a77cd
mov eax, dword [0x668294]
mov dword [ebp - 0xe40], eax
mov dword [ebp - 0xe3c], eax
mov dword [ebp - 0xe38], eax
push str.AudioCD
mov byte [ebp - 4], 5
call fcn.00505bb3
mov dword [esp], str.AudioCD
lea ecx, [ebp - 0xe40]
push eax
call fcn.0040f513
push str.AudioCD
call fcn.00505bb3
mov dword [esp], str.AudioCD
lea ecx, [ebp - 0xe3c]
push eax
call fcn.0040f513
lea eax, [ebp - 0xe40]
push eax
lea ecx, [ebp - 0xe78]
call fcn.00492a08
lea ecx, [ebp - 0xe40]
call fcn.00487584
jmp 0x5a7805
push str.AudioCD
lea ecx, [ebp - 0xe24]
call fcn.0040d2ee
lea eax, [ebp - 0xe24]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0xe68]
call fcn.0042b3ea
mov ecx, dword [ebp - 0xe24]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7805
call fcn.00407965
push 0x848
push dword [edi + 4]
call esi
test eax, eax
je 0x5a787a
mov eax, dword [0x668294]
mov dword [ebp - 0xe40], eax
mov dword [ebp - 0xe3c], eax
mov dword [ebp - 0xe38], eax
mov esi, str.Directory
mov byte [ebp - 4], 7
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0xe40]
call fcn.0040f513
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0xe3c]
call fcn.0040f513
lea eax, [ebp - 0xe40]
push eax
lea ecx, [ebp - 0xe78]
call fcn.00492a08
lea ecx, [ebp - 0xe40]
call fcn.00487584
jmp 0x5a78b2
push str.Directory
lea ecx, [ebp - 0xe24]
call fcn.0040d2ee
lea eax, [ebp - 0xe24]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xe68]
call fcn.0042b3ea
mov ecx, dword [ebp - 0xe24]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a78b2
call fcn.00407965
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x668294]
mov dword [ebp - 0xe34], eax
call fcn.0051687d
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0xe34]
push str._u_u.dat
push eax
call fcn.0040cefd
add esp, 0x10
lea eax, [ebp - 0x418]
lea ecx, [ebp - 0xe2c]
push eax
call fcn.0040d2ee
mov edi, dword [ebp - 0xe34]
mov ecx, dword [0x668294]
push edi
mov eax, dword [eax]
push dword [edi - 8]
mov dword [ebp - 0xe24], ecx
lea ecx, [ebp - 0xe24]
push eax
push dword [eax - 8]
call fcn.0040f4c7
mov esi, dword [ebp - 0xe24]
mov ecx, esi
call fcn.00414841
lea ecx, [esi - 0xc]
mov dword [ebp - 0xe50], eax
cmp ecx, ebx
je 0x5a7948
call fcn.00407965
mov ecx, dword [ebp - 0xe2c]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a795a
call fcn.00407965
cmp dword [ebp - 0xe50], 0
jne 0x5a78cf
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0xe2c]
call fcn.0040d2ee
mov ecx, dword [0x668294]
push edi
push dword [edi - 8]
mov eax, dword [eax]
push eax
mov dword [ebp - 0xe28], ecx
lea ecx, [ebp - 0xe28]
push dword [eax - 8]
call fcn.0040f4c7
lea eax, [ebp - 0xe28]
push eax
lea ecx, [ebp - 0xe34]
call fcn.0040d242
mov ecx, dword [ebp - 0xe28]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a79be
call fcn.00407965
mov ecx, dword [ebp - 0xe2c]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a79d0
call fcn.00407965
lea ecx, [ebp - 0xeb8]
call fcn.005cb530
push str.FileTypeAsso
lea ecx, [ebp - 0xf60]
call fcn.005cb14e
push eax
lea ecx, [ebp - 0xeb8]
mov byte [ebp - 4], 0xb
call fcn.005cb02a
mov esi, eax
mov dword [ebp - 0xe24], eax
test esi, esi
je 0x5a7a0d
cmp dword [esi + 8], 1
je 0x5a7a15
xor esi, esi
mov dword [ebp - 0xe24], esi
lea ecx, [ebp - 0xf60]
mov byte [ebp - 4], 0xa
call fcn.005cb112
mov edi, dword [ebp - 0xe34]
test esi, esi
je 0x5a7ef6
push 0x63bfa0
lea ecx, [ebp - 0xf28]
call fcn.005cb14e
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.005cb02a
mov esi, eax
test esi, esi
je 0x5a7a5a
cmp dword [esi + 8], 1
je 0x5a7a5c
xor esi, esi
lea ecx, [ebp - 0xf28]
mov byte [ebp - 4], 0xa
call fcn.005cb112
test esi, esi
je 0x5a7ef6
push dword [ebp - 0xe74]
lea eax, [ebp - 0xe2c]
push 0x639c90
push eax
call fcn.004a844f
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ecx, esi
push dword [eax]
push str.count
call fcn.005cb083
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xe2c]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7ab5
call fcn.00407965
and dword [ebp - 0xe2c], 0
cmp dword [ebp - 0xe74], 0
jbe 0x5a7c2c
mov edi, dword [ebp - 0xe2c]
push edi
lea ecx, [ebp - 0xe78]
call fcn.004929e9
push eax
lea ecx, [ebp - 0xe40]
call fcn.004878d1
push edi
lea eax, [ebp - 0xe2c]
push str.regtype_d
push eax
call fcn.004a844f
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0xef0]
call fcn.005cb14e
push eax
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.005cb02a
mov dword [ebp - 0xe28], eax
test eax, eax
je 0x5a7b25
cmp dword [eax + 8], 1
je 0x5a7b2c
and dword [ebp - 0xe28], 0
lea ecx, [ebp - 0xef0]
call fcn.005cb112
mov ecx, dword [ebp - 0xe2c]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7b49
call fcn.00407965
cmp dword [ebp - 0xe28], 0
je 0x5a7c0a
mov edx, dword [ebp - 0xe40]
lea ecx, [ebp - 0xe50]
push 0xffffffffffffffff
call fcn.004137fa
pop ecx
mov byte [ebp - 4], 0x11
push dword [eax]
mov ecx, dword [ebp - 0xe28]
push 0x63bf8c
call fcn.005cb083
mov ecx, dword [ebp - 0xe50]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7b92
call fcn.00407965
mov edx, dword [ebp - 0xe3c]
lea ecx, [ebp - 0xe30]
push 0xffffffffffffffff
call fcn.004137fa
pop ecx
mov byte [ebp - 4], 0x12
push dword [eax]
mov ecx, dword [ebp - 0xe28]
push 0x63bfb8
call fcn.005cb083
mov ecx, dword [ebp - 0xe30]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7bce
call fcn.00407965
mov edx, dword [ebp - 0xe38]
lea ecx, [ebp - 0xe48]
push 0xffffffffffffffff
call fcn.004137fa
pop ecx
mov byte [ebp - 4], 0x13
push dword [eax]
mov ecx, dword [ebp - 0xe28]
push str.icon
call fcn.005cb083
mov ecx, dword [ebp - 0xe48]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7c0a
call fcn.00407965
lea ecx, [ebp - 0xe40]
mov byte [ebp - 4], 0xa
call fcn.00487584
inc edi
cmp edi, dword [ebp - 0xe74]
jb 0x5a7acf
mov edi, dword [ebp - 0xe34]
push 0x63bfa4
lea ecx, [ebp - 0xef0]
call fcn.005cb14e
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0xe24]
push eax
call fcn.005cb02a
mov esi, eax
mov dword [ebp - 0xe28], eax
test esi, esi
je 0x5a7c5e
cmp dword [esi + 8], 1
je 0x5a7c66
xor esi, esi
mov dword [ebp - 0xe28], esi
lea ecx, [ebp - 0xef0]
mov byte [ebp - 4], 0xa
call fcn.005cb112
test esi, esi
je 0x5a7ef6
push dword [ebp - 0xe64]
lea eax, [ebp - 0xe48]
push 0x639c90
push eax
call fcn.004a844f
add esp, 0xc
mov byte [ebp - 4], 0x15
mov ecx, esi
push dword [eax]
push str.count
call fcn.005cb083
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xe48]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7cbf
call fcn.00407965
xor esi, esi
mov dword [ebp - 0xe30], esi
cmp dword [ebp - 0xe64], esi
jbe 0x5a7dc7
mov edi, dword [ebp - 0xe28]
push esi
lea ecx, [ebp - 0xe68]
call fcn.0042b3cb
push eax
lea ecx, [ebp - 0xe2c]
call fcn.0040d36e
push esi
lea eax, [ebp - 0xe48]
push str.unregtype_d
push eax
call fcn.004a844f
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0xf28]
call fcn.005cb14e
push eax
mov ecx, edi
mov byte [ebp - 4], 0x18
call fcn.005cb02a
mov esi, eax
mov dword [ebp - 0xe28], eax
test esi, esi
je 0x5a7d31
cmp dword [esi + 8], 1
je 0x5a7d39
xor esi, esi
mov dword [ebp - 0xe28], esi
lea ecx, [ebp - 0xf28]
call fcn.005cb112
mov ecx, dword [ebp - 0xe48]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7d56
call fcn.00407965
test esi, esi
mov esi, dword [ebp - 0xe2c]
je 0x5a7d98
push 0xffffffffffffffff
mov edx, esi
lea ecx, [ebp - 0xe50]
call fcn.004137fa
pop ecx
mov byte [ebp - 4], 0x19
push dword [eax]
mov ecx, dword [ebp - 0xe28]
push 0x63bf8c
call fcn.005cb083
mov ecx, dword [ebp - 0xe50]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7d98
call fcn.00407965
lea ecx, [esi - 0xc]
mov byte [ebp - 4], 0xa
cmp ecx, ebx
je 0x5a7da8
call fcn.00407965
mov esi, dword [ebp - 0xe30]
inc esi
mov dword [ebp - 0xe30], esi
cmp esi, dword [ebp - 0xe64]
jb 0x5a7cd9
mov edi, dword [ebp - 0xe34]
push str.ttpModule
lea ecx, [ebp - 0xef0]
call fcn.005cb14e
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0xe24]
push eax
call fcn.005cb02a
mov esi, eax
mov dword [ebp - 0xe30], eax
test esi, esi
je 0x5a7df9
cmp dword [esi + 8], 1
je 0x5a7e01
xor esi, esi
mov dword [ebp - 0xe30], esi
lea ecx, [ebp - 0xef0]
mov byte [ebp - 4], 0xa
call fcn.005cb112
test esi, esi
je 0x5a7ef6
push 0x208
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0xe48]
call fcn.0040d2ee
mov esi, dword [ebp - 0xe48]
lea ecx, [ebp - 0xe2c]
push 0xffffffffffffffff
mov edx, esi
call fcn.004137fa
pop ecx
mov byte [ebp - 4], 0x1c
push dword [eax]
mov ecx, dword [ebp - 0xe30]
push str.file
call fcn.005cb083
mov ecx, dword [ebp - 0xe2c]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7e92
call fcn.00407965
push 0
mov edx, edi
lea ecx, [ebp - 0xe2c]
call fcn.00407a7f
pop ecx
push 0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0xeb8]
push dword [eax]
call fcn.005cb3da
mov ecx, dword [ebp - 0xe2c]
neg al
sbb al, al
add ecx, 0xfffffff4
inc al
mov byte [ebp - 0xe41], al
cmp ecx, ebx
je 0x5a7ed9
call fcn.00407965
mov al, byte [ebp - 0xe41]
test al, al
jne 0x5a7eea
mov ecx, dword [ebp - 0xe58]
mov edx, edi
call fcn.005a9239
lea ecx, [esi - 0xc]
cmp ecx, ebx
je 0x5a7ef6
call fcn.00407965
lea ecx, [ebp - 0xeb8]
mov dword [ebp - 0xeb8], 0x636404
call fcn.005cb049
lea ecx, [edi - 0xc]
cmp ecx, ebx
je 0x5a7f17
call fcn.00407965
lea ecx, [ebp - 0xe68]
call fcn.0041d40f
lea ecx, [ebp - 0xe78]
call fcn.00492a47
jmp 0x5a7faa
mov eax, dword [0x668294]
mov ebx, str._is_lost_or_error_
push ebx
mov dword [ebp - 0xe30], eax
mov dword [ebp - 0xe24], eax
call fcn.00505bb3
pop ecx
push ebx
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0xe24]
call fcn.0040f4c7
lea eax, [ebp - 0xe24]
push eax
lea ecx, [ebp - 0xe30]
call fcn.0040d242
mov ecx, dword [ebp - 0xe24]
mov ebx, 0x668010
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7f86
call fcn.00407965
mov esi, dword [ebp - 0xe30]
push 0x10
push dword [0x674764]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
cmp ecx, ebx
je 0x5a7faa
call fcn.00407965
mov ecx, dword [ebp - 0xe58]
add ecx, 0xfffffff4
cmp ecx, ebx
je 0x5a7fbc
call fcn.00407965
xor eax, eax
call fcn.004db46d
ret 0x10