Function at 0x41d7a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
lea eax, [esp + 0x208]
push ebx
push ebp
push 0x104
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, dword [esp + 0x414]
test eax, eax
je 0x41e2d3
push esi
push edi
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x31b], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ddraw.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41d937
push 0x5f
push ebx
push 2
push 4
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41d89a
test ebp, ebp
je 0x41d874
mov dword [ebp], 1
mov esi, dword [esp + 0x420]
test esi, esi
je 0x41d885
mov dword [esi], 0
mov edi, dword [esp + 0x424]
test edi, edi
je 0x41d893
mov byte [edi], 0x20
mov ebx, 1
jmp 0x41d8a8
mov edi, dword [esp + 0x424]
mov esi, dword [esp + 0x420]
push 0x448
push 0
push 3
push 4
call fcn.0041e3d0
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41d8f1
test ebp, ebp
je 0x41d8db
mov dword [ebp], 2
test esi, esi
je 0x41d8e5
mov dword [esi], 0
test edi, edi
je 0x41d8ec
mov byte [edi], 0x20
mov ebx, 1
push 0x44
push 0
push 4
push 4
call fcn.0041e3d0
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41d937
test ebp, ebp
je 0x41d921
mov dword [ebp], 3
test esi, esi
je 0x41d92b
mov dword [esi], 0
test edi, edi
je 0x41d932
mov byte [edi], 0x20
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.d3drg8x.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41d9f7
push 0x46
push 0
push 4
push 4
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41d9f7
test ebp, ebp
je 0x41d9d3
mov dword [ebp], 3
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41d9e4
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41d9f2
mov byte [eax], 0x61
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ddraw.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41db60
push 0x9b
push 0
push 5
push 4
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41dac0
test ebp, ebp
je 0x41da9a
mov dword [ebp], 5
mov esi, dword [esp + 0x420]
test esi, esi
je 0x41daab
mov dword [esi], 0
mov edi, dword [esp + 0x424]
test edi, edi
je 0x41dab9
mov byte [edi], 0x20
mov ebx, 1
jmp 0x41dace
mov edi, dword [esp + 0x424]
mov esi, dword [esp + 0x420]
push 0x13e
push 0
push 6
push 4
call fcn.0041e3d0
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41db17
test ebp, ebp
je 0x41db01
mov dword [ebp], 6
test esi, esi
je 0x41db0b
mov dword [esi], 0
test edi, edi
je 0x41db12
mov byte [edi], 0x20
mov ebx, 1
push 0x1b4
push 0
push 6
push 4
call fcn.0041e3d0
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41db60
test ebp, ebp
je 0x41db4a
mov dword [ebp], 6
test esi, esi
je 0x41db54
mov dword [esi], 1
test edi, edi
je 0x41db5b
mov byte [edi], 0x20
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.dplayx.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41dc23
push 0x206
push 3
push 6
push 4
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41dc23
test ebp, ebp
je 0x41dbff
mov dword [ebp], 6
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41dc10
mov dword [eax], 1
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41dc1e
mov byte [eax], 0x61
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ddraw.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41dce6
push 0x2bc
push 0
push 7
push 4
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41dce6
test ebp, ebp
je 0x41dcc2
mov dword [ebp], 7
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41dcd3
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41dce1
mov byte [eax], 0x20
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.dinput.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41dda9
push 0x2cc
push 0
push 7
push 4
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41dda9
test ebp, ebp
je 0x41dd85
mov dword [ebp], 7
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41dd96
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41dda4
mov byte [eax], 0x61
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ddraw.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41deb3
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 4
jne 0x41de52
push 0x190
push 0
push 8
push edx
call fcn.0041e3d0
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041e410
add esp, 0x20
test eax, eax
jge 0x41de84
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x41deb3
push 0x190
push 0x8d2
push 1
push eax
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41deb3
test ebp, ebp
je 0x41de8f
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41dea0
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41deae
mov byte [eax], 0x20
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.d3d8.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41e05f
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 4
jne 0x41df5c
push 0x371
push 1
push 8
push edx
call fcn.0041e3d0
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041e410
add esp, 0x20
test eax, eax
jge 0x41df90
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 5
jne 0x41dfc9
push 0x371
push 0xa28
push 1
push edx
call fcn.0041e3d0
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41dfc5
test ebp, ebp
je 0x41df9b
mov dword [ebp], 8
mov esi, dword [esp + 0x420]
test esi, esi
je 0x41dfac
mov dword [esi], 1
mov edi, dword [esp + 0x424]
test edi, edi
je 0x41dfba
mov byte [edi], 0x20
mov eax, dword [esp + 0x14]
mov ebx, 1
jmp 0x41dfd7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x424]
mov esi, dword [esp + 0x420]
mov edx, eax
shr edx, 0x10
cmp edx, 4
jne 0x41e00c
push 0x385
push 1
push 8
push edx
call fcn.0041e3d0
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041e410
add esp, 0x20
test eax, eax
jge 0x41e03e
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x41e05f
push 0x385
push 0xa28
push 1
push eax
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41e05f
test ebp, ebp
je 0x41e049
mov dword [ebp], 8
test esi, esi
je 0x41e053
mov dword [esi], 1
test edi, edi
je 0x41e05a
mov byte [edi], 0x61
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.mpg2splt.ax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41e122
push 0x375
push 1
push 3
push 6
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41e122
test ebp, ebp
je 0x41e0fe
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41e10f
mov dword [eax], 1
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41e11d
mov byte [eax], 0x62
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.dpnet.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
jl 0x41e22c
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 4
jne 0x41e1cb
push 0x86
push 0
push 9
push edx
call fcn.0041e3d0
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041e410
add esp, 0x20
test eax, eax
jge 0x41e1fd
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x41e22c
push 0x86
push 0xe5d
push 2
push eax
call fcn.0041e3d0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041e410
add esp, 0x20
test eax, eax
jl 0x41e22c
test ebp, ebp
je 0x41e208
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41e219
mov dword [eax], 2
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41e227
mov byte [eax], 0x20
mov ebx, 1
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.d3d9.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041e310
add esp, 8
test eax, eax
pop edi
pop esi
jl 0x41e2cf
test ebp, ebp
je 0x41e2a5
mov dword [ebp], 9
mov eax, dword [esp + 0x418]
test eax, eax
je 0x41e2b6
mov dword [eax], 0
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x41e2fd
mov byte [eax], 0x20
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret
test ebx, ebx
jne 0x41e2fd
test ebp, ebp
je 0x41e2de
mov dword [ebp], 0
mov eax, dword [esp + 0x418]
test eax, eax
je 0x41e2ef
mov dword [eax], 0
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x41e2fd
mov byte [eax], 0x20
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret