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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452595
mov eax, dword fs:[0]
push eax
sub esp, 0xc78
mov eax, dword [0x469744]
xor eax, esp
mov dword [esp + 0xc70], eax
push ebx
push esi
push edi
mov eax, dword [0x469744]
xor eax, esp
push eax
lea eax, [esp + 0xc88]
mov dword fs:[0], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf0], esi
mov word [esp + 0xe0], ax
mov dword [esp + 0xc90], esi
xor ebx, ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
push 1
mov byte [esp + 0xc94], 1
call fcn.004323e0
mov ecx, dword [0x46a9b4]
sub ecx, dword [0x46a9b0]
mov eax, 0x76b981db
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add esp, 4
add ecx, edx
mov dword [esp + 0x34], esi
je 0x408619
push str.INF_Info
push str.__s_
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov esi, dword [esp + 0x40]
mov edx, dword [0x46a9b0]
imul esi, esi, 0x114
mov ebx, 1
add dword [0x46a9f4], ebx
lea eax, [esi + edx + 0x20]
mov edi, 8
add esp, 0xc
mov dword [esp + 0x14], esi
cmp dword [eax + 0x14], edi
jb 0x4071b8
mov eax, dword [eax]
push eax
push str.INF___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
lea eax, [esi + eax + 0x20]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x4071dd
mov eax, dword [eax]
push 0
push 2
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x4072aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000100
jne 0x407286
push str.INF_has_wrong_INF_style
push 0x46a9d4
mov eax, ebx
call fcn.0042d150
mov ecx, dword [0x46a9b0]
mov edx, dword [esp + 0x48]
sub dword [esp + 0x3c], ebx
mov ebx, dword [0x46a9b4]
add ecx, esi
push edx
lea eax, [ecx + 0x114]
call fcn.0040f500
mov eax, dword [0x46a9b4]
lea ebx, [eax - 0x114]
add esp, 0xc
mov esi, eax
cmp ebx, eax
je 0x407264
nop
call fcn.00406e20
add ebx, 0x114
cmp ebx, esi
jne 0x407250
mov eax, dword [0x46a9b4]
sub eax, 0x114
push 0xffffffffffffffff
mov dword [0x46a9b4], eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ebx, 1
sub dword [0x46a9f4], ebx
jmp 0x4085e5
test eax, eax
je 0x40729f
push eax
push str.Error_0x_X_opening
push 0x46a9d4
mov eax, ebx
call fcn.0042d150
add esp, 0xc
sub dword [0x46a9f4], ebx
jmp 0x4085e5
mov edx, dword [esp + 0x20]
mov esi, str.DriverVer
mov edi, str.Version
call fcn.00408810
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4072c2
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xe4]
call fcn.00406550
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x44], 0x2c
test eax, eax
je 0x407322
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp eax, 1
jb 0x407322
cmp dword [esp + 0xf4], 8
mov edi, dword [esp + 0xe0]
jae 0x407310
mov edi, esi
nop
mov eax, edi
test ecx, ecx
je 0x407322
cmp word [eax], 0x2c
je 0x407393
add eax, 2
dec ecx
jne 0x407316
or ebx, 0xffffffff
push ebx
xor ecx, ecx
lea esi, [esp + 0xc8]
lea edx, [esp + 0xe4]
call fcn.0040c760
mov esi, eax
mov eax, dword [0x46a9b0]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax + 0x3c]
cmp edi, esi
je 0x407420
cmp dword [edi + 0x14], 8
jb 0x407363
mov eax, dword [edi]
push eax
call fcn.00439c00
add esp, 4
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], dx
cmp dword [esi + 0x14], 8
jae 0x4073fb
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
push esi
push edi
call fcn.00439e20
add esp, 0xc
jmp 0x407401
test eax, eax
je 0x407322
mov esi, 1
lea edx, [esp + 0x44]
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x4073d6
add ecx, 2
add edx, 2
dec esi
jne 0x4073a2
cmp dword [esp + 0xf4], 8
mov ecx, dword [esp + 0xe0]
jae 0x4073cb
lea ecx, [esp + 0xe0]
sub eax, ecx
sar eax, 1
mov ebx, eax
jmp 0x407325
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x4073b3
mov ecx, eax
sub ecx, edi
sar ecx, 1
or edx, 0xffffffff
sub edx, ecx
mov ecx, dword [esp + 0x18]
add ecx, edx
mov dword [esp + 0x18], ecx
lea edi, [eax + 2]
jmp 0x407310
mov ecx, dword [esi]
mov dword [edi], ecx
mov dword [esi], edx
mov edx, dword [esi + 0x10]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xd8], 8
jb 0x407442
mov edx, dword [esp + 0xc4]
push edx
call fcn.00439c00
add esp, 4
mov eax, dword [esp + 0xf0]
push eax
lea ecx, [ebx + 1]
lea esi, [esp + 0xc8]
lea edx, [esp + 0xe4]
call fcn.0040c760
mov esi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [0x46a9b0]
lea edi, [ecx + edx + 0x58]
cmp edi, esi
je 0x4074d1
cmp dword [edi + 0x14], 8
jb 0x407485
mov eax, dword [edi]
push eax
call fcn.00439c00
add esp, 4
xor ebx, ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
cmp dword [esi + 0x14], 8
jae 0x4074b0
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edi
call fcn.00439e20
add esp, 0xc
jmp 0x4074b6
mov edx, dword [esi]
mov dword [edi], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x14], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xd8], 8
jb 0x4074f3
mov eax, dword [esp + 0xc4]
push eax
call fcn.00439c00
add esp, 4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x46a9b0]
mov esi, str.ClassGUID
mov edi, str.Version
call fcn.00408810
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407515
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebx + 0x74]
call fcn.00406550
mov ecx, dword [0x46a9b0]
mov eax, dword [esp + 0x14]
lea eax, [eax + ecx + 0x74]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x407547
mov edi, dword [eax]
jmp 0x407549
mov edi, eax
cmp ecx, 8
jb 0x407552
mov edx, dword [eax]
jmp 0x407554
mov edx, eax
mov esi, dword [eax + 0x10]
lea ebx, [edx + esi*2]
cmp ecx, 8
jb 0x407561
mov eax, dword [eax]
cmp eax, ebx
je 0x407587
mov esi, eax
sub edi, eax
lea esp, [esp]
movzx edx, word [esi]
push edx
call fcn.0043d0e5
mov word [esi + edi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x407570
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x46a9b0]
mov esi, str.Name
mov edi, str.PackageInfo
call fcn.00408810
mov ecx, eax
lea edx, [ecx + 2]
lea esp, [esp]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4075b0
sub ecx, edx
sar ecx, 1
push ecx
mov esi, ebx
call fcn.00406550
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x46a9b0]
mov esi, str.Sequence
mov edi, str.PackageInfo
call fcn.00408810
push eax
call fcn.0043a84b
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
mov ecx, dword [0x46a9b0]
lea eax, [edx + ecx + 0x3c]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x407606
mov eax, dword [eax]
push eax
push str.Date___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
mov esi, dword [esp + 0x20]
lea eax, [esi + eax + 0x58]
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x407634
mov eax, dword [eax]
push eax
push str.Version___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov ecx, dword [0x46a9b0]
lea eax, [esi + ecx + 0x74]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40765a
mov eax, dword [eax]
push eax
push str.ClassGUID___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov edx, dword [0x46a9b0]
lea eax, [esi + edx]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40767f
mov eax, dword [eax]
push eax
push str.PackageInfo.Name___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
mov ecx, dword [esi + eax + 0x1c]
add esp, 0xc
push ecx
push str.PackageInfo.Sequence___d
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x7c]
push edx
push 0
push str.Manufacturer
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x4076ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4076ee
push str.Error_in_Manufacturer_section__ignoring
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 8
lea ecx, [esp + 0x3c]
push ecx
push 0x400
lea edx, [esp + 0x484]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
test eax, eax
jne 0x407745
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407745
push eax
push str.Error_0x_X_retrieving_a_Manufacturer_line._Skipping_inf
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
dec dword [0x46a9f4]
jmp 0x4085e5
xor ecx, ecx
lea eax, [esp + 0x47c]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407770
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0x90]
call fcn.00406550
mov byte [esp + 0xc90], 4
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebx
jae 0x4077ad
mov eax, esi
push eax
push str.Manufacturer___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
lea edx, [esp + 0x8c]
push edx
call fcn.00409cc0
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebx
jae 0x4077e6
lea eax, [esp + 0x8c]
push eax
push str.Resolved_Manufacturer___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0x98]
add esp, 0xc
mov ecx, edi
cmp esi, ebx
jae 0x407852
lea ecx, [esp + 0x8c]
mov eax, ecx
mov edx, dword [esp + 0x9c]
lea ebx, [eax + edx*2]
mov eax, edi
cmp esi, 8
jae 0x407830
lea eax, [esp + 0x8c]
cmp eax, ebx
je 0x407856
push ecx
lea ecx, [esp + 0x6c]
push ecx
call fcn.0040f2c0
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0x94]
add esp, 8
jmp 0x40785a
mov eax, edi
jmp 0x407818
mov dword [esp + 0x68], ecx
push 2
push 0x4579f4
lea edx, [esp + 0x94]
push edx
xor eax, eax
call fcn.00403110
cmp eax, 0xffffffff
je 0x4078a8
push str.Inf_supports_64_bit.
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + eax + 0xf1], 1
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0x94]
add esp, 8
mov eax, edi
cmp esi, 8
jae 0x4078b6
lea eax, [esp + 0x8c]
lea edx, [esp + 0x7c]
push edx
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x407910
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407910
push eax
push str.Error_locating_a_device_section._Skipping_inf
push 0x46a9d4
mov eax, 2
call fcn.0042d150
dec dword [0x46a9f4]
add esp, 0xc
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xa0], 8
jmp 0x4085d3
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x3c]
push edx
push 0x400
lea eax, [esp + 0x484]
push eax
push 0
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x407960
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407960
push eax
push str.SetupGetStringField_generated_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
xor edx, edx
lea eax, [esp + 0x47c]
mov word [esp + 0xa8], dx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407990
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0xac]
call fcn.00406550
mov byte [esp + 0xc90], 5
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x4079ce
mov eax, esi
push eax
push str.Description:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push 0x400
lea ecx, [esp + 0x484]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
test eax, eax
jne 0x407a2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407a2f
push eax
push str.SetupGetLineText_generated_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
cmp ebx, edi
je 0x407a7f
mov eax, dword [esp + 0x40]
push eax
push edi
mov eax, ebx
mov ecx, edi
call fcn.0040f640
mov ebx, eax
add esp, 8
mov esi, ebx
cmp ebx, edi
je 0x407a7b
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x407a61
mov eax, dword [esi]
push eax
call fcn.00439c00
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 0x407a50
mov dword [esp + 0x4c], ebx
push 0x2c
lea ebx, [esp + 0x4c]
lea ecx, [esp + 0x480]
call fcn.00437390
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
cmp eax, 1
jbe 0x407b0f
add esi, 0x1c
dec eax
mov dword [esp + 0x18], eax
mov edi, edi
mov edx, dword [0x46a9b0]
mov ebx, dword [esp + 0x14]
lea edi, [ebx + edx + 0xb0]
lea ecx, [esp + 0xa8]
call fcn.0040c7c0
mov eax, dword [0x46a9b0]
mov ecx, dword [esp + 0x48]
lea edi, [ebx + eax + 0x90]
call fcn.0040c7c0
mov ecx, dword [0x46a9b0]
lea edi, [ebx + ecx + 0xa0]
mov ecx, esi
call fcn.0040c7c0
add esi, 0x1c
dec dword [esp + 0x18]
jne 0x407ac0
lea edx, [esp + 0x47c]
push edx
push str.HardwareID___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
mov byte [esp + 0xc90], 4
cmp dword [esp + 0xbc], 8
jb 0x407b4d
mov eax, dword [esp + 0xa8]
push eax
call fcn.00439c00
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x407910
mov eax, dword [0x46a9b0]
mov ecx, dword [esp + 0x14]
xor edi, edi
lea eax, [ecx + eax + 0x20]
mov dword [esp + 0x3c], edi
cmp dword [eax + 0x14], 8
jb 0x407b7e
mov eax, dword [eax]
lea edx, [esp + 0x3c]
push edx
push 0x400
lea ecx, [esp + 0x484]
push ecx
lea edx, [esp + 0x270]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetINFClassW]
test eax, eax
jne 0x407bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407bc5
push eax
push str.SetupDiGetINFClass_generated_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
xor eax, eax
mov word [esp + 0x118], ax
lea eax, [esp + 0x47c]
mov dword [esp + 0x12c], 7
mov dword [esp + 0x128], edi
lea edx, [eax + 2]
jmp 0x407bf0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407bf0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0x11c]
call fcn.00406550
push 6
push edi
push edi
push edi
mov byte [esp + 0xca0], 6
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0xffffffff
jne 0x407c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407c5a
cmp eax, 0x3e5
je 0x407c5a
push eax
push str.SetupDiGetClassDevs_generated_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
lea ecx, [esp + 0x248]
push ecx
push edi
push esi
mov dword [esp + 0x254], 0x1c
mov dword [esp + 0x50], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40856a
xor edi, edi
mov ebx, 7
xor eax, eax
xor edx, edx
xor ecx, ecx
mov byte [esp + 0x1f], 0
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], edi
mov dword [esp + 0x13c], edi
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x158], edi
mov word [esp + 0x148], dx
mov dword [esp + 0x178], ebx
mov dword [esp + 0x174], edi
mov word [esp + 0x164], ax
mov dword [esp + 0x194], ebx
mov dword [esp + 0x190], edi
mov word [esp + 0x180], cx
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1ac], edi
mov word [esp + 0x19c], dx
mov dword [esp + 0x1cc], ebx
mov dword [esp + 0x1c8], edi
mov word [esp + 0x1b8], ax
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0x1e4], edi
mov word [esp + 0x1d4], cx
mov dword [esp + 0x204], ebx
mov dword [esp + 0x200], edi
mov word [esp + 0x1f0], dx
mov dword [esp + 0x220], ebx
mov dword [esp + 0x21c], edi
mov word [esp + 0x20c], ax
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x238], edi
mov word [esp + 0x228], cx
mov byte [esp + 0x144], al
mov eax, dword [esp + 0x2c]
push 1
lea edx, [esp + 0x24c]
push edx
push eax
lea esi, [esp + 0x78]
mov byte [esp + 0xc9c], bl
call fcn.0040a600
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x134]
cmp ecx, eax
je 0x407e34
mov esi, dword [esp + 0x134]
cmp esi, edi
je 0x407df6
mov eax, dword [esp + 0x138]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x407ded
cmp dword [esi + 0x14], 8
jb 0x407dd2
mov eax, dword [esi]
push eax
call fcn.00439c00
add esp, 4
xor edx, edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x407dc1
mov esi, dword [esp + 0x134]
push esi
call fcn.00439c00
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], edi
mov dword [esp + 0x13c], edi
mov ecx, dword [eax]
mov dword [esp + 0x134], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x138], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x13c], ecx
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov byte [esp + 0xc90], 7
mov esi, dword [esp + 0x6c]
cmp esi, edi
je 0x407e82
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x407e79
cmp dword [esi + 0x14], 8
jb 0x407e61
mov eax, dword [esi]
push eax
call fcn.00439c00
add esp, 4
xor edx, edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x407e50
mov esi, dword [esp + 0x6c]
push esi
call fcn.00439c00
add esp, 4
mov ecx, dword [esp + 0x2c]
push 2
lea eax, [esp + 0x24c]
push eax
push ecx
lea esi, [esp + 0x64]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
call fcn.0040a600
mov byte [esp + 0xc90], 9
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x13c]
push eax
push ecx
push edx
lea eax, [esp + 0x144]
push eax
call fcn.0040f310
mov eax, dword [esp + 0x14]
mov edx, dword [0x46a9b0]
mov ecx, dword [eax + edx + 0xb0]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + edx + 0x90]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + edx + 0xa0]
mov dword [esp + 0x30], ecx
cmp ecx, dword [eax + edx + 0xa4]
je 0x4084df
lea ecx, [ecx]
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x407f20
mov edi, dword [eax]
jmp 0x407f22
mov edi, eax
cmp edx, 8
jb 0x407f2b
mov ecx, dword [eax]
jmp 0x407f2d
mov ecx, eax
mov esi, dword [eax + 0x10]
lea ebx, [ecx + esi*2]
cmp edx, 8
jb 0x407f3a
mov eax, dword [eax]
cmp eax, ebx
je 0x407f59
mov esi, eax
sub edi, eax
movzx edx, word [esi]
push edx
call fcn.0043a96c
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x407f42
mov edi, dword [esp + 0x134]
cmp edi, dword [esp + 0x138]
je 0x4083ee
lea ecx, [ecx]
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x407f7c
mov ebx, dword [edi]
jmp 0x407f7e
mov ebx, edi
cmp ecx, 8
jb 0x407f87
mov eax, dword [edi]
jmp 0x407f89
mov eax, edi
mov edx, dword [edi + 0x10]
lea eax, [eax + edx*2]
mov dword [esp + 0x40], eax
cmp ecx, 8
jb 0x407f9c
mov esi, dword [edi]
jmp 0x407f9e
mov esi, edi
cmp esi, eax
je 0x407fbd
sub ebx, esi
movzx eax, word [esi]
push eax
call fcn.0043a96c
mov word [ebx + esi], ax
add esi, 2
add esp, 4
cmp esi, dword [esp + 0x40]
jne 0x407fa4
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x10]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x407fd2
mov eax, dword [esi]
jmp 0x407fd4
mov eax, esi
push ecx
push eax
push edi
xor eax, eax
call fcn.00403110
cmp eax, 0xffffffff
jne 0x407ff4
add edi, 0x1c
cmp edi, dword [esp + 0x138]
jne 0x407f70
jmp 0x4083ee
mov ecx, dword [0x46a9b0]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx + 0xf0], 1
cmp dword [esi + 0x14], ebx
jb 0x40800d
mov esi, dword [esi]
push esi
push str.Matched_HardwareID___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edi, [esi + eax + 0xc0]
call fcn.0040c7c0
mov ecx, dword [0x46a9b0]
lea edi, [esi + ecx + 0xd0]
mov ecx, dword [esp + 0x30]
call fcn.0040c7c0
mov edx, dword [0x46a9b0]
mov ecx, dword [esp + 0x18]
lea edi, [esi + edx + 0xe0]
call fcn.0040c7c0
xor eax, eax
mov byte [esp + 0x1f], 1
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
mov word [esp + 0xa8], ax
lea ecx, [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0xc8]
mov byte [esp + 0xc94], 0xa
call fcn.0040a4a0
mov edi, eax
lea esi, [esp + 0xa8]
mov byte [esp + 0xc90], 0xb
call fcn.00404010
mov byte [esp + 0xc90], 0xa
cmp dword [esp + 0xd8], 8
jb 0x4080e4
mov edx, dword [esp + 0xc4]
push edx
call fcn.00439c00
add esp, 4
xor edi, edi
cmp dword [esp + 0xb8], edi
je 0x4083cc
mov eax, dword [esp + 0xa8]
mov ebx, 8
cmp dword [esp + 0xbc], ebx
jae 0x40810f
lea eax, [esp + 0xa8]
push eax
push str.Installed_Driver___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, 7
xor ecx, ecx
add esp, 0xc
mov byte [esp + 0x144], 1
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], edi
mov word [esp + 0xc4], cx
mov byte [esp + 0xc90], 0xc
mov dword [esp + 0x110], eax
xor edx, edx
push 0x27
mov eax, str.SystemCurrentControlSetControlClass_
lea esi, [esp + 0x100]
mov dword [esp + 0x110], edi
mov word [esp + 0x100], dx
call fcn.00406550
push edi
lea eax, [esp + 0xac]
push eax
or eax, 0xffffffff
mov byte [esp + 0xc98], 0xd
call fcn.00404080
mov byte [esp + 0xc90], 0xe
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], ebx
jae 0x4081af
mov eax, esi
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x408299
lea edx, [esp + 0xc4]
push edx
mov eax, str.InfPath
lea ecx, [esp + 0x28]
call fcn.0042d620
lea eax, [esp + 0x19c]
push eax
mov eax, str.DriverVersion
lea ecx, [esp + 0x28]
call fcn.0042d620
lea ecx, [esp + 0x180]
push ecx
mov eax, str.DriverDate
lea ecx, [esp + 0x28]
call fcn.0042d620
lea edx, [esp + 0x1b8]
push edx
mov eax, str.ProviderName
lea ecx, [esp + 0x28]
call fcn.0042d620
lea eax, [esp + 0x1d4]
push eax
mov eax, str.InfSection
lea ecx, [esp + 0x28]
call fcn.0042d620
lea ecx, [esp + 0x1f0]
push ecx
mov eax, str.DriverDesc
lea ecx, [esp + 0x28]
call fcn.0042d620
lea edx, [esp + 0x20c]
push edx
mov eax, str.Driver
lea ecx, [esp + 0x28]
call fcn.0042d620
lea eax, [esp + 0x164]
push eax
mov eax, str.InfPath
lea ecx, [esp + 0x28]
call fcn.0042d620
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x408295
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], edi
cmp dword [esp + 0xd4], edi
je 0x408302
push 0x104
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x274]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4082c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x278]
lea esi, [esp + 0x14c]
call fcn.00406550
push 5
mov eax, str.inf_
mov ecx, esi
call fcn.00403640
push edi
lea edx, [esp + 0xc8]
push edx
or eax, 0xffffffff
call fcn.00404080
mov eax, dword [esp + 0x148]
cmp dword [esp + 0x15c], ebx
jae 0x408319
lea eax, [esp + 0x148]
push edi
push 2
push edi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408366
mov esi, str.Name
mov edi, str.PackageInfo
mov edx, ebx
call fcn.00408810
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408341
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x22c]
call fcn.00406550
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
xor edi, edi
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x408375
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
mov dword [esp + 0x24], edi
cmp dword [esp + 0x110], esi
jb 0x408397
mov eax, dword [esp + 0xfc]
push eax
call fcn.00439c00
add esp, 4
xor ecx, ecx
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], edi
mov word [esp + 0xfc], cx
cmp dword [esp + 0xd8], esi
jb 0x4083cc
mov edx, dword [esp + 0xc4]
push edx
call fcn.00439c00
add esp, 4
mov byte [esp + 0xc90], 9
cmp dword [esp + 0xbc], 8
jb 0x4083ee
mov eax, dword [esp + 0xa8]
push eax
call fcn.00439c00
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [0x46a9b0]
mov ecx, 0x1c
add dword [esp + 0x38], ecx
add dword [esp + 0x18], ecx
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
cmp eax, dword [ecx + edx + 0xa4]
jne 0x407f10
cmp byte [esp + 0x1f], 0
je 0x4084df
mov esi, ecx
mov eax, edx
lea edi, [esi + eax + 0xf4]
lea ecx, [esp + 0x134]
call fcn.0040c8d0
mov ecx, dword [0x46a9b0]
lea edi, [esi + ecx + 0x104]
lea ecx, [esp + 0x134]
call fcn.0040c8d0
lea ecx, [esp + 0x134]
mov edi, 0x46a9c0
call fcn.0040c8d0
mov eax, dword [0x46a9c4]
add eax, 0xffffff58
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x40847e
mov eax, dword [eax]
push eax
push str.Found_current_package__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9c4]
add eax, 0xffffff04
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x4084a4
mov eax, dword [eax]
push eax
push str.Found_current_package_INF:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9c4]
add eax, 0xffffff20
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x4084ca
mov eax, dword [eax]
push eax
push str.Found_current_package_Installed_INF:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
cmp dword [esp + 0x58], 0
je 0x40852b
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp esi, edi
je 0x40851e
mov ebx, 7
cmp dword [esi + 0x14], 8
jb 0x408508
mov eax, dword [esi]
push eax
call fcn.00439c00
add esp, 4
xor edx, edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, edi
jne 0x4084f7
mov eax, dword [esp + 0x58]
push eax
call fcn.00439c00
add esp, 4
xor eax, eax
lea esi, [esp + 0x134]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.00408680
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x248]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x407c81
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
dec dword [0x46a9f4]
mov esi, 8
cmp dword [esp + 0x12c], esi
jb 0x4085a4
mov edx, dword [esp + 0x118]
push edx
call fcn.00439c00
add esp, 4
xor eax, eax
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x12c], 7
mov dword [esp + 0x128], 0
mov word [esp + 0x118], ax
jb 0x4085e5
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00439c00
add esp, 4
mov ecx, dword [0x46a9b4]
sub ecx, dword [0x46a9b0]
mov esi, dword [esp + 0x34]
mov eax, 0x76b981db
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x34], esi
cmp esi, eax
jb 0x407170
mov ebx, dword [esp + 0x48]
xor esi, esi
push esi
call fcn.004323e0
add esp, 4
cmp ebx, esi
je 0x40863a
mov edi, dword [esp + 0x4c]
mov eax, ebx
call fcn.0040d800
push ebx
call fcn.00439c00
add esp, 4
cmp dword [esp + 0xf4], 8
jb 0x408654
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00439c00
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc70]
xor ecx, esp
call fcn.00438876
mov esp, ebp
pop ebp
ret