Function at 0x5529f6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x614b80]
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 0x5532f5
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.00552931
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
push 2
xor edi, edi
pop ebx
test eax, eax
jl 0x552b6b
push 0x5f
push edi
push ebx
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552ade
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x552ac4
mov dword [eax], 1
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552acd
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552ad7
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x448
push edi
push 3
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552b24
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x552b0a
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552b13
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552b1d
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x44
push edi
push 4
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552b6b
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x552b51
mov dword [eax], 3
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552b5a
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552b64
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.00552931
push str.d3drg8x.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
test eax, eax
jl 0x552beb
push 0x46
push edi
push 4
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552beb
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x552bd1
mov dword [eax], 3
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552bda
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552be4
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.00552931
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
push 5
pop esi
push 6
pop ebx
test eax, eax
jl 0x552cfe
push 0x9b
push edi
push esi
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552c73
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x552c59
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552c62
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552c6c
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x13e
push edi
push ebx
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
mov esi, dword [ebp - 0x70]
add esp, 0x20
test eax, eax
jl 0x552cb8
cmp esi, edi
je 0x552c9e
mov dword [esi], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552ca7
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552cb1
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x1b4
push edi
push ebx
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552cfe
cmp esi, edi
je 0x552ce0
mov dword [esi], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552ced
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552cf7
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.00552931
push str.dplayx.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
test eax, eax
jl 0x552d86
push 0x206
push 3
push ebx
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552d86
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x552d68
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552d75
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552d7f
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.00552931
push str.ddraw.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
push 7
pop esi
test eax, eax
jl 0x552e09
push 0x2bc
push edi
push esi
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552e09
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x552def
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552df8
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552e02
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.00552931
push str.dinput.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
test eax, eax
jl 0x552e87
push 0x2cc
push edi
push esi
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552e87
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x552e6d
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x552e76
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x552e80
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.00552931
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
push 8
pop ebx
test eax, eax
jl 0x552f42
mov edi, dword [ebp - 0x68]
shr edi, 0x10
mov esi, 0x190
cmp di, 4
jne 0x552ef5
push esi
push 0
push ebx
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jge 0x552f1e
cmp di, 5
jne 0x552f42
push esi
push 0x8d2
push 1
push 5
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x552f42
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x552f27
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x552f31
and dword [eax], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x552f3b
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.00552931
push str.d3d8.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
test eax, eax
jl 0x55308a
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 0x552fbd
push esi
push 1
push 8
push 4
call fcn.005528ef
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jge 0x552fe1
cmp word [ebp - 0x80], 5
jne 0x55300c
push esi
push edi
push 1
push 5
call fcn.005528ef
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x55300c
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x552fee
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x552ffb
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x553005
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
cmp word [ebp - 0x80], 4
mov esi, 0x385
jne 0x553036
push esi
push 1
push 8
push 4
call fcn.005528ef
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jge 0x55305a
cmp word [ebp - 0x80], 5
jne 0x553085
push esi
push edi
push 1
push 5
call fcn.005528ef
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x553085
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x553067
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x553074
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x55307e
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.00552931
push str.mpg2splt.ax
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
test eax, eax
jl 0x55310c
push 0x375
xor edi, edi
inc edi
push edi
push 3
push 6
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x55310c
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5530f6
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x5530ff
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x553109
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.00552931
push str.dpnet.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
push 9
pop ebx
test eax, eax
jl 0x5531cc
mov edi, dword [ebp - 0x68]
shr edi, 0x10
lea esi, [ebx + 0x7d]
cmp di, 4
jne 0x55317a
push esi
push 0
push ebx
push 4
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jge 0x5531a3
cmp di, 5
jne 0x5531cc
push esi
push 0xe5d
push 2
push 5
call fcn.005528ef
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0055290e
add esp, 0x20
test eax, eax
jl 0x5531cc
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5531b0
mov dword [eax], 8
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x5531bd
mov dword [edi], 2
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5531c7
mov byte [eax], 0x20
xor esi, esi
inc esi
jmp 0x5531d2
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.00552931
push str.d3d9.dll
push 0x200
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
test eax, eax
jl 0x553230
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x55321c
mov dword [eax], ebx
test edi, edi
je 0x553223
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x55322d
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.00552931
push str.d3d10.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
mov ebx, dword [ebp - 0x70]
pop ecx
pop ecx
test eax, eax
jl 0x55328f
test ebx, ebx
je 0x55327b
mov dword [ebx], 0xa
test edi, edi
je 0x553282
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x55328c
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.00552931
push str.d3d11.dll
push 0x200
lea eax, [ebp + 0x19c]
push eax
call fcn.00552966
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.0055284f
pop ecx
pop ecx
test eax, eax
jl 0x5532ee
test ebx, ebx
je 0x5532da
mov dword [ebx], 0xb
test edi, edi
je 0x5532e1
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5532eb
mov byte [eax], 0x20
xor esi, esi
inc esi
pop edi
test esi, esi
pop esi
pop ebx
jne 0x553313
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5532ff
and dword [eax], 0
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x553309
and dword [eax], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x553313
mov byte [eax], 0x20
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
xor eax, eax
call fcn.0057943e
add ebp, 0x3a0
leave
ret