Function at 0x41583b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x158], 0
push str.newdev.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x4158bd
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
push str.UpdateDriverForPlugAndPlayDevicesA
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x415911
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
push str.cfgmgr32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jne 0x41595e
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
push str.CMP_WaitNoPendingInstallEvents
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4159ac
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
push 0x5344dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x4159f9
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
push str.SetupCopyOEMInfA
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415a47
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
push 0x200
push 0x5c2a40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._setup_aladdin_akspccard.inf
push 0x5c2a40
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x150]
push eax
push 0x5c2a40
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x415aaf
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
mov dword [ebp - 0x15c], 0
jmp 0x415aca
mov ecx, dword [ebp - 0x15c]
add ecx, 1
mov dword [ebp - 0x15c], ecx
cmp dword [ebp - 0x15c], 3
ja 0x415af1
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx*4 + 0x532de0]
push eax
call fcn.00415ef9
add esp, 4
test eax, eax
je 0x415aef
jmp 0x415af1
jmp 0x415abb
cmp dword [ebp - 0x15c], 4
jae 0x415b76
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0x5c2a40
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx*4 + 0x532de0]
push eax
push 0
call dword [ebp - 0x160]
test eax, eax
jne 0x415b6c
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xb
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
call fcn.0040f318
jmp 0x415c37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x415bd0
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xc
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push 0x5c2a40
call dword [ebp - 4]
add esp, 0x20
test eax, eax
jne 0x415c37
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xd
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
cmp dword [ebp - 0x10], 0
je 0x415c73
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5bc8a8], 1
mov eax, dword [ebp - 0xc]
jmp 0x415c9d
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret