Function at 0x1000e820
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 0x1000f33d
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
mov edx, dword [0x1004115c]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [0x10041158]
mov ax, word [0x10041160]
dec edi
mov dword [edi], ecx
mov cl, byte [0x10041162]
mov dword [edi + 4], edx
lea edx, [esp + 0x10]
push edx
mov word [edi + 8], ax
lea eax, [esp + 0x1c]
push eax
mov byte [edi + 0xa], cl
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000e9b9
push 0x5f
push ebx
push 2
push 4
call fcn.1000f440
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000e91c
test ebp, ebp
je 0x1000e8f6
mov dword [ebp], 1
mov esi, dword [esp + 0x420]
test esi, esi
je 0x1000e907
mov dword [esi], 0
mov edi, dword [esp + 0x424]
test edi, edi
je 0x1000e915
mov byte [edi], 0x20
mov ebx, 1
jmp 0x1000e92a
mov edi, dword [esp + 0x424]
mov esi, dword [esp + 0x420]
push 0x448
push 0
push 3
push 4
call fcn.1000f440
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000e973
test ebp, ebp
je 0x1000e95d
mov dword [ebp], 2
test esi, esi
je 0x1000e967
mov dword [esi], 0
test edi, edi
je 0x1000e96e
mov byte [edi], 0x20
mov ebx, 1
push 0x44
push 0
push 4
push 4
call fcn.1000f440
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000e9b9
test ebp, ebp
je 0x1000e9a3
mov dword [ebp], 3
test esi, esi
je 0x1000e9ad
mov dword [esi], 0
test edi, edi
je 0x1000e9b4
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
mov edx, dword [0x10041168]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.d3drg8x.dll]
mov eax, dword [0x1004116c]
dec edi
mov dword [edi], ecx
mov cl, byte [0x10041170]
mov dword [edi + 4], edx
lea edx, [esp + 0x10]
push edx
mov dword [edi + 8], eax
lea eax, [esp + 0x1c]
push eax
mov byte [edi + 0xc], cl
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000ea79
push 0x46
push 0
push 4
push 4
call fcn.1000f440
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000ea79
test ebp, ebp
je 0x1000ea55
mov dword [ebp], 3
mov eax, dword [esp + 0x420]
test eax, eax
je 0x1000ea66
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x1000ea74
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
mov edx, dword [0x10041178]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [0x10041174]
mov ax, word [0x1004117c]
dec edi
mov dword [edi], ecx
mov cl, byte [0x1004117e]
mov dword [edi + 4], edx
lea edx, [esp + 0x10]
push edx
mov word [edi + 8], ax
lea eax, [esp + 0x1c]
push eax
mov byte [edi + 0xa], cl
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000ebe4
push 0x9b
push 0
push 5
push 4
call fcn.1000f440
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000eb44
test ebp, ebp
je 0x1000eb1e
mov dword [ebp], 5
mov esi, dword [esp + 0x420]
test esi, esi
je 0x1000eb2f
mov dword [esi], 0
mov edi, dword [esp + 0x424]
test edi, edi
je 0x1000eb3d
mov byte [edi], 0x20
mov ebx, 1
jmp 0x1000eb52
mov edi, dword [esp + 0x424]
mov esi, dword [esp + 0x420]
push 0x13e
push 0
push 6
push 4
call fcn.1000f440
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000eb9b
test ebp, ebp
je 0x1000eb85
mov dword [ebp], 6
test esi, esi
je 0x1000eb8f
mov dword [esi], 0
test edi, edi
je 0x1000eb96
mov byte [edi], 0x20
mov ebx, 1
push 0x1b4
push 0
push 6
push 4
call fcn.1000f440
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000ebe4
test ebp, ebp
je 0x1000ebce
mov dword [ebp], 6
test esi, esi
je 0x1000ebd8
mov dword [esi], 1
test edi, edi
je 0x1000ebdf
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
mov edx, dword [0x10041184]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.dplayx.dll]
dec edi
mov eax, dword [0x10041188]
mov dword [edi], ecx
lea ecx, [esp + 0x10]
push ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x1c]
push edx
mov dword [edi + 8], eax
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000ec9e
push 0x206
push 3
push 6
push 4
call fcn.1000f440
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000ec9e
test ebp, ebp
je 0x1000ec7a
mov dword [ebp], 6
mov eax, dword [esp + 0x420]
test eax, eax
je 0x1000ec8b
mov dword [eax], 1
mov eax, dword [esp + 0x424]
test eax, eax
je 0x1000ec99
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
mov edx, dword [0x10041190]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [0x1004118c]
mov ax, word [0x10041194]
dec edi
mov dword [edi], ecx
mov cl, byte [0x10041196]
mov dword [edi + 4], edx
lea edx, [esp + 0x10]
push edx
mov word [edi + 8], ax
lea eax, [esp + 0x1c]
push eax
mov byte [edi + 0xa], cl
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000ed63
push 0x2bc
push 0
push 7
push 4
call fcn.1000f440
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000ed63
test ebp, ebp
je 0x1000ed3f
mov dword [ebp], 7
mov eax, dword [esp + 0x420]
test eax, eax
je 0x1000ed50
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x1000ed5e
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
mov edx, dword [0x1004119c]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.dinput.dll]
dec edi
mov eax, dword [0x100411a0]
mov dword [edi], ecx
lea ecx, [esp + 0x10]
push ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x1c]
push edx
mov dword [edi + 8], eax
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000ee1d
push 0x2cc
push 0
push 7
push 4
call fcn.1000f440
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000ee1d
test ebp, ebp
je 0x1000edf9
mov dword [ebp], 7
mov eax, dword [esp + 0x420]
test eax, eax
je 0x1000ee0a
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x1000ee18
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
mov edx, dword [0x100411a8]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.ddraw.dll]
mov ax, word [0x100411ac]
dec edi
mov dword [edi], ecx
mov cl, byte [0x100411ae]
mov dword [edi + 4], edx
lea edx, [esp + 0x10]
push edx
mov word [edi + 8], ax
lea eax, [esp + 0x1c]
push eax
mov byte [edi + 0xa], cl
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000ef29
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jne 0x1000eec8
push 0x190
push 0
push 8
push ecx
call fcn.1000f440
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.1000f480
add esp, 0x20
test eax, eax
jge 0x1000eefa
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x1000ef29
push 0x190
push 0x8d2
push 1
push eax
call fcn.1000f440
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000ef29
test ebp, ebp
je 0x1000ef05
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x1000ef16
mov dword [eax], 0
mov eax, dword [esp + 0x424]
test eax, eax
je 0x1000ef24
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
mov edx, dword [0x100411b4]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.d3d8.dll]
dec edi
mov ax, word [0x100411b8]
mov dword [edi], ecx
lea ecx, [esp + 0x10]
push ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x1c]
push edx
mov word [edi + 8], ax
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000f0ce
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jne 0x1000efcb
push 0x371
push 1
push 8
push ecx
call fcn.1000f440
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.1000f480
add esp, 0x20
test eax, eax
jge 0x1000efff
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 5
jne 0x1000f038
push 0x371
push 0xa28
push 1
push ecx
call fcn.1000f440
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000f034
test ebp, ebp
je 0x1000f00a
mov dword [ebp], 8
mov esi, dword [esp + 0x420]
test esi, esi
je 0x1000f01b
mov dword [esi], 1
mov edi, dword [esp + 0x424]
test edi, edi
je 0x1000f029
mov byte [edi], 0x20
mov eax, dword [esp + 0x14]
mov ebx, 1
jmp 0x1000f046
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x424]
mov esi, dword [esp + 0x420]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jne 0x1000f07b
push 0x385
push 1
push 8
push ecx
call fcn.1000f440
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.1000f480
add esp, 0x20
test eax, eax
jge 0x1000f0ad
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x1000f0ce
push 0x385
push 0xa28
push 1
push eax
call fcn.1000f440
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000f0ce
test ebp, ebp
je 0x1000f0b8
mov dword [ebp], 8
test esi, esi
je 0x1000f0c2
mov dword [esi], 1
test edi, edi
je 0x1000f0c9
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
mov edx, dword [0x100411c0]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.mpg2splt.ax]
mov eax, dword [0x100411c4]
dec edi
mov dword [edi], ecx
mov cl, byte [0x100411c8]
mov dword [edi + 4], edx
lea edx, [esp + 0x10]
push edx
mov dword [edi + 8], eax
lea eax, [esp + 0x1c]
push eax
mov byte [edi + 0xc], cl
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000f191
push 0x375
push 1
push 3
push 6
call fcn.1000f440
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000f191
test ebp, ebp
je 0x1000f16d
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x1000f17e
mov dword [eax], 1
mov eax, dword [esp + 0x424]
test eax, eax
je 0x1000f18c
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
mov edx, dword [0x100411d0]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.dpnet.dll]
mov ax, word [0x100411d4]
dec edi
mov dword [edi], ecx
mov cl, byte [0x100411d6]
mov dword [edi + 4], edx
lea edx, [esp + 0x10]
push edx
mov word [edi + 8], ax
lea eax, [esp + 0x1c]
push eax
mov byte [edi + 0xa], cl
call fcn.1000f380
add esp, 8
test eax, eax
jl 0x1000f29d
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jne 0x1000f23c
push 0x86
push 0
push 9
push ecx
call fcn.1000f440
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.1000f480
add esp, 0x20
test eax, eax
jge 0x1000f26e
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 5
jne 0x1000f29d
push 0x86
push 0xe5d
push 2
push eax
call fcn.1000f440
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000f480
add esp, 0x20
test eax, eax
jl 0x1000f29d
test ebp, ebp
je 0x1000f279
mov dword [ebp], 8
mov eax, dword [esp + 0x420]
test eax, eax
je 0x1000f28a
mov dword [eax], 2
mov eax, dword [esp + 0x424]
test eax, eax
je 0x1000f298
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
mov edx, dword [0x100411dc]
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]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.d3d9.dll]
dec edi
mov ax, word [0x100411e0]
mov dword [edi], ecx
lea ecx, [esp + 0x10]
push ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x1c]
push edx
mov word [edi + 8], ax
call fcn.1000f380
add esp, 8
test eax, eax
pop edi
pop esi
jl 0x1000f339
test ebp, ebp
je 0x1000f30f
mov dword [ebp], 9
mov eax, dword [esp + 0x418]
test eax, eax
je 0x1000f320
mov dword [eax], 0
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x1000f367
mov byte [eax], 0x20
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret
test ebx, ebx
jne 0x1000f367
test ebp, ebp
je 0x1000f348
mov dword [ebp], 0
mov eax, dword [esp + 0x418]
test eax, eax
je 0x1000f359
mov dword [eax], 0
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x1000f367
mov byte [eax], 0x20
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret