Function at 0x4148b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1218
call fcn.00445ff0
push ebx
mov ebx, dword [0x4a6cdc]
push ebp
push esi
lea eax, [esp + 0x18]
push edi
push eax
push 8
push 0
push str.Config_ManagerEnum
push reloc.OLEAUT32.dll_SysStringLen
mov dword [esp + 0x2c], 0
call ebx
mov ebp, dword [0x4a6ce0]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa28]
push 0x100
push ecx
push edx
push eax
call dword [0x4a6cf4]
test eax, eax
jne 0x41507a
lea ecx, [esp + 0x20]
lea edx, [esp + 0xa28]
push ecx
push 1
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call ebx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1a4]
push ecx
push edx
push str.HardWareKey
call fcn.00404bf0
push 4
lea eax, [esp + 0x1b4]
push str.SCSI
push eax
call fcn.00446320
add esp, 0x18
test eax, eax
je 0x414974
push 4
lea ecx, [esp + 0x1a8]
push str.ESDI
push ecx
call fcn.00446320
add esp, 0xc
test eax, eax
jne 0x41506a
push 0x48835c
call fcn.00404c90
mov cl, byte [esp + 0x1ad]
add esp, 4
cmp cl, 0x5c
lea eax, [esp + 0x1a9]
je 0x41499d
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x5c
jne 0x414994
inc eax
lea edx, [esp + 0x628]
push eax
push str.Enum_s
push edx
call fcn.00445f93
lea edi, [esp + 0x634]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x628]
dec ecx
sub eax, 2
mov byte [ecx + eax], 0
mov cl, byte [esp + 0x628]
cmp cl, 0x26
lea eax, [esp + 0x628]
je 0x4149ef
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x26
jne 0x4149e6
lea ecx, [esp + 0x1a4]
lea edx, [esp + 0xe28]
push ecx
push str.Enum_s
push edx
mov byte [eax], 0
call fcn.00445f93
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0xe28]
push eax
push 1
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x41506a
push 0x488314
call fcn.00404c90
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x328]
push edx
push eax
push str.DeviceDesc
call fcn.00404bf0
mov ecx, dword [0x4a78ac]
lea edi, [esp + 0x334]
mov eax, dword [ecx + 4]
add eax, 0xc9
lea edx, [eax + eax*8]
xor eax, eax
shl edx, 4
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2b4]
push ecx
push edx
push str.Class
call fcn.00404bf0
lea eax, [esp + 0x2c0]
push str.cdrom
push eax
call fcn.0044f010
add esp, 0x24
test eax, eax
jne 0x414ad6
mov ecx, dword [0x4a78ac]
mov eax, dword [ecx + 4]
lea edx, [eax + eax*8]
shl edx, 4
mov dword [edx + ecx + 0x710c], 1
jmp 0x414b1c
lea eax, [esp + 0x2a4]
push str.diskdrive
push eax
call fcn.0044f010
mov ecx, dword [0x4a78ac]
add esp, 8
test eax, eax
mov eax, dword [ecx + 4]
jne 0x414b0b
lea edx, [eax + eax*8]
shl edx, 4
mov dword [edx + ecx + 0x710c], 2
jmp 0x414b1c
lea eax, [eax + eax*8]
shl eax, 4
mov dword [eax + ecx + 0x710c], 0
mov ecx, dword [esp + 0x14]
push ecx
push str.DMACurrentlyUsed
call fcn.00404ae0
add esp, 8
cmp eax, 0xff
jne 0x414b38
or eax, 0xffffffff
mov edx, dword [0x4a78ac]
mov ecx, dword [edx + 4]
lea ecx, [ecx + ecx*8]
shl ecx, 4
mov dword [ecx + edx + 0x7190], eax
mov edx, dword [esp + 0x14]
push edx
push str.AutoInsertNotification
call fcn.00404ae0
add esp, 8
cmp eax, 0xff
jne 0x414b6a
or eax, 0xffffffff
mov edx, dword [0x4a78ac]
mov ecx, dword [edx + 4]
lea ecx, [ecx + ecx*8]
shl ecx, 4
mov dword [ecx + edx + 0x7194], eax
lea edx, [esp + 0x10]
push edx
push 1
lea eax, [esp + 0x630]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
lea ecx, [esp + 0x124]
lea edx, [esp + 0x628]
push ecx
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x1ac]
push 0
push eax
push 0x48c038
push ecx
call fcn.00413820
mov edx, dword [esp + 0x28]
add esp, 0x18
push edx
call ebp
lea eax, [esp + 0x124]
lea ecx, [esp + 0x628]
push eax
push str.SystemCurrentControlSetServicesClass_s
push ecx
call fcn.00445f93
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x628]
push edx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push edx
push str.PortDriver
call fcn.00404bf0
lea eax, [esp + 0x130]
push str.hdc0001
push eax
call fcn.0044f010
add esp, 0x14
test eax, eax
jne 0x414c3e
lea ecx, [esp + 0x24]
push 1
push ecx
push str.Primary_IDE_Channel
jmp 0x414e57
lea edx, [esp + 0x124]
push str.hdc0002
push edx
call fcn.0044f010
add esp, 8
test eax, eax
jne 0x414c68
lea eax, [esp + 0x24]
push 1
push eax
push str.Secondary_IDE_Channel
jmp 0x414e57
lea edx, [esp + 0x124]
push str.SCSIAdapter
push edx
call fcn.004461d0
add esp, 8
test eax, eax
je 0x414cb4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xa4]
push eax
push ecx
push str.DriverDesc
call fcn.00404bf0
lea edx, [esp + 0x30]
push 2
lea eax, [esp + 0xb4]
push edx
push eax
call fcn.004139b0
add esp, 0x18
jmp 0x414e5f
lea edx, [esp + 0x1a4]
push str.SBP2
push edx
call fcn.004461d0
add esp, 8
test eax, eax
je 0x414d83
lea eax, [esp + 0x10]
push eax
push 8
push 0
push str.EnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x628]
push ecx
push str.EnumPCI
push 0
push str.1394
push str.Class
push edx
call fcn.00413650
mov eax, dword [esp + 0x28]
add esp, 0x18
push eax
call ebp
lea ecx, [esp + 0x10]
lea edx, [esp + 0x628]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x414e75
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xa4]
push eax
push ecx
push str.DeviceDesc
call fcn.00404bf0
lea edx, [esp + 0x30]
push 3
lea eax, [esp + 0xb4]
push edx
push eax
call fcn.004139b0
mov edx, dword [0x4a78ac]
add esp, 0x18
mov ecx, dword [edx + 4]
lea ecx, [ecx + ecx*8]
shl ecx, 4
mov byte [ecx + edx + 0x7108], al
mov edx, dword [esp + 0x10]
push edx
call ebp
jmp 0x414e75
lea eax, [esp + 0x1a4]
push str.USBSTOR
push eax
call fcn.004461d0
add esp, 8
test eax, eax
je 0x414e4b
lea ecx, [esp + 0x10]
push ecx
push 8
push 0
push str.EnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x628]
push edx
push str.EnumPCI
push 0
push 0x48e250
push str.Class
push eax
call fcn.00413650
mov ecx, dword [esp + 0x28]
add esp, 0x18
push ecx
call ebp
lea edx, [esp + 0x10]
lea eax, [esp + 0x628]
push edx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x414e75
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xa4]
push ecx
push edx
push str.DeviceDesc
call fcn.00404bf0
lea eax, [esp + 0x30]
push 4
lea ecx, [esp + 0xb4]
push eax
push ecx
call fcn.004139b0
mov edx, dword [0x4a78ac]
add esp, 0x18
mov ecx, dword [edx + 4]
lea ecx, [ecx + ecx*8]
shl ecx, 4
mov byte [ecx + edx + 0x7108], al
mov edx, dword [esp + 0x10]
push edx
call ebp
jmp 0x414e75
push 0
push 0x48c030
push 0x48c030
call fcn.004139b0
add esp, 0xc
mov edx, dword [0x4a78ac]
mov ecx, dword [edx + 4]
lea ecx, [ecx + ecx*8]
shl ecx, 4
mov byte [ecx + edx + 0x7108], al
lea edx, [esp + 0x3a4]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.IOSUBSYS_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3a4]
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 edx, [esp + 0x3a4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
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 + 0x528]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5ac]
lea edx, [esp + 0x4ac]
push ecx
lea eax, [esp + 0x3ac]
push edx
push eax
call fcn.00403390
mov ecx, dword [0x4a78ac]
lea edi, [esp + 0x34]
add esp, 0x10
mov eax, dword [ecx + 4]
lea edx, [eax + eax*8]
xor eax, eax
shl edx, 4
mov al, byte [edx + ecx + 0x7108]
lea edx, [eax*8]
sub edx, eax
shl edx, 4
add edx, eax
xor eax, eax
lea edx, [ecx + edx*8 + 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4a78ac]
lea edi, [esp + 0x528]
mov eax, dword [ecx + 4]
lea edx, [eax + eax*8]
shl edx, 4
xor eax, eax
mov al, byte [edx + ecx + 0x7108]
lea edx, [eax*8]
sub edx, eax
shl edx, 4
add edx, eax
xor eax, eax
lea edx, [ecx + edx*8 + 0x210]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4a78ac]
lea edi, [esp + 0x4a8]
mov eax, dword [ecx + 4]
lea edx, [eax + eax*8]
xor eax, eax
shl edx, 4
mov al, byte [edx + ecx + 0x7108]
lea edx, [eax*8]
sub edx, eax
shl edx, 4
add edx, eax
xor eax, eax
lea edx, [ecx + edx*8 + 0x290]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4a78ac]
lea edi, [esp + 0x5a8]
mov eax, dword [ecx + 4]
lea edx, [eax + eax*8]
xor eax, eax
shl edx, 4
mov al, byte [edx + ecx + 0x7108]
lea edx, [eax*8]
sub edx, eax
shl edx, 4
add edx, eax
xor eax, eax
lea edx, [ecx + edx*8 + 0x310]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4a78ac]
mov esi, dword [eax + 4]
inc esi
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esp + 0x20]
push eax
call ebp
inc dword [esp + 0x18]
jmp 0x4148e7
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1218
ret