Function at 0x10015160
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003b8c6
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x1004f450]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x1004f450]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov ebx, edx
mov dword [esp + 0x50], ecx
test eax, eax
je 0x100156b8
test ecx, ecx
je 0x100156b8
push str.DoGetInstalledInfName_Start
call fcn.100269c0
mov eax, dword [esp + 0x30]
add esp, 4
push eax
push str.DriverName:_s
call fcn.100269c0
add esp, 8
lea ecx, [esp + 0x8c]
push ecx
call fcn.10011f50
xor eax, eax
mov dword [esp + 0x518], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x34]
push edx
mov edx, esi
mov ecx, ebx
mov byte [esp + 0x51c], 1
call fcn.100112f0
add esp, 4
test byte [0x1005223c], 1
jne 0x10015247
or dword [0x1005223c], 1
mov byte [esp + 0x518], 2
call fcn.100278f0
push 0x1003bab0
call fcn.1002a940
add esp, 4
test byte [0x10052170], 1
je 0x100152f2
push 0x104
lea eax, [esp + 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.infOther_
lea ecx, [esp + 0x300]
push 0x104
push ecx
call fcn.1002a7a8
xor eax, eax
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x14]
push edx
mov edx, esi
lea ecx, [esp + 0x300]
mov byte [esp + 0x51c], 3
call fcn.100112f0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x100152d6
mov esi, eax
jmp 0x100152c0
mov ecx, esi
lea edi, [esp + 0x34]
call fcn.10002e80
add esi, 0x1c
cmp esi, ebx
jne 0x100152c0
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, esi
je 0x100152f4
mov edi, ebx
call fcn.10003140
mov eax, dword [esp + 0x14]
push eax
call fcn.10029653
add esp, 4
jmp 0x100152f4
xor esi, esi
mov ebx, dword [esp + 0x34]
cmp ebx, dword [esp + 0x38]
jne 0x10015315
push str.aDestINFList_is_empty
call fcn.100269c0
add esp, 4
mov edi, 2
jmp 0x100155fb
xor ecx, ecx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], esi
mov word [esp + 0x70], cx
mov edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x518], 5
cmp dword [ebx + 0x14], 8
jb 0x1001534e
mov ecx, dword [ebx]
jmp 0x10015350
mov ecx, ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
lea edi, [esp + 0x1c]
call fcn.10011200
mov edi, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, edi
je 0x1001550a
mov esi, eax
lea ebx, [ebx]
cmp dword [esi + 0x14], 8
jb 0x1001538a
mov eax, dword [esi]
jmp 0x1001538c
mov eax, esi
push eax
push str.Model:_s
call fcn.100269c0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x100153a4
mov eax, dword [esi]
jmp 0x100153a6
mov eax, esi
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call fcn.10029a7f
add esp, 8
test eax, eax
je 0x100153c6
add esi, 0x1c
cmp esi, edi
jne 0x10015380
xor esi, esi
jmp 0x1001551f
xor edi, edi
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
mov word [esp + 0x54], dx
push 1
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x520], 6
push ebx
xor eax, eax
mov dword [esp + 0x58], 0x5c
call fcn.10008700
cmp eax, 0xffffffff
jne 0x10015429
cmp dword [ebx + 0x14], 8
jb 0x10015417
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.10010a90
add esp, 8
jmp 0x10015437
lea ecx, [esp + 0x54]
mov eax, ebx
push ecx
push eax
call fcn.10010a90
add esp, 8
jmp 0x10015437
push edi
push ebx
or eax, 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.10001820
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x10015446
lea eax, [esp + 0x54]
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 0x100154db
lea edx, [esp + 0x24]
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 [esp + 0x80], edi
jne 0x100154a5
push edi
lea eax, [esp + 0x58]
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x78]
call fcn.10001820
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
jmp 0x100154db
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x100154db
push edi
lea edx, [esp + 0x58]
push edx
or eax, 0xffffffff
lea ecx, [esp + 0x78]
call fcn.10001820
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
cmp dword [esp + 0x68], 8
jb 0x100154ef
mov edx, dword [esp + 0x54]
push edx
call fcn.10029653
add esp, 4
xor eax, eax
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x68], 7
mov word [esp + 0x54], ax
xor esi, esi
jmp 0x1001551f
push str.DriverList_is_empty
call fcn.100269c0
add esp, 4
mov dword [esp + 0x30], 2
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x1001556a
mov esi, eax
cmp eax, edi
je 0x1001555f
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x10015545
mov eax, dword [esi]
push eax
call fcn.10029653
mov eax, dword [esp + 0x18]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x10015530
push eax
call fcn.10029653
add esp, 4
xor esi, esi
add ebx, 0x1c
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
cmp ebx, dword [esp + 0x38]
jne 0x10015330
mov edx, dword [esp + 0x80]
mov ecx, dword [ebp + 0x1c]
inc edx
cmp ecx, edx
jb 0x100155c3
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x100155a4
lea eax, [esp + 0x70]
mov esi, dword [esp + 0x50]
push eax
push ecx
push esi
call fcn.100296af
add esp, 0xc
push esi
push str.Installed_InfFile:_s
call fcn.100269c0
add esp, 8
xor esi, esi
cmp dword [esp + 0x84], 8
jb 0x100155da
mov eax, dword [esp + 0x70]
push eax
call fcn.10029653
add esp, 4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], esi
mov word [esp + 0x70], cx
push edi
push str.DoGetInstalledInfName_End:_d
call fcn.100269c0
add esp, 8
cmp ebx, esi
je 0x1001564b
mov esi, ebx
cmp ebx, dword [esp + 0x38]
je 0x10015642
cmp dword [esi + 0x14], 8
jb 0x10015626
mov eax, dword [esi]
push eax
call fcn.10029653
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x38]
jne 0x10015615
push ebx
call fcn.10029653
add esp, 4
lea ebx, [esp + 0x8c]
mov dword [esp + 0x518], 0xa
call fcn.10010cf0
lea eax, [esp + 0x204]
push eax
mov byte [esp + 0x51c], 9
call fcn.100100e0
lea ecx, [esp + 0xf4]
push ecx
mov byte [esp + 0x51c], 8
call fcn.10010430
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0x51c], 7
call fcn.100102b0
mov eax, ebx
push eax
mov dword [esp + 0x51c], 0xffffffff
call fcn.1000a430
mov eax, edi
jmp 0x100156bd
mov eax, 0x57
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.10028eba
mov esp, ebp
pop ebp
ret