Function at 0x4025a6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x407e72
call fcn.00407b40
sub esp, 0x464
push ebx
push esi
push edi
xor edi, edi
push 0x10e8
mov esi, 0x409870
push edi
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x1c], edi
push str.CDROM
call fcn.00402223
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 4], edi
call fcn.00402271
cmp eax, edi
jne 0x40287f
mov dword [ebp - 0x18], 0x40bca8
mov edi, 0x80000002
mov ebx, 0x200
cmp dword [ebp - 0x18], 0x40c0bc
jge 0x40287f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x128]
push dword [0x40aa60]
push eax
call fcn.004028ca
add esp, 0xc
test eax, eax
jne 0x4028a2
push 0x105
push dword [0x40c1c8]
push str.Class
push dword [0x40aa60]
push edi
call fcn.00402094
add esp, 0x14
test eax, eax
jne 0x40285e
push 0x4094f4
push dword [0x40c1c8]
call sub.MSVCRT.dll__stricmp
pop ecx
test eax, eax
pop ecx
jne 0x40285e
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x18]
call sub.MSVCRT.dll_strcpy
push ebx
push esi
lea eax, [ebp - 0x230]
push str.DeviceDesc
push eax
push edi
call fcn.00402094
push esi
mov dword [ebp - 0x10], eax
call fcn.004028a7
add esp, 0x20
cmp dword [ebp - 0x10], 0
jne 0x4028a2
lea eax, [ebp - 0x230]
push eax
call fcn.00402987
mov dword [esp], 0x105
push dword [0x40c1c8]
mov byte [esi + 0x436], al
mov ax, word [ebp - 0x20]
push str.Driver
mov word [esi + 0x434], ax
push dword [0x40aa60]
push edi
call fcn.00402094
add esp, 0x14
lea eax, [esi + 0x20a]
push dword [0x40c1c8]
push str.SystemCurrentControlSetServicesClass
push 0x409310
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esi + 0x32f]
push ebx
push eax
push str.DeviceDesc
push dword [0x40aa60]
push edi
call fcn.00402094
add esp, 0x24
test eax, eax
jne 0x4028a2
push dword [0x40c1c8]
lea eax, [ebp - 0x128]
push eax
call fcn.004029c0
pop ecx
test eax, eax
pop ecx
jne 0x4028a2
push dword [0x40c1c8]
lea eax, [esi + 0x30f]
push eax
call sub.MSVCRT.dll_strcpy
mov ecx, dword [0x409350]
lea eax, [esi + 0x105]
push dword [ecx*8 + 0x40931c]
push eax
call sub.MSVCRT.dll_strcpy
and dword [ebp - 0x14], 0
add esp, 0x10
cmp dword [0x409350], 0
jle 0x4027ee
mov dword [ebp - 0x10], str.esdi_506.pdr
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [0x40c1c8]
call sub.MSVCRT.dll__stricmp
pop ecx
test eax, eax
pop ecx
je 0x4027c6
inc dword [ebp - 0x14]
add dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x409350]
jl 0x40279c
jmp 0x4027de
mov eax, dword [ebp - 0x14]
push dword [eax*8 + 0x409324]
lea eax, [esi + 0x105]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4027ee
cmp eax, dword [0x409350]
jl 0x40284e
push ebx
push dword [0x40aa60]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.IOSUBSYS_
push dword [0x40aa60]
call sub.MSVCRT.dll_strcat
push dword [0x40c1c8]
push dword [0x40aa60]
call sub.MSVCRT.dll_strcat
add esp, 0x10
push 0
push 0x4094ac
push dword [0x40aa60]
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 1
call fcn.004010b8
push eax
lea eax, [esi + 0x105]
push eax
call sub.MSVCRT.dll_strcpy
and byte [ebp - 4], 0
pop ecx
pop ecx
inc dword [ebp - 0x1c]
add dword [ebp - 0x18], 0x105
add esi, 0x43a
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040228f
test eax, eax
je 0x402617
mov esi, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x33c]
call fcn.00402262
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push 0xfffffffffffffffd
pop esi
jmp 0x402882