Function at 0x411d80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
lea eax, [esp + 0x408]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
mov ebp, dword [esp + 0x824]
mov ebx, dword [esp + 0x820]
mov edi, dword [esp + 0x81c]
je 0x412583
lea ecx, [esp + 0x418]
lea edx, [esp + 0x18]
push ecx
push edx
mov word [esp + 0x626], si
call fcn.004182c8
lea eax, [esp + 0x20]
push str.ddraw.dll
push eax
call fcn.0041829e
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004125b0
test eax, eax
jl 0x411ed0
push 0x5f
push esi
push 2
push 4
call fcn.00412680
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004126c0
test eax, eax
jl 0x411e43
test edi, edi
je 0x411e2a
mov dword [edi], 1
test ebx, ebx
je 0x411e34
mov dword [ebx], 0
test ebp, ebp
je 0x411e3e
mov word [ebp], 0x20
mov esi, 1
push 0x448
push 0
push 3
push 4
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jl 0x411e8b
test edi, edi
je 0x411e72
mov dword [edi], 2
test ebx, ebx
je 0x411e7c
mov dword [ebx], 0
test ebp, ebp
je 0x411e86
mov word [ebp], 0x20
mov esi, 1
push 0x44
push 0
push 4
push 4
call fcn.00412680
push edx
push eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.004126c0
test eax, eax
jl 0x411ed0
test edi, edi
je 0x411eb7
mov dword [edi], 3
test ebx, ebx
je 0x411ec1
mov dword [ebx], 0
test ebp, ebp
je 0x411ecb
mov word [ebp], 0x20
mov esi, 1
lea eax, [esp + 0x418]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004182c8
lea edx, [esp + 0x20]
push str.d3drg8x.dll
push edx
call fcn.0041829e
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004125b0
test eax, eax
jl 0x411f4c
push 0x46
push 0
push 4
push 4
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jl 0x411f4c
test edi, edi
je 0x411f33
mov dword [edi], 3
test ebx, ebx
je 0x411f3d
mov dword [ebx], 0
test ebp, ebp
je 0x411f47
mov word [ebp], 0x61
mov esi, 1
lea ecx, [esp + 0x418]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004182c8
lea eax, [esp + 0x20]
push str.ddraw.dll
push eax
call fcn.0041829e
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004125b0
test eax, eax
jl 0x41205f
push 0x9b
push 0
push 5
push 4
call fcn.00412680
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004126c0
test eax, eax
jl 0x411fcf
test edi, edi
je 0x411fb6
mov dword [edi], 5
test ebx, ebx
je 0x411fc0
mov dword [ebx], 0
test ebp, ebp
je 0x411fca
mov word [ebp], 0x20
mov esi, 1
push 0x13e
push 0
push 6
push 4
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jl 0x412017
test edi, edi
je 0x411ffe
mov dword [edi], 6
test ebx, ebx
je 0x412008
mov dword [ebx], 0
test ebp, ebp
je 0x412012
mov word [ebp], 0x20
mov esi, 1
push 0x1b4
push 0
push 6
push 4
call fcn.00412680
push edx
push eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.004126c0
test eax, eax
jl 0x41205f
test edi, edi
je 0x412046
mov dword [edi], 6
test ebx, ebx
je 0x412050
mov dword [ebx], 1
test ebp, ebp
je 0x41205a
mov word [ebp], 0x20
mov esi, 1
lea eax, [esp + 0x418]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004182c8
lea edx, [esp + 0x20]
push str.dplayx.dll
push edx
call fcn.0041829e
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004125b0
test eax, eax
jl 0x4120de
push 0x206
push 3
push 6
push 4
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jl 0x4120de
test edi, edi
je 0x4120c5
mov dword [edi], 6
test ebx, ebx
je 0x4120cf
mov dword [ebx], 1
test ebp, ebp
je 0x4120d9
mov word [ebp], 0x61
mov esi, 1
lea ecx, [esp + 0x418]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004182c8
lea eax, [esp + 0x20]
push str.ddraw.dll
push eax
call fcn.0041829e
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004125b0
test eax, eax
jl 0x41215d
push 0x2bc
push 0
push 7
push 4
call fcn.00412680
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004126c0
test eax, eax
jl 0x41215d
test edi, edi
je 0x412144
mov dword [edi], 7
test ebx, ebx
je 0x41214e
mov dword [ebx], 0
test ebp, ebp
je 0x412158
mov word [ebp], 0x20
mov esi, 1
lea edx, [esp + 0x418]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004182c8
lea ecx, [esp + 0x20]
push str.dinput.dll
push ecx
call fcn.0041829e
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004125b0
test eax, eax
jl 0x4121dc
push 0x2cc
push 0
push 7
push 4
call fcn.00412680
push edx
push eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.004126c0
test eax, eax
jl 0x4121dc
test edi, edi
je 0x4121c3
mov dword [edi], 7
test ebx, ebx
je 0x4121cd
mov dword [ebx], 0
test ebp, ebp
je 0x4121d7
mov word [ebp], 0x61
mov esi, 1
lea eax, [esp + 0x418]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004182c8
lea edx, [esp + 0x20]
push str.ddraw.dll
push edx
call fcn.0041829e
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004125b0
test eax, eax
jl 0x41229f
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 4
jne 0x41224d
push 0x190
push 0
push 8
push edx
call fcn.00412680
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004126c0
test eax, eax
jge 0x41227c
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x41229f
push 0x190
push 0x8d2
push 1
push eax
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jl 0x41229f
test edi, edi
je 0x412286
mov dword [edi], 8
test ebx, ebx
je 0x412290
mov dword [ebx], 0
test ebp, ebp
je 0x41229a
mov word [ebp], 0x20
mov esi, 1
lea ecx, [esp + 0x418]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004182c8
lea eax, [esp + 0x20]
push str.d3d8.dll
push eax
call fcn.0041829e
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004125b0
test eax, eax
jl 0x4123ec
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jne 0x412310
push 0x371
push 1
push 8
push ecx
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jge 0x412341
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 5
jne 0x412368
push 0x371
push 0xa28
push 1
push ecx
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jl 0x412364
test edi, edi
je 0x41234b
mov dword [edi], 8
test ebx, ebx
je 0x412355
mov dword [ebx], 1
test ebp, ebp
je 0x41235f
mov word [ebp], 0x20
mov esi, 1
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jne 0x41239a
push 0x385
push 1
push 8
push ecx
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jge 0x4123c9
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x4123ec
push 0x385
push 0xa28
push 1
push eax
call fcn.00412680
push edx
push eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.004126c0
test eax, eax
jl 0x4123ec
test edi, edi
je 0x4123d3
mov dword [edi], 8
test ebx, ebx
je 0x4123dd
mov dword [ebx], 1
test ebp, ebp
je 0x4123e7
mov word [ebp], 0x61
mov esi, 1
lea eax, [esp + 0x418]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004182c8
lea edx, [esp + 0x20]
push str.mpg2splt.ax
push edx
call fcn.0041829e
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004125b0
test eax, eax
jl 0x41246b
push 0x375
push 1
push 3
push 6
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jl 0x41246b
test edi, edi
je 0x412452
mov dword [edi], 8
test ebx, ebx
je 0x41245c
mov dword [ebx], 1
test ebp, ebp
je 0x412466
mov word [ebp], 0x62
mov esi, 1
lea ecx, [esp + 0x418]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004182c8
lea eax, [esp + 0x20]
push str.dpnet.dll
push eax
call fcn.0041829e
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004125b0
test eax, eax
jl 0x41252e
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jne 0x4124dc
push 0x86
push 0
push 9
push ecx
call fcn.00412680
push edx
push eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004126c0
test eax, eax
jge 0x41250b
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x41252e
push 0x86
push 0xe5d
push 2
push eax
call fcn.00412680
push edx
push eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.004126c0
test eax, eax
jl 0x41252e
test edi, edi
je 0x412515
mov dword [edi], 8
test ebx, ebx
je 0x41251f
mov dword [ebx], 2
test ebp, ebp
je 0x412529
mov word [ebp], 0x20
mov esi, 1
lea eax, [esp + 0x418]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004182c8
lea edx, [esp + 0x20]
push str.d3d9.dll
push edx
call fcn.0041829e
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004125b0
test eax, eax
jl 0x41257f
test edi, edi
je 0x41256f
mov dword [edi], 9
test ebx, ebx
je 0x412579
mov dword [ebx], 0
test ebp, ebp
je 0x4125a1
jmp 0x41259b
test esi, esi
jne 0x4125a1
test edi, edi
je 0x41258d
mov dword [edi], 0
test ebx, ebx
je 0x412597
mov dword [ebx], 0
test ebp, ebp
je 0x4125a1
mov word [ebp], 0x20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret 0xc