Function at 0x575c65
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5f72d8]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
and dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3b0]
mov dword [ebp - 0x74], eax
push 0x104
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x576564
push ebx
push esi
push edi
lea eax, [ebp - 0x64]
push eax
mov esi, 0x200
push esi
lea eax, [ebp + 0x19c]
push eax
mov byte [ebp + 0x9f], 0
call fcn.00575ba0
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
push 2
xor edi, edi
pop ebx
test eax, eax
jl 0x575dda
push 0x5f
push edi
push ebx
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x575d4d
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x575d33
mov dword [eax], 1
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x575d3c
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x575d46
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x448
push edi
push 3
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x575d93
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x575d79
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x575d82
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x575d8c
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x44
push edi
push 4
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x575dda
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x575dc0
mov dword [eax], 3
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x575dc9
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x575dd3
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.d3drg8x.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
test eax, eax
jl 0x575e5a
push 0x46
push edi
push 4
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x575e5a
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x575e40
mov dword [eax], 3
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x575e49
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x575e53
mov byte [eax], 0x61
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
push 5
pop esi
push 6
pop ebx
test eax, eax
jl 0x575f6d
push 0x9b
push edi
push esi
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x575ee2
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x575ec8
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x575ed1
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x575edb
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x13e
push edi
push ebx
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
mov esi, dword [ebp - 0x70]
add esp, 0x20
test eax, eax
jl 0x575f27
cmp esi, edi
je 0x575f0d
mov dword [esi], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x575f16
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x575f20
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x1b4
push edi
push ebx
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x575f6d
cmp esi, edi
je 0x575f4f
mov dword [esi], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x575f5c
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x575f66
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x64]
push eax
mov esi, 0x200
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.dplayx.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
test eax, eax
jl 0x575ff5
push 0x206
push 3
push ebx
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x575ff5
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x575fd7
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x575fe4
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x575fee
mov byte [eax], 0x61
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x64]
push eax
mov ebx, esi
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.ddraw.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
push 7
pop esi
test eax, eax
jl 0x576078
push 0x2bc
push edi
push esi
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x576078
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x57605e
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x576067
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x576071
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.dinput.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
test eax, eax
jl 0x5760f6
push 0x2cc
push edi
push esi
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x5760f6
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x5760dc
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x5760e5
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x5760ef
mov byte [eax], 0x61
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x64]
push eax
mov esi, ebx
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
push 8
pop ebx
test eax, eax
jl 0x5761b1
mov edi, dword [ebp - 0x68]
shr edi, 0x10
mov esi, 0x190
cmp di, 4
jne 0x576164
push esi
push 0
push ebx
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jge 0x57618d
cmp di, 5
jne 0x5761b1
push esi
push 0x8d2
push 1
push 5
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x5761b1
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x576196
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x5761a0
and dword [eax], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5761aa
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
lea eax, [ebp - 0x64]
push eax
mov esi, 0x200
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.d3d8.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
test eax, eax
jl 0x5762f9
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x80], ebx
shr dword [ebp - 0x80], 0x10
cmp word [ebp - 0x80], 4
mov edi, 0xa28
mov esi, 0x371
jne 0x57622c
push esi
push 1
push 8
push 4
call fcn.00575b5e
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jge 0x576250
cmp word [ebp - 0x80], 5
jne 0x57627b
push esi
push edi
push 1
push 5
call fcn.00575b5e
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x57627b
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x57625d
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x57626a
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x576274
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
cmp word [ebp - 0x80], 4
mov esi, 0x385
jne 0x5762a5
push esi
push 1
push 8
push 4
call fcn.00575b5e
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jge 0x5762c9
cmp word [ebp - 0x80], 5
jne 0x5762f4
push esi
push edi
push 1
push 5
call fcn.00575b5e
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x5762f4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5762d6
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x5762e3
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5762ed
mov byte [eax], 0x61
mov dword [ebp - 0x7c], 1
mov esi, 0x200
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.mpg2splt.ax
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
test eax, eax
jl 0x57637b
push 0x375
xor edi, edi
inc edi
push edi
push 3
push 6
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x57637b
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x576365
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x57636e
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x576378
mov byte [eax], 0x62
mov dword [ebp - 0x7c], edi
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.dpnet.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
push 9
pop ebx
test eax, eax
jl 0x57643b
mov edi, dword [ebp - 0x68]
shr edi, 0x10
lea esi, [ebx + 0x7d]
cmp di, 4
jne 0x5763e9
push esi
push 0
push ebx
push 4
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jge 0x576412
cmp di, 5
jne 0x57643b
push esi
push 0xe5d
push 2
push 5
call fcn.00575b5e
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00575b7d
add esp, 0x20
test eax, eax
jl 0x57643b
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x57641f
mov dword [eax], 8
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x57642c
mov dword [edi], 2
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x576436
mov byte [eax], 0x20
xor esi, esi
inc esi
jmp 0x576441
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
push eax
push 0x200
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.d3d9.dll
push 0x200
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
test eax, eax
jl 0x57649f
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x57648b
mov dword [eax], ebx
test edi, edi
je 0x576492
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x57649c
mov byte [eax], 0x20
xor esi, esi
inc esi
lea eax, [ebp - 0x64]
push eax
mov ebx, 0x200
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.d3d10.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
mov ebx, dword [ebp - 0x70]
pop ecx
pop ecx
test eax, eax
jl 0x5764fe
test ebx, ebx
je 0x5764ea
mov dword [ebx], 0xa
test edi, edi
je 0x5764f1
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5764fb
mov byte [eax], 0x20
xor esi, esi
inc esi
lea eax, [ebp - 0x64]
push eax
push 0x200
lea eax, [ebp + 0x19c]
push eax
call fcn.00575ba0
push str.d3d11.dll
push 0x200
lea eax, [ebp + 0x19c]
push eax
call fcn.00575bd5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00575abe
pop ecx
pop ecx
test eax, eax
jl 0x57655d
test ebx, ebx
je 0x576549
mov dword [ebx], 0xb
test edi, edi
je 0x576550
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x57655a
mov byte [eax], 0x20
xor esi, esi
inc esi
pop edi
test esi, esi
pop esi
pop ebx
jne 0x576582
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x57656e
and dword [eax], 0
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x576578
and dword [eax], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x576582
mov byte [eax], 0x20
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
xor eax, eax
call fcn.0055a90d
add ebp, 0x3a0
leave
ret