Function at 0x4144a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x15c], 0
push str.newdev.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x41452b
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
push str.UpdateDriverForPlugAndPlayDevicesA
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x41457f
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
push str.cfgmgr32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jne 0x4145cc
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
push str.CMP_WaitNoPendingInstallEvents
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41461a
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
push 0x522cc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x414667
mov eax, dword [ebp - 0x15c]
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
push str.SetupCopyOEMInfA
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4146b5
mov edx, dword [ebp - 0x15c]
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
push 0x200
push 0x5abd60
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._setup_aladdin_aksusb.inf
push 0x5abd60
call fcn.0041e940
add esp, 8
lea eax, [ebp - 0x154]
push eax
push 0x5abd60
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x41471d
mov ecx, dword [ebp - 0x158]
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 - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
push 0x522d00
call fcn.00414b1f
add esp, 4
test eax, eax
je 0x41479c
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0x5abd60
push str.USBVid_0529Pid_0001
push 0
call dword [ebp - 0x160]
test eax, eax
jne 0x414797
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
jmp 0x41485d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x4147f6
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push 0x5abd60
call dword [ebp - 8]
add esp, 0x20
test eax, eax
jne 0x41485d
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
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 - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
cmp dword [ebp - 0x14], 0
je 0x414899
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5a5bd8], 1
mov eax, dword [ebp - 0x10]
jmp 0x4148c3
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret