Function at 0x1001a1a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004136e
mov eax, dword fs:[0]
push eax
sub esp, 0x500
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 ecx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x504], ecx
test eax, eax
je 0x1001a7b1
test ecx, ecx
je 0x1001a7b1
push str.DoGetInstalledInfName_Start
call fcn.10027780
mov eax, dword [ebp - 0x4f8]
push eax
push str.DriverName:_s
call fcn.10027780
add esp, 0xc
lea ecx, [ebp - 0x4c0]
call fcn.10018500
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x4e4], eax
lea ecx, [ebp - 0x4ec]
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 0x1001a2f8
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 - 0x4d0], ebx
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], ebx
lea ecx, [ebp - 0x4d0]
push ecx
push edi
lea edx, [ebp - 0x218]
push esi
push edx
mov byte [ebp - 4], 2
call fcn.100137d0
mov esi, dword [ebp - 0x4d0]
add esp, 0x1c
cmp esi, dword [ebp - 0x4cc]
je 0x1001a2e7
jmp 0x1001a2d0
push esi
lea ecx, [ebp - 0x4ec]
call fcn.10003180
add esi, 0x1c
cmp esi, dword [ebp - 0x4cc]
jne 0x1001a2d0
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 1
call fcn.10002e90
jmp 0x1001a2fa
xor ebx, ebx
mov eax, dword [ebp - 0x4ec]
cmp eax, dword [ebp - 0x4e8]
jne 0x1001a324
push str.aDestINFList_is_empty
call fcn.10027780
add esp, 4
mov dword [ebp - 0x4d4], 2
jmp 0x1001a6f8
xor ecx, ecx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
mov ebx, eax
mov dword [ebp - 0x4d8], ebx
jmp 0x1001a350
xor edi, edi
mov dword [ebp - 0x4d0], edi
mov dword [ebp - 0x4cc], edi
mov dword [ebp - 0x4c8], edi
cmp dword [ebx + 0x14], 8
mov byte [ebp - 4], 4
jb 0x1001a372
mov eax, dword [ebx]
jmp 0x1001a374
mov eax, ebx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x4d0]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
call fcn.10013200
mov esi, dword [ebp - 0x4d0]
add esp, 0x14
mov dword [ebp - 0x4d4], eax
cmp esi, dword [ebp - 0x4cc]
je 0x1001a604
cmp dword [esi + 0x14], 8
jb 0x1001a3b2
mov eax, dword [esi]
jmp 0x1001a3b4
mov eax, esi
push eax
push str.Model:_s
call fcn.10027780
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x1001a3cc
mov eax, dword [esi]
jmp 0x1001a3ce
mov eax, esi
mov edx, dword [ebp - 0x4f8]
push edx
push eax
call fcn.1002bc58
add esp, 8
test eax, eax
je 0x1001a3f2
add esi, 0x1c
cmp esi, dword [ebp - 0x4cc]
jne 0x1001a3a8
jmp 0x1001a61b
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
mov eax, dword [ebx + 0x10]
mov byte [ebp - 4], 5
mov dword [ebp - 0x508], 0x5c
cmp eax, edi
jbe 0x1001a4c8
mov edi, eax
cmp edi, 1
jb 0x1001a4c6
cmp dword [ebx + 0x14], 8
jb 0x1001a43f
mov eax, dword [ebx]
mov dword [ebp - 0x4dc], eax
jmp 0x1001a447
mov eax, ebx
mov dword [ebp - 0x4dc], ebx
mov ecx, edi
test edi, edi
je 0x1001a4c6
lea ecx, [ecx]
cmp word [eax], 0x5c
je 0x1001a45e
add eax, 2
dec ecx
jne 0x1001a450
jmp 0x1001a4c6
test eax, eax
je 0x1001a4c6
mov esi, 1
lea edx, [ebp - 0x508]
mov ecx, eax
nop
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x1001a491
add ecx, 2
add edx, 2
dec esi
jne 0x1001a470
mov ebx, dword [ebp - 0x4d8]
cmp dword [ebx + 0x14], 8
jb 0x1001a4bb
mov ecx, dword [ebx]
jmp 0x1001a4bd
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x1001a481
mov ebx, dword [ebp - 0x4d8]
mov ecx, eax
sub ecx, dword [ebp - 0x4dc]
or edx, 0xffffffff
sar ecx, 1
sub edx, ecx
add edi, edx
add eax, 2
mov dword [ebp - 0x4dc], eax
jmp 0x1001a447
mov ecx, ebx
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x1001a4f6
xor edi, edi
cmp dword [ebx + 0x14], 8
jb 0x1001a4e2
mov eax, dword [ebx]
lea ecx, [ebp - 0x234]
push ecx
push eax
call fcn.10011f20
add esp, 8
jmp 0x1001a508
lea ecx, [ebp - 0x234]
mov eax, ebx
push ecx
push eax
call fcn.10011f20
add esp, 8
jmp 0x1001a508
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x234]
call fcn.10001600
xor edi, edi
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x1001a51d
lea eax, [ebp - 0x234]
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001a5d1
lea edx, [ebp - 0x4f4]
push edx
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x240], edi
jne 0x1001a58c
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x250]
call fcn.10001600
mov ecx, dword [ebp - 0x4f4]
mov edx, dword [ebp - 0x4f0]
mov dword [ebp - 0x500], ecx
mov dword [ebp - 0x4fc], edx
jmp 0x1001a5d1
lea eax, [ebp - 0x4f4]
push eax
lea ecx, [ebp - 0x500]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x1001a5d1
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x250]
call fcn.10001600
mov eax, dword [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4f0]
mov dword [ebp - 0x500], eax
mov dword [ebp - 0x4fc], ecx
cmp dword [ebp - 0x220], 8
jb 0x1001a5e9
mov edx, dword [ebp - 0x234]
push edx
call fcn.1002a9de
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
jmp 0x1001a61b
push str.DriverList_is_empty
call fcn.10027780
add esp, 4
mov dword [ebp - 0x4d4], 2
mov esi, dword [ebp - 0x4d0]
mov byte [ebp - 4], 3
cmp esi, edi
je 0x1001a65b
mov edi, dword [ebp - 0x4cc]
cmp esi, edi
je 0x1001a650
lea ecx, [ebp - 0x4c4]
push esi
push ecx
call fcn.10002b10
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x1001a633
mov esi, dword [ebp - 0x4d0]
push esi
call fcn.1002a9de
add esp, 4
xor edi, edi
add ebx, 0x1c
mov dword [ebp - 0x4d0], edi
mov dword [ebp - 0x4cc], edi
mov dword [ebp - 0x4c8], edi
mov dword [ebp - 0x4d8], ebx
cmp ebx, dword [ebp - 0x4e8]
jne 0x1001a350
mov edx, dword [ebp - 0x240]
mov ecx, dword [ebp + 0x28]
inc edx
cmp ecx, edx
jb 0x1001a6c1
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x1001a6a5
lea eax, [ebp - 0x250]
mov esi, dword [ebp - 0x504]
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 0x1001a6dd
mov eax, dword [ebp - 0x250]
push eax
call fcn.1002a9de
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], cx
xor ebx, ebx
mov edx, dword [ebp - 0x4d4]
push edx
push str.DoGetInstalledInfName_End:_d
call fcn.10027780
mov esi, dword [ebp - 0x4ec]
add esp, 8
cmp esi, ebx
je 0x1001a746
mov edi, dword [ebp - 0x4e8]
cmp esi, edi
je 0x1001a73d
lea eax, [ebp - 0x4e0]
push esi
push eax
call fcn.10002b10
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x1001a720
mov esi, dword [ebp - 0x4ec]
push esi
call fcn.1002a9de
add esp, 4
mov dword [ebp - 0x4ec], ebx
mov dword [ebp - 0x4e8], ebx
mov dword [ebp - 0x4e4], ebx
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 4], 9
call fcn.10012b90
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 8
call fcn.10010f10
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 7
call fcn.10012fc0
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 6
call fcn.10011170
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 4], 0xffffffff
call fcn.10012e30
mov eax, dword [ebp - 0x4d4]
jmp 0x1001a7b6
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