Function at 0x1001a7e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041419
mov eax, dword fs:[0]
push eax
sub esp, 0x5f4
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x5e8], eax
mov dword [ebp - 0x5f4], edx
mov dword [ebp - 0x5f8], ecx
test eax, eax
je 0x1001aee3
test ecx, ecx
je 0x1001aee3
test edx, edx
je 0x1001aee3
push str.DoGetInstalledInfNameEx_Start
call fcn.10027780
mov eax, dword [ebp - 0x5e8]
push eax
push str.DriverName:_s
call fcn.10027780
add esp, 0xc
lea ecx, [ebp - 0x5b8]
call fcn.10018500
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 0x5d8], eax
mov dword [ebp - 0x5d4], eax
lea ecx, [ebp - 0x5dc]
push ecx
push edi
push esi
push ebx
mov byte [ebp - 4], 1
call fcn.100137d0
add esp, 0x10
call fcn.100284d0
test byte [eax + 0x120], 1
je 0x1001a948
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.infOther_
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1002d12a
xor ebx, ebx
mov dword [ebp - 0x5cc], ebx
mov dword [ebp - 0x5c8], ebx
mov dword [ebp - 0x5c4], ebx
lea ecx, [ebp - 0x5cc]
push ecx
push edi
lea edx, [ebp - 0x218]
push esi
push edx
mov byte [ebp - 4], 2
call fcn.100137d0
mov esi, dword [ebp - 0x5cc]
add esp, 0x1c
cmp esi, dword [ebp - 0x5c8]
je 0x1001a937
jmp 0x1001a920
push esi
lea ecx, [ebp - 0x5dc]
call fcn.10003180
add esi, 0x1c
cmp esi, dword [ebp - 0x5c8]
jne 0x1001a920
lea ecx, [ebp - 0x5cc]
mov byte [ebp - 4], 1
call fcn.10002e90
jmp 0x1001a94a
xor ebx, ebx
mov eax, dword [ebp - 0x5dc]
cmp eax, dword [ebp - 0x5d8]
jne 0x1001a971
push str.aDestINFList_is_empty
call fcn.10027780
add esp, 4
mov ebx, 2
xor edi, edi
jmp 0x1001ae32
xor ecx, ecx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
mov esi, eax
mov dword [ebp - 0x5bc], esi
jmp 0x1001a9a8
mov esi, dword [ebp - 0x5bc]
xor ebx, ebx
mov dword [ebp - 0x5cc], ebx
mov dword [ebp - 0x5c8], ebx
mov dword [ebp - 0x5c4], ebx
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x1001a9c8
mov eax, dword [esi]
jmp 0x1001a9ca
mov eax, esi
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0x5cc]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
call fcn.10013200
mov ebx, eax
mov eax, dword [ebp - 0x5cc]
add esp, 0x14
cmp eax, dword [ebp - 0x5c8]
je 0x1001ad3b
mov edi, eax
lea esp, [esp]
cmp dword [edi + 0x14], 8
jb 0x1001aa0a
mov eax, dword [edi]
jmp 0x1001aa0c
mov eax, edi
push eax
push str.Model:_s
call fcn.10027780
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x1001aa24
mov eax, dword [edi]
jmp 0x1001aa26
mov eax, edi
mov edx, dword [ebp - 0x5e8]
push edx
push eax
call fcn.1002bc58
add esp, 8
test eax, eax
jne 0x1001abf5
xor ebx, ebx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
push 1
push ebx
lea ecx, [ebp - 0x600]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x600], 0x5c
call fcn.10003fc0
cmp eax, 0xffffffff
jne 0x1001aa94
lea edx, [ebp - 0x234]
push edx
mov ecx, esi
call fcn.10001040
push eax
call fcn.10011f20
add esp, 8
jmp 0x1001aaa3
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x234]
call fcn.10001600
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x5fc], ebx
jae 0x1001aabe
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x5fc]
push ecx
push 2
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ac09
lea ecx, [ebp - 0x348]
call fcn.10010e00
push esi
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 6
call fcn.1000be00
mov ebx, eax
test ebx, ebx
jne 0x1001ab8e
cmp dword [ebp - 0x25c], 8
mov eax, dword [ebp - 0x270]
jae 0x1001ab14
lea eax, [ebp - 0x270]
push eax
push str.Version_INF:_s
call fcn.10027780
mov esi, dword [ebp - 0x5f4]
push esi
push str.Version_Param:_s
call fcn.10027780
mov eax, dword [ebp - 0x270]
add esp, 0x10
cmp dword [ebp - 0x25c], 8
jae 0x1001ab48
lea eax, [ebp - 0x270]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001ac21
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 5
call fcn.10010f10
cmp dword [ebp - 0x220], 8
mov byte [ebp - 4], 4
jb 0x1001ab83
mov edx, dword [ebp - 0x234]
push edx
call fcn.1002a9de
add esp, 4
xor eax, eax
mov word [ebp - 0x234], ax
jmp 0x1001abdb
push ebx
push str.Version.GetData_Error:_d
call fcn.100276e0
add esp, 8
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 5
call fcn.10010f10
test esi, esi
je 0x1001abb6
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [ebp - 0x220], 8
mov byte [ebp - 4], 4
jb 0x1001abd2
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.1002a9de
add esp, 4
xor edx, edx
mov word [ebp - 0x234], dx
mov esi, dword [ebp - 0x5bc]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
add edi, 0x1c
cmp edi, dword [ebp - 0x5c8]
jne 0x1001aa00
jmp 0x1001ad4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.SetupOpenInfFile_Error:_d
call fcn.100276e0
add esp, 8
jmp 0x1001abaf
mov eax, dword [ebp - 0x234]
mov edi, 8
cmp dword [ebp - 0x220], edi
jae 0x1001ac3a
lea eax, [ebp - 0x234]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001acf6
lea eax, [ebp - 0x5e4]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x240], 0
jne 0x1001acb0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x250]
call fcn.10001600
mov edx, dword [ebp - 0x5e4]
mov eax, dword [ebp - 0x5e0]
mov dword [ebp - 0x5f0], edx
mov dword [ebp - 0x5ec], eax
jmp 0x1001acf6
lea ecx, [ebp - 0x5e4]
push ecx
lea edx, [ebp - 0x5f0]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x1001acf6
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x250]
call fcn.10001600
mov ecx, dword [ebp - 0x5e4]
mov edx, dword [ebp - 0x5e0]
mov dword [ebp - 0x5f0], ecx
mov dword [ebp - 0x5ec], edx
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 5
call fcn.10010f10
cmp dword [ebp - 0x220], edi
jb 0x1001ad1c
mov eax, dword [ebp - 0x234]
push eax
call fcn.1002a9de
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], cx
jmp 0x1001ad4d
push str.DriverList_is_empty
call fcn.10027780
add esp, 4
mov ebx, 2
mov esi, dword [ebp - 0x5cc]
xor eax, eax
mov byte [ebp - 4], 3
cmp esi, eax
je 0x1001ad8f
mov edi, dword [ebp - 0x5c8]
cmp esi, edi
je 0x1001ad84
lea edx, [ebp - 0x5c0]
push esi
push edx
call fcn.10002b10
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x1001ad67
mov esi, dword [ebp - 0x5cc]
push esi
call fcn.1002a9de
add esp, 4
xor eax, eax
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 0x5c8], eax
mov dword [ebp - 0x5c4], eax
mov eax, dword [ebp - 0x5bc]
add eax, 0x1c
mov dword [ebp - 0x5bc], eax
cmp eax, dword [ebp - 0x5d8]
jne 0x1001a9a0
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp + 0x2c]
inc eax
cmp ecx, eax
jb 0x1001adfb
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x1001addf
lea eax, [ebp - 0x250]
mov esi, dword [ebp - 0x5f8]
push eax
push ecx
push esi
call fcn.1002b64d
push esi
push str.Installed_InfFile:_s
call fcn.10027780
add esp, 0x14
cmp dword [ebp - 0x23c], 8
mov byte [ebp - 4], 1
jb 0x1001ae17
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.1002a9de
add esp, 4
xor edi, edi
xor edx, edx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], dx
push ebx
push str.DoGetInstalledInfNameEx_End:_d
call fcn.10027780
mov esi, dword [ebp - 0x5dc]
add esp, 8
cmp esi, edi
je 0x1001ae7c
mov edi, dword [ebp - 0x5d8]
cmp esi, edi
je 0x1001ae71
lea eax, [ebp - 0x5d0]
push esi
push eax
call fcn.10002b10
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x1001ae54
mov esi, dword [ebp - 0x5dc]
push esi
call fcn.1002a9de
add esp, 4
xor edi, edi
mov dword [ebp - 0x5dc], edi
mov dword [ebp - 0x5d8], edi
mov dword [ebp - 0x5d4], edi
lea ecx, [ebp - 0x5b8]
mov dword [ebp - 4], 0xa
call fcn.10012b90
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 9
call fcn.10010f10
lea ecx, [ebp - 0x550]
mov byte [ebp - 4], 8
call fcn.10012fc0
lea ecx, [ebp - 0x588]
mov byte [ebp - 4], 7
call fcn.10011170
lea ecx, [ebp - 0x5b8]
mov dword [ebp - 4], 0xffffffff
call fcn.10012e30
mov eax, ebx
jmp 0x1001aee8
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret