Function at 0x41cd50
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 0x41d883
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41cee7
push 0x5f
push ebx
push 2
push 4
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41ce4a
test ebp, ebp
je 0x41ce24
mov dword [ebp], 1
mov esi, dword [esp + 0x420]
test esi, esi
je 0x41ce35
mov dword [esi], 0
mov edi, dword [esp + 0x424]
test edi, edi
je 0x41ce43
mov byte [edi], 0x20
mov ebx, 1
jmp 0x41ce58
mov edi, dword [esp + 0x424]
mov esi, dword [esp + 0x420]
push 0x448
push 0
push 3
push 4
call fcn.0041d980
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41cea1
test ebp, ebp
je 0x41ce8b
mov dword [ebp], 2
test esi, esi
je 0x41ce95
mov dword [esi], 0
test edi, edi
je 0x41ce9c
mov byte [edi], 0x20
mov ebx, 1
push 0x44
push 0
push 4
push 4
call fcn.0041d980
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41cee7
test ebp, ebp
je 0x41ced1
mov dword [ebp], 3
test esi, esi
je 0x41cedb
mov dword [esi], 0
test edi, edi
je 0x41cee2
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41cfa7
push 0x46
push 0
push 4
push 4
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41cfa7
test ebp, ebp
je 0x41cf83
mov dword [ebp], 3
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41cf94
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41cfa2
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41d110
push 0x9b
push 0
push 5
push 4
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d070
test ebp, ebp
je 0x41d04a
mov dword [ebp], 5
mov esi, dword [esp + 0x420]
test esi, esi
je 0x41d05b
mov dword [esi], 0
mov edi, dword [esp + 0x424]
test edi, edi
je 0x41d069
mov byte [edi], 0x20
mov ebx, 1
jmp 0x41d07e
mov edi, dword [esp + 0x424]
mov esi, dword [esp + 0x420]
push 0x13e
push 0
push 6
push 4
call fcn.0041d980
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d0c7
test ebp, ebp
je 0x41d0b1
mov dword [ebp], 6
test esi, esi
je 0x41d0bb
mov dword [esi], 0
test edi, edi
je 0x41d0c2
mov byte [edi], 0x20
mov ebx, 1
push 0x1b4
push 0
push 6
push 4
call fcn.0041d980
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d110
test ebp, ebp
je 0x41d0fa
mov dword [ebp], 6
test esi, esi
je 0x41d104
mov dword [esi], 1
test edi, edi
je 0x41d10b
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41d1d3
push 0x206
push 3
push 6
push 4
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d1d3
test ebp, ebp
je 0x41d1af
mov dword [ebp], 6
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41d1c0
mov dword [eax], 1
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41d1ce
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41d296
push 0x2bc
push 0
push 7
push 4
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d296
test ebp, ebp
je 0x41d272
mov dword [ebp], 7
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41d283
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41d291
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41d359
push 0x2cc
push 0
push 7
push 4
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d359
test ebp, ebp
je 0x41d335
mov dword [ebp], 7
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41d346
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41d354
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41d463
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 4
jne 0x41d402
push 0x190
push 0
push 8
push edx
call fcn.0041d980
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jge 0x41d434
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x41d463
push 0x190
push 0x8d2
push 1
push eax
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d463
test ebp, ebp
je 0x41d43f
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41d450
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41d45e
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41d60f
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 4
jne 0x41d50c
push 0x371
push 1
push 8
push edx
call fcn.0041d980
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jge 0x41d540
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 5
jne 0x41d579
push 0x371
push 0xa28
push 1
push edx
call fcn.0041d980
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d575
test ebp, ebp
je 0x41d54b
mov dword [ebp], 8
mov esi, dword [esp + 0x420]
test esi, esi
je 0x41d55c
mov dword [esi], 1
mov edi, dword [esp + 0x424]
test edi, edi
je 0x41d56a
mov byte [edi], 0x20
mov eax, dword [esp + 0x14]
mov ebx, 1
jmp 0x41d587
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 0x41d5bc
push 0x385
push 1
push 8
push edx
call fcn.0041d980
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jge 0x41d5ee
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x41d60f
push 0x385
push 0xa28
push 1
push eax
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d60f
test ebp, ebp
je 0x41d5f9
mov dword [ebp], 8
test esi, esi
je 0x41d603
mov dword [esi], 1
test edi, edi
je 0x41d60a
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41d6d2
push 0x375
push 1
push 3
push 6
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d6d2
test ebp, ebp
je 0x41d6ae
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41d6bf
mov dword [eax], 1
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41d6cd
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.0041d8c0
add esp, 8
test eax, eax
jl 0x41d7dc
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
cmp edx, 4
jne 0x41d77b
push 0x86
push 0
push 9
push edx
call fcn.0041d980
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jge 0x41d7ad
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x41d7dc
push 0x86
push 0xe5d
push 2
push eax
call fcn.0041d980
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041d9c0
add esp, 0x20
test eax, eax
jl 0x41d7dc
test ebp, ebp
je 0x41d7b8
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41d7c9
mov dword [eax], 2
mov eax, dword [esp + 0x424]
test eax, eax
je 0x41d7d7
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.0041d8c0
add esp, 8
test eax, eax
pop edi
pop esi
jl 0x41d87f
test ebp, ebp
je 0x41d855
mov dword [ebp], 9
mov eax, dword [esp + 0x418]
test eax, eax
je 0x41d866
mov dword [eax], 0
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x41d8ad
mov byte [eax], 0x20
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret
test ebx, ebx
jne 0x41d8ad
test ebp, ebp
je 0x41d88e
mov dword [ebp], 0
mov eax, dword [esp + 0x418]
test eax, eax
je 0x41d89f
mov dword [eax], 0
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x41d8ad
mov byte [eax], 0x20
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret