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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451775
mov eax, dword fs:[0]
push eax
sub esp, 0xc78
mov eax, dword [0x468738]
xor eax, esp
mov dword [esp + 0xc70], eax
push ebx
push esi
push edi
mov eax, dword [0x468738]
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.00431ac0
mov ecx, dword [0x4699bc]
sub ecx, dword [0x4699b8]
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 0x408669
push str.INF_Info
push str.__s_
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov esi, dword [esp + 0x40]
mov edx, dword [0x4699b8]
imul esi, esi, 0x114
mov ebx, 1
add dword [0x4699fc], ebx
lea eax, [esi + edx + 0x20]
mov edi, 8
add esp, 0xc
mov dword [esp + 0x14], esi
cmp dword [eax + 0x14], edi
jb 0x407208
mov eax, dword [eax]
push eax
push str.INF___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [0x4699b8]
lea eax, [esi + eax + 0x20]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x40722d
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 0x4072fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000100
jne 0x4072d6
push str.INF_has_wrong_INF_style
push 0x4699dc
mov eax, ebx
call fcn.0042c820
mov ecx, dword [0x4699b8]
mov edx, dword [esp + 0x48]
sub dword [esp + 0x3c], ebx
mov ebx, dword [0x4699bc]
add ecx, esi
push edx
lea eax, [ecx + 0x114]
call fcn.0040f350
mov eax, dword [0x4699bc]
lea ebx, [eax - 0x114]
add esp, 0xc
mov esi, eax
cmp ebx, eax
je 0x4072b4
nop
call fcn.00406e70
add ebx, 0x114
cmp ebx, esi
jne 0x4072a0
mov eax, dword [0x4699bc]
sub eax, 0x114
push 0xffffffffffffffff
mov dword [0x4699bc], eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ebx, 1
sub dword [0x4699fc], ebx
jmp 0x408635
test eax, eax
je 0x4072ef
push eax
push str.Error_0x_X_opening
push 0x4699dc
mov eax, ebx
call fcn.0042c820
add esp, 0xc
sub dword [0x4699fc], ebx
jmp 0x408635
mov edx, dword [esp + 0x20]
mov esi, str.DriverVer
mov edi, str.Version
call fcn.00408860
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407312
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xe4]
call fcn.004065a0
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x44], 0x2c
test eax, eax
je 0x407372
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp eax, 1
jb 0x407372
cmp dword [esp + 0xf4], 8
mov edi, dword [esp + 0xe0]
jae 0x407360
mov edi, esi
nop
mov eax, edi
test ecx, ecx
je 0x407372
cmp word [eax], 0x2c
je 0x4073e3
add eax, 2
dec ecx
jne 0x407366
or ebx, 0xffffffff
push ebx
xor ecx, ecx
lea esi, [esp + 0xc8]
lea edx, [esp + 0xe4]
call fcn.0040c580
mov esi, eax
mov eax, dword [0x4699b8]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax + 0x3c]
cmp edi, esi
je 0x407470
cmp dword [edi + 0x14], 8
jb 0x4073b3
mov eax, dword [edi]
push eax
call fcn.00438b5b
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 0x40744b
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
push esi
push edi
call fcn.00438d60
add esp, 0xc
jmp 0x407451
test eax, eax
je 0x407372
mov esi, 1
lea edx, [esp + 0x44]
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x407426
add ecx, 2
add edx, 2
dec esi
jne 0x4073f2
cmp dword [esp + 0xf4], 8
mov ecx, dword [esp + 0xe0]
jae 0x40741b
lea ecx, [esp + 0xe0]
sub eax, ecx
sar eax, 1
mov ebx, eax
jmp 0x407375
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x407403
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 0x407360
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 0x407492
mov edx, dword [esp + 0xc4]
push edx
call fcn.00438b5b
add esp, 4
mov eax, dword [esp + 0xf0]
push eax
lea ecx, [ebx + 1]
lea esi, [esp + 0xc8]
lea edx, [esp + 0xe4]
call fcn.0040c580
mov esi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [0x4699b8]
lea edi, [ecx + edx + 0x58]
cmp edi, esi
je 0x407521
cmp dword [edi + 0x14], 8
jb 0x4074d5
mov eax, dword [edi]
push eax
call fcn.00438b5b
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 0x407500
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edi
call fcn.00438d60
add esp, 0xc
jmp 0x407506
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 0x407543
mov eax, dword [esp + 0xc4]
push eax
call fcn.00438b5b
add esp, 4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4699b8]
mov esi, str.ClassGUID
mov edi, str.Version
call fcn.00408860
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407565
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebx + 0x74]
call fcn.004065a0
mov ecx, dword [0x4699b8]
mov eax, dword [esp + 0x14]
lea eax, [eax + ecx + 0x74]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x407597
mov edi, dword [eax]
jmp 0x407599
mov edi, eax
cmp ecx, 8
jb 0x4075a2
mov edx, dword [eax]
jmp 0x4075a4
mov edx, eax
mov esi, dword [eax + 0x10]
lea ebx, [edx + esi*2]
cmp ecx, 8
jb 0x4075b1
mov eax, dword [eax]
cmp eax, ebx
je 0x4075d7
mov esi, eax
sub edi, eax
lea esp, [esp]
movzx edx, word [esi]
push edx
call fcn.0043c025
mov word [esi + edi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x4075c0
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4699b8]
mov esi, str.Name
mov edi, str.PackageInfo
call fcn.00408860
mov ecx, eax
lea edx, [ecx + 2]
lea esp, [esp]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x407600
sub ecx, edx
sar ecx, 1
push ecx
mov esi, ebx
call fcn.004065a0
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4699b8]
mov esi, str.Sequence
mov edi, str.PackageInfo
call fcn.00408860
push eax
call fcn.0043978b
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
mov ecx, dword [0x4699b8]
lea eax, [edx + ecx + 0x3c]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x407656
mov eax, dword [eax]
push eax
push str.Date___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [0x4699b8]
mov esi, dword [esp + 0x20]
lea eax, [esi + eax + 0x58]
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x407684
mov eax, dword [eax]
push eax
push str.Version___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov ecx, dword [0x4699b8]
lea eax, [esi + ecx + 0x74]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x4076aa
mov eax, dword [eax]
push eax
push str.ClassGUID___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov edx, dword [0x4699b8]
lea eax, [esi + edx]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x4076cf
mov eax, dword [eax]
push eax
push str.PackageInfo.Name___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [0x4699b8]
mov ecx, dword [esi + eax + 0x1c]
add esp, 0xc
push ecx
push str.PackageInfo.Sequence___d
push 0x4699dc
xor eax, eax
call fcn.0042c820
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 0x40773e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40773e
push str.Error_in_Manufacturer_section__ignoring
push 0x4699dc
mov eax, 1
call fcn.0042c820
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 0x407795
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407795
push eax
push str.Error_0x_X_retrieving_a_Manufacturer_line._Skipping_inf
push 0x4699dc
mov eax, 2
call fcn.0042c820
add esp, 0xc
dec dword [0x4699fc]
jmp 0x408635
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 0x4077c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0x90]
call fcn.004065a0
mov byte [esp + 0xc90], 4
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebx
jae 0x4077fd
mov eax, esi
push eax
push str.Manufacturer___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
lea edx, [esp + 0x8c]
push edx
call fcn.00409b80
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebx
jae 0x407836
lea eax, [esp + 0x8c]
push eax
push str.Resolved_Manufacturer___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0x98]
add esp, 0xc
mov ecx, edi
cmp esi, ebx
jae 0x4078a2
lea ecx, [esp + 0x8c]
mov eax, ecx
mov edx, dword [esp + 0x9c]
lea ebx, [eax + edx*2]
mov eax, edi
cmp esi, 8
jae 0x407880
lea eax, [esp + 0x8c]
cmp eax, ebx
je 0x4078a6
push ecx
lea ecx, [esp + 0x6c]
push ecx
call fcn.0040f110
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0x94]
add esp, 8
jmp 0x4078aa
mov eax, edi
jmp 0x407868
mov dword [esp + 0x68], ecx
push 2
push 0x456a7c
lea edx, [esp + 0x94]
push edx
xor eax, eax
call fcn.00403160
cmp eax, 0xffffffff
je 0x4078f8
push str.Inf_supports_64_bit.
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [0x4699b8]
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 0x407906
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 0x407960
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407960
push eax
push str.Error_locating_a_device_section._Skipping_inf
push 0x4699dc
mov eax, 2
call fcn.0042c820
dec dword [0x4699fc]
add esp, 0xc
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xa0], 8
jmp 0x408623
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 0x4079b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4079b0
push eax
push str.SetupGetStringField_generated_an_unexpected_error._Ignoring_error
push 0x4699dc
mov eax, 2
call fcn.0042c820
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 0x4079e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0xac]
call fcn.004065a0
mov byte [esp + 0xc90], 5
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x407a1e
mov eax, esi
push eax
push str.Description:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
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 0x407a7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407a7f
push eax
push str.SetupGetLineText_generated_an_unexpected_error._Ignoring_error
push 0x4699dc
mov eax, 2
call fcn.0042c820
add esp, 0xc
cmp ebx, edi
je 0x407acf
mov eax, dword [esp + 0x40]
push eax
push edi
mov eax, ebx
mov ecx, edi
call fcn.0040f490
mov ebx, eax
add esp, 8
mov esi, ebx
cmp ebx, edi
je 0x407acb
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x407ab1
mov eax, dword [esi]
push eax
call fcn.00438b5b
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 0x407aa0
mov dword [esp + 0x4c], ebx
push 0x2c
lea ebx, [esp + 0x4c]
lea ecx, [esp + 0x480]
call fcn.004368e0
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 0x407b5f
add esi, 0x1c
dec eax
mov dword [esp + 0x18], eax
mov edi, edi
mov edx, dword [0x4699b8]
mov ebx, dword [esp + 0x14]
lea edi, [ebx + edx + 0xb0]
lea ecx, [esp + 0xa8]
call fcn.0040c5b0
mov eax, dword [0x4699b8]
mov ecx, dword [esp + 0x48]
lea edi, [ebx + eax + 0x90]
call fcn.0040c5b0
mov ecx, dword [0x4699b8]
lea edi, [ebx + ecx + 0xa0]
mov ecx, esi
call fcn.0040c5b0
add esi, 0x1c
dec dword [esp + 0x18]
jne 0x407b10
lea edx, [esp + 0x47c]
push edx
push str.HardwareID___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
mov byte [esp + 0xc90], 4
cmp dword [esp + 0xbc], 8
jb 0x407b9d
mov eax, dword [esp + 0xa8]
push eax
call fcn.00438b5b
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 0x407960
mov eax, dword [0x4699b8]
mov ecx, dword [esp + 0x14]
xor edi, edi
lea eax, [ecx + eax + 0x20]
mov dword [esp + 0x3c], edi
cmp dword [eax + 0x14], 8
jb 0x407bce
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 0x407c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407c15
push eax
push str.SetupDiGetINFClass_generated_an_unexpected_error._Ignoring_error
push 0x4699dc
mov eax, 1
call fcn.0042c820
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 0x407c40
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407c40
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0x11c]
call fcn.004065a0
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 0x407caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407caa
cmp eax, 0x3e5
je 0x407caa
push eax
push str.SetupDiGetClassDevs_generated_an_unexpected_error._Ignoring_error
push 0x4699dc
mov eax, 1
call fcn.0042c820
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 0x4085ba
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.0040a4c0
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x134]
cmp ecx, eax
je 0x407e84
mov esi, dword [esp + 0x134]
cmp esi, edi
je 0x407e46
mov eax, dword [esp + 0x138]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x407e3d
cmp dword [esi + 0x14], 8
jb 0x407e22
mov eax, dword [esi]
push eax
call fcn.00438b5b
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 0x407e11
mov esi, dword [esp + 0x134]
push esi
call fcn.00438b5b
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 0x407ed2
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x407ec9
cmp dword [esi + 0x14], 8
jb 0x407eb1
mov eax, dword [esi]
push eax
call fcn.00438b5b
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 0x407ea0
mov esi, dword [esp + 0x6c]
push esi
call fcn.00438b5b
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.0040a4c0
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.0040f160
mov eax, dword [esp + 0x14]
mov edx, dword [0x4699b8]
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 0x40852f
lea ecx, [ecx]
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x407f70
mov edi, dword [eax]
jmp 0x407f72
mov edi, eax
cmp edx, 8
jb 0x407f7b
mov ecx, dword [eax]
jmp 0x407f7d
mov ecx, eax
mov esi, dword [eax + 0x10]
lea ebx, [ecx + esi*2]
cmp edx, 8
jb 0x407f8a
mov eax, dword [eax]
cmp eax, ebx
je 0x407fa9
mov esi, eax
sub edi, eax
movzx edx, word [esi]
push edx
call fcn.004398ac
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x407f92
mov edi, dword [esp + 0x134]
cmp edi, dword [esp + 0x138]
je 0x40843e
lea ecx, [ecx]
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x407fcc
mov ebx, dword [edi]
jmp 0x407fce
mov ebx, edi
cmp ecx, 8
jb 0x407fd7
mov eax, dword [edi]
jmp 0x407fd9
mov eax, edi
mov edx, dword [edi + 0x10]
lea eax, [eax + edx*2]
mov dword [esp + 0x40], eax
cmp ecx, 8
jb 0x407fec
mov esi, dword [edi]
jmp 0x407fee
mov esi, edi
cmp esi, eax
je 0x40800d
sub ebx, esi
movzx eax, word [esi]
push eax
call fcn.004398ac
mov word [ebx + esi], ax
add esi, 2
add esp, 4
cmp esi, dword [esp + 0x40]
jne 0x407ff4
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x10]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x408022
mov eax, dword [esi]
jmp 0x408024
mov eax, esi
push ecx
push eax
push edi
xor eax, eax
call fcn.00403160
cmp eax, 0xffffffff
jne 0x408044
add edi, 0x1c
cmp edi, dword [esp + 0x138]
jne 0x407fc0
jmp 0x40843e
mov ecx, dword [0x4699b8]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx + 0xf0], 1
cmp dword [esi + 0x14], ebx
jb 0x40805d
mov esi, dword [esi]
push esi
push str.Matched_HardwareID___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [0x4699b8]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edi, [esi + eax + 0xc0]
call fcn.0040c5b0
mov ecx, dword [0x4699b8]
lea edi, [esi + ecx + 0xd0]
mov ecx, dword [esp + 0x30]
call fcn.0040c5b0
mov edx, dword [0x4699b8]
mov ecx, dword [esp + 0x18]
lea edi, [esi + edx + 0xe0]
call fcn.0040c5b0
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.0040a360
mov edi, eax
lea esi, [esp + 0xa8]
mov byte [esp + 0xc90], 0xb
call fcn.00404060
mov byte [esp + 0xc90], 0xa
cmp dword [esp + 0xd8], 8
jb 0x408134
mov edx, dword [esp + 0xc4]
push edx
call fcn.00438b5b
add esp, 4
xor edi, edi
cmp dword [esp + 0xb8], edi
je 0x40841c
mov eax, dword [esp + 0xa8]
mov ebx, 8
cmp dword [esp + 0xbc], ebx
jae 0x40815f
lea eax, [esp + 0xa8]
push eax
push str.Installed_Driver___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
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.004065a0
push edi
lea eax, [esp + 0xac]
push eax
or eax, 0xffffffff
mov byte [esp + 0xc98], 0xd
call fcn.004040d0
mov byte [esp + 0xc90], 0xe
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], ebx
jae 0x4081ff
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 0x4082e9
lea edx, [esp + 0xc4]
push edx
mov eax, str.InfPath
lea ecx, [esp + 0x28]
call fcn.0042ccf0
lea eax, [esp + 0x19c]
push eax
mov eax, str.DriverVersion
lea ecx, [esp + 0x28]
call fcn.0042ccf0
lea ecx, [esp + 0x180]
push ecx
mov eax, str.DriverDate
lea ecx, [esp + 0x28]
call fcn.0042ccf0
lea edx, [esp + 0x1b8]
push edx
mov eax, str.ProviderName
lea ecx, [esp + 0x28]
call fcn.0042ccf0
lea eax, [esp + 0x1d4]
push eax
mov eax, str.InfSection
lea ecx, [esp + 0x28]
call fcn.0042ccf0
lea ecx, [esp + 0x1f0]
push ecx
mov eax, str.DriverDesc
lea ecx, [esp + 0x28]
call fcn.0042ccf0
lea edx, [esp + 0x20c]
push edx
mov eax, str.Driver
lea ecx, [esp + 0x28]
call fcn.0042ccf0
lea eax, [esp + 0x164]
push eax
mov eax, str.InfPath
lea ecx, [esp + 0x28]
call fcn.0042ccf0
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x4082e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], edi
cmp dword [esp + 0xd4], edi
je 0x408352
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 0x408310
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x278]
lea esi, [esp + 0x14c]
call fcn.004065a0
push 5
mov eax, str.inf_
mov ecx, esi
call fcn.00403690
push edi
lea edx, [esp + 0xc8]
push edx
or eax, 0xffffffff
call fcn.004040d0
mov eax, dword [esp + 0x148]
cmp dword [esp + 0x15c], ebx
jae 0x408369
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 0x4083b6
mov esi, str.Name
mov edi, str.PackageInfo
mov edx, ebx
call fcn.00408860
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408391
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x22c]
call fcn.004065a0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
xor edi, edi
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x4083c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
mov dword [esp + 0x24], edi
cmp dword [esp + 0x110], esi
jb 0x4083e7
mov eax, dword [esp + 0xfc]
push eax
call fcn.00438b5b
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 0x40841c
mov edx, dword [esp + 0xc4]
push edx
call fcn.00438b5b
add esp, 4
mov byte [esp + 0xc90], 9
cmp dword [esp + 0xbc], 8
jb 0x40843e
mov eax, dword [esp + 0xa8]
push eax
call fcn.00438b5b
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [0x4699b8]
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 0x407f60
cmp byte [esp + 0x1f], 0
je 0x40852f
mov esi, ecx
mov eax, edx
lea edi, [esi + eax + 0xf4]
lea ecx, [esp + 0x134]
call fcn.0040c6c0
mov ecx, dword [0x4699b8]
lea edi, [esi + ecx + 0x104]
lea ecx, [esp + 0x134]
call fcn.0040c6c0
lea ecx, [esp + 0x134]
mov edi, 0x4699c8
call fcn.0040c6c0
mov eax, dword [0x4699cc]
add eax, 0xffffff58
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x4084ce
mov eax, dword [eax]
push eax
push str.Found_current_package__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [0x4699cc]
add eax, 0xffffff04
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x4084f4
mov eax, dword [eax]
push eax
push str.Found_current_package_INF:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
mov eax, dword [0x4699cc]
add eax, 0xffffff20
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x40851a
mov eax, dword [eax]
push eax
push str.Found_current_package_Installed_INF:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
cmp dword [esp + 0x58], 0
je 0x40857b
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp esi, edi
je 0x40856e
mov ebx, 7
cmp dword [esi + 0x14], 8
jb 0x408558
mov eax, dword [esi]
push eax
call fcn.00438b5b
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 0x408547
mov eax, dword [esp + 0x58]
push eax
call fcn.00438b5b
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.004086d0
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 0x407cd1
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 [0x4699fc]
mov esi, 8
cmp dword [esp + 0x12c], esi
jb 0x4085f4
mov edx, dword [esp + 0x118]
push edx
call fcn.00438b5b
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 0x408635
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00438b5b
add esp, 4
mov ecx, dword [0x4699bc]
sub ecx, dword [0x4699b8]
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 0x4071c0
mov ebx, dword [esp + 0x48]
xor esi, esi
push esi
call fcn.00431ac0
add esp, 4
cmp ebx, esi
je 0x40868a
mov edi, dword [esp + 0x4c]
mov eax, ebx
call fcn.0040d650
push ebx
call fcn.00438b5b
add esp, 4
cmp dword [esp + 0xf4], 8
jb 0x4086a4
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00438b5b
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.004377d1
mov esp, ebp
pop ebp
ret