Function at 0x556ead
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x619e70]
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 0x5577ac
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.00556de8
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
push 2
xor edi, edi
pop ebx
test eax, eax
jl 0x557022
push 0x5f
push edi
push ebx
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x556f95
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x556f7b
mov dword [eax], 1
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x556f84
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x556f8e
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x448
push edi
push 3
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x556fdb
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x556fc1
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x556fca
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x556fd4
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x44
push edi
push 4
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x557022
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x557008
mov dword [eax], 3
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x557011
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x55701b
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.00556de8
push str.d3drg8x.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
test eax, eax
jl 0x5570a2
push 0x46
push edi
push 4
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x5570a2
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x557088
mov dword [eax], 3
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x557091
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x55709b
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.00556de8
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
push 5
pop esi
push 6
pop ebx
test eax, eax
jl 0x5571b5
push 0x9b
push edi
push esi
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x55712a
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x557110
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x557119
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x557123
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x13e
push edi
push ebx
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
mov esi, dword [ebp - 0x70]
add esp, 0x20
test eax, eax
jl 0x55716f
cmp esi, edi
je 0x557155
mov dword [esi], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x55715e
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x557168
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
push 0x1b4
push edi
push ebx
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x5571b5
cmp esi, edi
je 0x557197
mov dword [esi], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x5571a4
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x5571ae
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.00556de8
push str.dplayx.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
test eax, eax
jl 0x55723d
push 0x206
push 3
push ebx
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x55723d
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x55721f
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x55722c
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x557236
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.00556de8
push str.ddraw.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
push 7
pop esi
test eax, eax
jl 0x5572c0
push 0x2bc
push edi
push esi
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x5572c0
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x5572a6
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x5572af
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x5572b9
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.00556de8
push str.dinput.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
test eax, eax
jl 0x55733e
push 0x2cc
push edi
push esi
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x55733e
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x557324
mov dword [eax], esi
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x55732d
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x557337
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.00556de8
push str.ddraw.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
push 8
pop ebx
test eax, eax
jl 0x5573f9
mov edi, dword [ebp - 0x68]
shr edi, 0x10
mov esi, 0x190
cmp di, 4
jne 0x5573ac
push esi
push 0
push ebx
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jge 0x5573d5
cmp di, 5
jne 0x5573f9
push esi
push 0x8d2
push 1
push 5
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x5573f9
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5573de
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x5573e8
and dword [eax], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5573f2
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.00556de8
push str.d3d8.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
test eax, eax
jl 0x557541
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 0x557474
push esi
push 1
push 8
push 4
call fcn.00556da6
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jge 0x557498
cmp word [ebp - 0x80], 5
jne 0x5574c3
push esi
push edi
push 1
push 5
call fcn.00556da6
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x5574c3
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5574a5
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x5574b2
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5574bc
mov byte [eax], 0x20
mov dword [ebp - 0x7c], 1
cmp word [ebp - 0x80], 4
mov esi, 0x385
jne 0x5574ed
push esi
push 1
push 8
push 4
call fcn.00556da6
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jge 0x557511
cmp word [ebp - 0x80], 5
jne 0x55753c
push esi
push edi
push 1
push 5
call fcn.00556da6
push edx
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x55753c
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x55751e
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x55752b
mov dword [eax], 1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x557535
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.00556de8
push str.mpg2splt.ax
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
test eax, eax
jl 0x5575c3
push 0x375
xor edi, edi
inc edi
push edi
push 3
push 6
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x5575c3
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5575ad
mov dword [eax], 8
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x5575b6
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5575c0
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.00556de8
push str.dpnet.dll
push esi
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
push 9
pop ebx
test eax, eax
jl 0x557683
mov edi, dword [ebp - 0x68]
shr edi, 0x10
lea esi, [ebx + 0x7d]
cmp di, 4
jne 0x557631
push esi
push 0
push ebx
push 4
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jge 0x55765a
cmp di, 5
jne 0x557683
push esi
push 0xe5d
push 2
push 5
call fcn.00556da6
push edx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00556dc5
add esp, 0x20
test eax, eax
jl 0x557683
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x557667
mov dword [eax], 8
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x557674
mov dword [edi], 2
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x55767e
mov byte [eax], 0x20
xor esi, esi
inc esi
jmp 0x557689
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.00556de8
push str.d3d9.dll
push 0x200
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
test eax, eax
jl 0x5576e7
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5576d3
mov dword [eax], ebx
test edi, edi
je 0x5576da
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5576e4
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.00556de8
push str.d3d10.dll
push ebx
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
mov ebx, dword [ebp - 0x70]
pop ecx
pop ecx
test eax, eax
jl 0x557746
test ebx, ebx
je 0x557732
mov dword [ebx], 0xa
test edi, edi
je 0x557739
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x557743
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.00556de8
push str.d3d11.dll
push 0x200
lea eax, [ebp + 0x19c]
push eax
call fcn.00556e1d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x19c]
push eax
call fcn.00556d06
pop ecx
pop ecx
test eax, eax
jl 0x5577a5
test ebx, ebx
je 0x557791
mov dword [ebx], 0xb
test edi, edi
je 0x557798
and dword [edi], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5577a2
mov byte [eax], 0x20
xor esi, esi
inc esi
pop edi
test esi, esi
pop esi
pop ebx
jne 0x5577ca
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x5577b6
and dword [eax], 0
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x5577c0
and dword [eax], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x5577ca
mov byte [eax], 0x20
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
xor eax, eax
call fcn.0057db4c
add ebp, 0x3a0
leave
ret