Function at 0x414040
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1218
call fcn.004453d0
push ebx
mov ebx, dword [0x4a493c]
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 [0x4a4940]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa28]
push pe_nt_image_headers32
push ecx
push edx
push eax
call dword [0x4a4954]
test eax, eax
jne 0x41480a
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.00404b50
push 4
lea eax, [esp + 0x1b4]
push str.SCSI
push eax
call fcn.00445700
add esp, 0x18
test eax, eax
je 0x414104
push 4
lea ecx, [esp + 0x1a8]
push str.ESDI
push ecx
call fcn.00445700
add esp, 0xc
test eax, eax
jne 0x4147fa
push 0x48634c
call fcn.00404bf0
mov cl, byte [esp + 0x1ad]
add esp, 4
cmp cl, 0x5c
lea eax, [esp + 0x1a9]
je 0x41412d
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x5c
jne 0x414124
inc eax
lea edx, [esp + 0x628]
push eax
push str.Enum_s
push edx
call fcn.0044537b
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 0x41417f
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x26
jne 0x414176
lea ecx, [esp + 0x1a4]
lea edx, [esp + 0xe28]
push ecx
push str.Enum_s
push edx
mov byte [eax], 0
call fcn.0044537b
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 0x4147fa
push 0x486304
call fcn.00404bf0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x328]
push edx
push eax
push str.DeviceDesc
call fcn.00404b50
mov ecx, dword [0x4a550c]
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.00404b50
lea eax, [esp + 0x2c0]
push str.cdrom
push eax
call fcn.0044e360
add esp, 0x24
test eax, eax
jne 0x414266
mov ecx, dword [0x4a550c]
mov eax, dword [ecx + 4]
lea edx, [eax + eax*8]
shl edx, 4
mov dword [edx + ecx + 0x710c], 1
jmp 0x4142ac
lea eax, [esp + 0x2a4]
push str.diskdrive
push eax
call fcn.0044e360
mov ecx, dword [0x4a550c]
add esp, 8
test eax, eax
mov eax, dword [ecx + 4]
jne 0x41429b
lea edx, [eax + eax*8]
shl edx, 4
mov dword [edx + ecx + 0x710c], 2
jmp 0x4142ac
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.00404a40
add esp, 8
cmp eax, 0xff
jne 0x4142c8
or eax, 0xffffffff
mov edx, dword [0x4a550c]
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.00404a40
add esp, 8
cmp eax, 0xff
jne 0x4142fa
or eax, 0xffffffff
mov edx, dword [0x4a550c]
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 0x489fb4
push ecx
call fcn.00412fb0
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.0044537b
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.00404b50
lea eax, [esp + 0x130]
push str.hdc0001
push eax
call fcn.0044e360
add esp, 0x14
test eax, eax
jne 0x4143ce
lea ecx, [esp + 0x24]
push 1
push ecx
push str.Primary_IDE_Channel
jmp 0x4145e7
lea edx, [esp + 0x124]
push str.hdc0002
push edx
call fcn.0044e360
add esp, 8
test eax, eax
jne 0x4143f8
lea eax, [esp + 0x24]
push 1
push eax
push str.Secondary_IDE_Channel
jmp 0x4145e7
lea edx, [esp + 0x124]
push str.SCSIAdapter
push edx
call fcn.004455b0
add esp, 8
test eax, eax
je 0x414444
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xa4]
push eax
push ecx
push str.DriverDesc
call fcn.00404b50
lea edx, [esp + 0x30]
push 2
lea eax, [esp + 0xb4]
push edx
push eax
call fcn.00413140
add esp, 0x18
jmp 0x4145ef
lea edx, [esp + 0x1a4]
push str.SBP2
push edx
call fcn.004455b0
add esp, 8
test eax, eax
je 0x414513
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.00412de0
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 0x414605
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xa4]
push eax
push ecx
push str.DeviceDesc
call fcn.00404b50
lea edx, [esp + 0x30]
push 3
lea eax, [esp + 0xb4]
push edx
push eax
call fcn.00413140
mov edx, dword [0x4a550c]
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 0x414605
lea eax, [esp + 0x1a4]
push str.USBSTOR
push eax
call fcn.004455b0
add esp, 8
test eax, eax
je 0x4145db
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 0x48bff0
push str.Class
push eax
call fcn.00412de0
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 0x414605
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xa4]
push ecx
push edx
push str.DeviceDesc
call fcn.00404b50
lea eax, [esp + 0x30]
push 4
lea ecx, [esp + 0xb4]
push eax
push ecx
call fcn.00413140
mov edx, dword [0x4a550c]
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 0x414605
push 0
push 0x489fac
push 0x489fac
call fcn.00413140
add esp, 0xc
mov edx, dword [0x4a550c]
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.004033a0
mov ecx, dword [0x4a550c]
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 [0x4a550c]
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 [0x4a550c]
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 [0x4a550c]
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 [0x4a550c]
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 0x414077
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1218
ret