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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453745
mov eax, dword fs:[0]
push eax
sub esp, 0xcc0
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0xcb8], eax
push ebx
push esi
push edi
mov eax, dword [0x4663d8]
xor eax, esp
push eax
lea eax, [esp + 0xcd0]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], esi
mov word [esp + 0x14c], si
mov dword [esp + 0xcd8], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
push 1
mov byte [esp + 0xcdc], 1
call fcn.00432710
add esp, 4
mov ecx, 0x468c14
mov dword [esp + 0x10], esi
call fcn.0040d5a0
test eax, eax
jbe 0x4092db
jmp 0x407770
push str.INF_Info
push str.__s_
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov edi, dword [0x468c18]
add dword [0x4676d8], 1
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
je 0x4077bb
mov ecx, dword [0x468c1c]
sub ecx, edi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4077c6
call fcn.00439412
mov edi, dword [0x468c18]
mov esi, ebx
imul esi, esi, 0x104
cmp dword [esi + edi + 0x38], 8
mov dword [esp + 0x1c], esi
jb 0x4077df
mov edi, dword [esi + edi + 0x24]
jmp 0x4077e3
lea edi, [esi + edi + 0x24]
push edi
push str.INF___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov edi, dword [0x468c18]
add esp, 0xc
test edi, edi
je 0x40781f
mov ecx, dword [0x468c1c]
sub ecx, edi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40782a
call fcn.00439412
mov edi, dword [0x468c18]
cmp dword [esi + edi + 0x38], 8
jb 0x407837
mov edi, dword [esi + edi + 0x24]
jmp 0x40783b
lea edi, [esi + edi + 0x24]
push 0
push 2
push 0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
jne 0x407902
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000100
jne 0x4078da
push str.INF_has_wrong_INF_style
push 0x4676b8
mov eax, 1
call fcn.0042dae0
mov ecx, dword [0x468c18]
add esp, 8
cmp ecx, dword [0x468c1c]
mov edi, ecx
jbe 0x407894
call fcn.00439412
mov ecx, dword [0x468c18]
add esi, edi
cmp esi, dword [0x468c1c]
mov eax, 0x468c14
mov ebx, eax
mov dword [esp + 0x58], edi
ja 0x4078ad
cmp esi, ecx
jae 0x4078b2
call fcn.00439412
push esi
push ebx
lea eax, [esp + 0xc8]
push eax
call fcn.0040d670
sub dword [esp + 0x10], 1
push 0xffffffffffffffff
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
sub dword [0x4676d8], 1
jmp 0x4092be
test eax, eax
je 0x4078f6
push eax
push str.Error_0x_X_opening
push 0x4676b8
mov eax, 1
call fcn.0042dae0
add esp, 0xc
sub dword [0x4676d8], 1
jmp 0x4092be
mov esi, str.DriverVer
mov edi, str.Version
mov edx, eax
call fcn.004094f0
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x407920
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407920
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x150]
call fcn.004040c0
lea ecx, [esp + 0x14]
push ecx
mov ebx, 1
xor eax, eax
mov edx, esi
mov dword [esp + 0x18], 0x2c
call fcn.004034c0
mov edi, eax
mov edx, esi
push edi
push edx
xor ecx, ecx
lea esi, [esp + 0x118]
call fcn.0040d470
mov esi, eax
mov byte [esp + 0xcd8], 2
mov ecx, dword [0x468c18]
test ecx, ecx
je 0x40799f
mov edx, dword [0x468c1c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x4079aa
call fcn.00439412
mov ecx, dword [0x468c18]
mov ebx, dword [esp + 0x1c]
push 0xffffffffffffffff
lea ecx, [ebx + ecx + 0x3c]
push 0
mov eax, esi
call fcn.00404010
mov byte [esp + 0xcd8], 1
cmp dword [esp + 0x128], 8
jb 0x4079df
mov eax, dword [esp + 0x114]
push eax
call fcn.00439935
add esp, 4
mov ecx, dword [esp + 0x15c]
push ecx
lea edx, [esp + 0x14c]
lea ecx, [edi + 1]
push edx
lea esi, [esp + 0x118]
call fcn.0040d470
mov edi, eax
mov byte [esp + 0xcd8], 3
mov esi, dword [0x468c18]
test esi, esi
je 0x407a31
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x407a3c
call fcn.00439412
mov esi, dword [0x468c18]
push 0xffffffffffffffff
lea ecx, [ebx + esi + 0x58]
push 0
mov eax, edi
call fcn.00404010
mov byte [esp + 0xcd8], 1
cmp dword [esp + 0x128], 8
jb 0x407a6d
mov eax, dword [esp + 0x114]
push eax
call fcn.00439935
add esp, 4
mov esi, dword [0x468c18]
test esi, esi
je 0x407a96
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x407aa1
call fcn.00439412
mov esi, dword [0x468c18]
mov edx, dword [esp + 0x38]
lea ecx, [ebx + esi]
mov esi, str.ClassGUID
mov edi, str.Version
mov dword [esp + 0x14], ecx
call fcn.004094f0
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407ac0
sub ecx, esi
mov esi, dword [esp + 0x14]
sar ecx, 1
push ecx
push eax
add esi, 0x74
call fcn.004040c0
mov esi, dword [0x468c18]
test esi, esi
je 0x407b06
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x407b11
call fcn.00439412
mov esi, dword [0x468c18]
lea eax, [ebx + esi + 0x74]
call fcn.00436b40
mov esi, dword [0x468c18]
test esi, esi
je 0x407b43
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x407b4e
call fcn.00439412
mov esi, dword [0x468c18]
lea edx, [ebx + esi]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x38]
mov esi, str.Name
mov edi, str.PackageInfo
call fcn.004094f0
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407b70
sub ecx, esi
mov esi, dword [esp + 0x14]
sar ecx, 1
push ecx
push eax
call fcn.004040c0
mov esi, dword [0x468c18]
test esi, esi
je 0x407bb3
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x407bbe
call fcn.00439412
mov esi, dword [0x468c18]
mov edx, dword [esp + 0x38]
lea eax, [ebx + esi]
mov esi, str.Sequence
mov edi, str.PackageInfo
mov dword [esp + 0x14], eax
call fcn.004094f0
push eax
call fcn.00439a49
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov dword [ecx + 0x1c], eax
mov esi, dword [0x468c18]
add esp, 4
test esi, esi
je 0x407c13
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407c1e
call fcn.00439412
mov esi, dword [0x468c18]
cmp dword [ebx + esi + 0x54], 8
jb 0x407c2b
mov esi, dword [ebx + esi + 0x40]
jmp 0x407c2f
lea esi, [ebx + esi + 0x40]
push esi
push str.Date___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov esi, dword [0x468c18]
add esp, 0xc
test esi, esi
je 0x407c6b
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407c76
call fcn.00439412
mov esi, dword [0x468c18]
cmp dword [ebx + esi + 0x70], 8
jb 0x407c83
mov esi, dword [ebx + esi + 0x5c]
jmp 0x407c87
lea esi, [ebx + esi + 0x5c]
push esi
push str.Version___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov esi, dword [0x468c18]
add esp, 0xc
test esi, esi
je 0x407cc3
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407cce
call fcn.00439412
mov esi, dword [0x468c18]
cmp dword [ebx + esi + 0x8c], 8
jb 0x407cde
mov esi, dword [ebx + esi + 0x78]
jmp 0x407ce2
lea esi, [ebx + esi + 0x78]
push esi
push str.ClassGUID___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov esi, dword [0x468c18]
add esp, 0xc
test esi, esi
je 0x407d1e
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407d29
call fcn.00439412
mov esi, dword [0x468c18]
cmp dword [ebx + esi + 0x18], 8
jb 0x407d36
mov esi, dword [ebx + esi + 4]
jmp 0x407d3a
lea esi, [ebx + esi + 4]
push esi
push str.PackageInfo.Name___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov esi, dword [0x468c18]
add esp, 0xc
test esi, esi
je 0x407d76
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407d81
call fcn.00439412
mov esi, dword [0x468c18]
mov edx, dword [ebx + esi + 0x1c]
push edx
push str.PackageInfo.Sequence___d
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea eax, [esp + 0x98]
push eax
xor edi, edi
push edi
push str.Manufacturer
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x407dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407dd8
push str.Error_in_Manufacturer_section__ignoring
push 0x4676b8
lea eax, [edi + 1]
call fcn.0042dae0
add esp, 8
lea edx, [esp + 0x4c]
push edx
push 0x400
lea eax, [esp + 0x4cc]
push eax
push edi
push edi
push edi
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
test eax, eax
jne 0x407e2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407e2d
push eax
push str.Error_0x_X_retrieving_a_Manufacturer_line._Skipping_inf
push 0x4676b8
mov eax, 2
call fcn.0042dae0
add esp, 0xc
sub dword [0x4676d8], 1
jmp 0x4092be
lea eax, [esp + 0x4c4]
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], edi
mov word [esp + 0xdc], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407e51
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4c8]
push edx
lea esi, [esp + 0xe0]
call fcn.004040c0
mov byte [esp + 0xcd8], 4
mov eax, dword [esp + 0xdc]
mov ebx, 8
cmp dword [esp + 0xf0], ebx
jae 0x407e99
lea eax, [esp + 0xdc]
push eax
push str.Manufacturer___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 0xc
lea eax, [esp + 0xd8]
push eax
call fcn.0040ab90
cmp dword [esp + 0xf0], ebx
mov eax, dword [esp + 0xdc]
jae 0x407ed2
lea eax, [esp + 0xdc]
push eax
push str.Resolved_Manufacturer___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xe8]
add esp, 0xc
cmp ecx, ebx
jb 0x4080f5
cmp edx, edi
mov esi, edx
mov dword [esp + 0x18], esi
je 0x407f33
cmp ecx, ebx
mov eax, edx
jae 0x407f14
lea eax, [esp + 0xdc]
cmp eax, esi
ja 0x407f33
cmp ecx, ebx
mov eax, edx
jae 0x407f25
lea eax, [esp + 0xdc]
mov edi, dword [esp + 0xec]
lea eax, [eax + edi*2]
cmp esi, eax
jbe 0x407f4d
call fcn.00439412
mov ecx, dword [esp + 0xf0]
mov edx, dword [esp + 0xdc]
mov edi, dword [esp + 0xec]
cmp ecx, ebx
mov eax, edx
jae 0x407f5a
lea eax, [esp + 0xdc]
lea ebx, [eax + edi*2]
test ebx, ebx
je 0x407f88
cmp ecx, 8
mov eax, edx
jae 0x407f6f
lea eax, [esp + 0xdc]
cmp eax, ebx
ja 0x407f88
cmp ecx, 8
mov eax, edx
jae 0x407f81
lea eax, [esp + 0xdc]
lea eax, [eax + edi*2]
cmp ebx, eax
jbe 0x407f9b
call fcn.00439412
mov ecx, dword [esp + 0xf0]
mov edx, dword [esp + 0xdc]
cmp ecx, 8
lea edi, [esp + 0xd8]
jb 0x408105
test edx, edx
mov esi, edx
je 0x407fdf
cmp ecx, 8
mov eax, edx
jae 0x407fbf
lea eax, [esp + 0xdc]
cmp eax, esi
ja 0x407fdf
cmp ecx, 8
mov eax, edx
jae 0x407fd1
lea eax, [esp + 0xdc]
mov ecx, dword [esp + 0xec]
lea edx, [eax + ecx*2]
cmp esi, edx
jbe 0x407fe4
call fcn.00439412
mov ecx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0xdc]
mov ecx, eax
push ecx
push ebx
push edi
push esi
push eax
lea eax, [esp + 0xe8]
call fcn.00410900
add esp, 0x18
push 0x456ecc
mov ebx, 2
xor eax, eax
lea edx, [esp + 0xdc]
call fcn.004034c0
cmp eax, 0xffffffff
je 0x408077
push str.Inf_supports_64_bit.
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov esi, dword [0x468c18]
add esp, 8
test esi, esi
je 0x408060
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x40806b
call fcn.00439412
mov esi, dword [0x468c18]
mov edx, dword [esp + 0x1c]
mov byte [edx + esi + 0xf1], 1
mov eax, dword [esp + 0xdc]
mov esi, 8
cmp dword [esp + 0xf0], esi
jae 0x408093
lea eax, [esp + 0xdc]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x98]
push ecx
push 0
push eax
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x408111
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x408111
push eax
push str.Error_locating_a_device_section._Skipping_inf
push 0x4676b8
mov eax, ebx
call fcn.0042dae0
sub dword [0x4676d8], 1
add esp, 0xc
mov byte [esp + 0xcd8], 1
cmp dword [esp + 0xf0], esi
jb 0x4092be
mov eax, dword [esp + 0xdc]
push eax
jmp 0x4092b6
lea esi, [esp + 0xdc]
mov dword [esp + 0x18], esi
jmp 0x407f07
lea esi, [esp + 0xdc]
jmp 0x407fb1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x4c]
push ecx
push 0x400
lea edx, [esp + 0x4cc]
push edx
xor edi, edi
push edi
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x40815a
call ebx
cmp eax, edi
je 0x40815a
push eax
push str.SetupGetStringField_generated_an_unexpected_error._Ignoring_error
push 0x4676b8
lea eax, [edi + 2]
call fcn.0042dae0
add esp, 0xc
lea eax, [esp + 0x4c4]
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], edi
mov word [esp + 0xf8], di
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408180
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4c8]
push ecx
lea esi, [esp + 0xfc]
call fcn.004040c0
mov byte [esp + 0xcd8], 5
cmp dword [esp + 0x10c], 8
mov eax, dword [esp + 0xf8]
jae 0x4081c4
lea eax, [esp + 0xf8]
push eax
push str.Description:__s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
push 0x400
lea eax, [esp + 0x4cc]
push eax
push edi
push edi
push edi
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
test eax, eax
jne 0x40821e
call ebx
cmp eax, edi
je 0x40821e
push eax
push str.SetupGetLineText_generated_an_unexpected_error._Ignoring_error
push 0x4676b8
mov eax, 2
call fcn.0042dae0
add esp, 0xc
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp eax, edi
mov esi, edi
jbe 0x408239
call fcn.00439412
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp eax, edi
mov ebx, eax
mov dword [esp + 0x14], ebx
jbe 0x40824c
call fcn.00439412
mov edi, dword [esp + 0x44]
cmp ebx, esi
je 0x4082de
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
cmp esi, edi
mov eax, dword [esp + 0x14]
lea ebx, [eax + edx*4]
mov dword [esp + 0x14], ebx
je 0x4082a4
mov ebx, eax
sub ebx, esi
push 0xffffffffffffffff
push 0
lea ecx, [esi + ebx]
mov eax, esi
call fcn.00404010
add esi, 0x1c
cmp esi, edi
jne 0x408287
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
cmp ebx, edi
je 0x4082da
lea esi, [ebx + 0x18]
jmp 0x4082b0
cmp dword [esi], 8
jb 0x4082c1
mov eax, dword [esi - 0x14]
push eax
call fcn.00439935
add esp, 4
xor eax, eax
mov dword [esi - 4], eax
mov dword [esi], 7
mov word [esi - 0x14], ax
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x4082b0
mov dword [esp + 0x44], ebx
push 0x2c
lea ecx, [esp + 0x40]
lea edi, [esp + 0x4c8]
call fcn.00437100
add esp, 4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x18], 0x1c
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40847a
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x2c], eax
jae 0x40847a
mov esi, dword [0x468c18]
test esi, esi
mov ebx, dword [esp + 0x10]
je 0x40835d
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408368
call fcn.00439412
mov esi, dword [0x468c18]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xf4]
push ecx
lea esi, [edx + esi + 0xb0]
call fcn.0040d330
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4083a3
mov ecx, dword [esp + 0x44]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4083ac
call fcn.00439412
mov esi, dword [esp + 0x40]
mov edi, esi
mov esi, dword [0x468c18]
test esi, esi
je 0x4083d5
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4083e0
call fcn.00439412
mov esi, dword [0x468c18]
mov ecx, dword [esp + 0x1c]
push edi
lea esi, [ecx + esi + 0x90]
call fcn.0040d330
mov esi, dword [esp + 0x40]
test esi, esi
je 0x408418
mov ecx, dword [esp + 0x44]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x2c], eax
jb 0x408421
call fcn.00439412
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
lea edi, [esi + edx]
mov esi, dword [0x468c18]
test esi, esi
je 0x40844f
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40845a
call fcn.00439412
mov esi, dword [0x468c18]
mov eax, dword [esp + 0x1c]
push edi
lea esi, [eax + esi + 0xa0]
call fcn.0040d330
add dword [esp + 0x2c], 1
add dword [esp + 0x18], 0x1c
jmp 0x408303
lea ecx, [esp + 0x4c4]
push ecx
push str.HardwareID___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 0xc
mov byte [esp + 0xcd8], 4
cmp dword [esp + 0x10c], 8
jb 0x4084b8
mov edx, dword [esp + 0xf8]
push edx
call fcn.00439935
add esp, 4
lea eax, [esp + 0x98]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x408111
mov esi, dword [0x468c18]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x4c], ebx
je 0x408500
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x40850b
call fcn.00439412
mov esi, dword [0x468c18]
mov edx, dword [esp + 0x1c]
cmp dword [edx + esi + 0x38], 8
lea eax, [edx + esi + 0x20]
jb 0x40851f
mov eax, dword [eax + 4]
jmp 0x408522
add eax, 4
lea ecx, [esp + 0x4c]
push ecx
push 0x400
lea edx, [esp + 0x4cc]
push edx
lea ecx, [esp + 0x2b8]
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetINFClassW]
test eax, eax
jne 0x408569
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x408569
push eax
push str.SetupDiGetINFClass_generated_an_unexpected_error._Ignoring_error
push 0x4676b8
mov eax, 1
call fcn.0042dae0
add esp, 0xc
lea eax, [esp + 0x4c4]
mov dword [esp + 0x17c], 7
mov dword [esp + 0x178], ebx
mov word [esp + 0x168], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408590
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4c8]
push edx
lea esi, [esp + 0x16c]
call fcn.004040c0
push 6
push ebx
push ebx
push ebx
mov byte [esp + 0xce8], 6
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x2c], edi
jne 0x4085fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4085fb
cmp eax, 0x3e5
je 0x4085fb
push eax
push str.SetupDiGetClassDevs_generated_an_unexpected_error._Ignoring_error
push 0x4676b8
mov eax, 1
call fcn.0042dae0
add esp, 0xc
lea eax, [esp + 0x180]
push eax
push ebx
push edi
mov dword [esp + 0x18c], 0x1c
mov dword [esp + 0x20], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40924a
lea ecx, [esp + 0x5c]
mov edx, ecx
lea eax, [esp + 0x19c]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x19c]
call fcn.00406bc0
push 1
lea ecx, [esp + 0x184]
push ecx
push edi
lea ebx, [esp + 0x94]
mov byte [esp + 0xce4], 7
call fcn.0040b390
lea edx, [esp + 0x19c]
push edx
mov ebx, eax
mov byte [esp + 0xcdc], 8
call fcn.0040d120
mov byte [esp + 0xcd8], 7
mov esi, dword [esp + 0x8c]
xor ebx, ebx
cmp esi, ebx
je 0x4086ea
mov eax, dword [esp + 0x90]
cmp esi, eax
mov dword [esp + 0x50], eax
je 0x4086e1
add esi, 0x18
lea ecx, [ecx]
cmp dword [esi], 8
jb 0x4086c1
mov eax, dword [esi - 0x14]
push eax
call fcn.00439935
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, dword [esp + 0x50]
jne 0x4086b0
mov esi, dword [esp + 0x8c]
push esi
call fcn.00439935
add esp, 4
push 2
lea ecx, [esp + 0x184]
push ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
push edi
lea ebx, [esp + 0x68]
call fcn.0040b390
mov byte [esp + 0xcd8], 9
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
mov esi, eax
jbe 0x408736
call fcn.00439412
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
mov ebx, ecx
jbe 0x408741
call fcn.00439412
mov edi, dword [esp + 0x1a4]
cmp dword [esp + 0x1a0], edi
jbe 0x408756
call fcn.00439412
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa8]
push esi
push edx
mov edx, dword [esp + 0x5c]
push ebx
push eax
push edi
push ecx
push edx
lea eax, [esp + 0x1b8]
push eax
call fcn.00411170
mov ecx, dword [0x468c18]
test ecx, ecx
mov byte [esp + 0x23], 0
je 0x4087b1
mov edx, dword [0x468c1c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x4087bc
call fcn.00439412
mov ecx, dword [0x468c18]
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + ecx + 0xb4]
cmp esi, dword [edi + ecx + 0xb8]
lea eax, [edi + ecx + 0xb8]
mov dword [esp + 0x50], eax
jbe 0x4087e6
call fcn.00439412
mov ecx, dword [0x468c18]
test ecx, ecx
mov dword [esp + 0x84], esi
je 0x408810
mov edx, dword [0x468c1c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x40881b
call fcn.00439412
mov ecx, dword [0x468c18]
mov esi, dword [edi + ecx + 0x94]
cmp esi, dword [edi + ecx + 0x98]
lea eax, [edi + ecx + 0x98]
mov dword [esp + 0x74], eax
jbe 0x408841
call fcn.00439412
mov ecx, dword [0x468c18]
test ecx, ecx
mov dword [esp + 0x70], esi
je 0x408868
mov edx, dword [0x468c1c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x408873
call fcn.00439412
mov ecx, dword [0x468c18]
lea esi, [edi + ecx + 0xa0]
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x40888d
call fcn.00439412
mov ecx, dword [0x468c18]
mov ebx, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
test ecx, ecx
je 0x4088ba
mov edx, dword [0x468c1c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x4088c5
call fcn.00439412
mov ecx, dword [0x468c18]
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + ecx + 0xa8]
cmp dword [edx + ecx + 0xa4], edi
lea esi, [edx + ecx + 0xa0]
jbe 0x4088eb
call fcn.00439412
mov ecx, dword [0x468c18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4088f7
cmp eax, esi
je 0x408906
call fcn.00439412
mov ecx, dword [0x468c18]
mov eax, dword [esp + 0x24]
cmp ebx, edi
je 0x40918a
test eax, eax
jne 0x40891b
call fcn.00439412
mov eax, dword [esp + 0x24]
cmp ebx, dword [eax + 8]
jb 0x408925
call fcn.00439412
mov ecx, dword [ebx + 0x18]
cmp ecx, 8
lea edi, [ebx + 4]
jb 0x408938
mov edx, dword [edi]
mov dword [esp + 0x18], edx
jmp 0x40893e
mov edx, edi
mov dword [esp + 0x18], edi
test edx, edx
je 0x408966
cmp ecx, 8
jb 0x40894b
mov eax, dword [edi]
jmp 0x40894d
mov eax, edi
cmp eax, edx
ja 0x408966
cmp ecx, 8
jb 0x40895a
mov eax, dword [edi]
jmp 0x40895c
mov eax, edi
mov ecx, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
cmp edx, eax
jbe 0x40896b
call fcn.00439412
mov ecx, dword [esp + 0x24]
cmp ebx, dword [ecx + 8]
jb 0x408979
call fcn.00439412
mov edx, dword [ebx + 0x18]
cmp edx, 8
jb 0x408985
mov ecx, dword [edi]
jmp 0x408987
mov ecx, edi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x14]
add eax, eax
lea ebx, [eax + ecx]
test ebx, ebx
mov dword [esp + 0x54], ebx
je 0x4089bb
cmp edx, 8
jb 0x4089a4
mov ecx, dword [edi]
jmp 0x4089a6
mov ecx, edi
cmp ecx, ebx
ja 0x4089bb
cmp edx, 8
jb 0x4089b3
mov ecx, dword [edi]
jmp 0x4089b5
mov ecx, edi
add eax, ecx
cmp ebx, eax
jbe 0x4089c0
call fcn.00439412
mov edx, dword [esp + 0x24]
cmp esi, dword [edx + 8]
jb 0x4089ce
call fcn.00439412
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x4089da
mov esi, dword [edi]
jmp 0x4089dc
mov esi, edi
test esi, esi
je 0x408a08
cmp ecx, 8
jb 0x4089e9
mov eax, dword [edi]
jmp 0x4089eb
mov eax, edi
cmp eax, esi
ja 0x408a08
cmp ecx, 8
jb 0x4089f8
mov eax, dword [edi]
jmp 0x4089fa
mov eax, edi
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x14]
lea eax, [eax + edx*2]
cmp esi, eax
jbe 0x408a0d
call fcn.00439412
mov eax, ebx
sub eax, esi
sar eax, 1
cmp dword [esp + 0x28], 0xfffffffe
je 0x408a55
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x18]
cmp edx, 8
jb 0x408a2a
mov ecx, dword [edi]
jmp 0x408a2c
mov ecx, edi
mov ebx, dword [esp + 0x18]
lea eax, [ebx + eax*2]
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx + 0x14]
lea ecx, [ecx + ebx*2]
cmp eax, ecx
ja 0x408a4c
cmp edx, 8
jb 0x408a48
mov edi, dword [edi]
cmp eax, edi
jae 0x408a51
call fcn.00439412
mov ebx, dword [esp + 0x54]
cmp esi, ebx
je 0x408a77
mov edi, dword [esp + 0x18]
sub edi, esi
nop
movzx edx, word [esi]
push edx
call fcn.00439e6e
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x408a60
mov esi, dword [esp + 0x1a0]
cmp esi, dword [esp + 0x1a4]
jbe 0x408a8c
call fcn.00439412
lea eax, [esp + 0x19c]
mov edi, eax
mov dword [esp + 0x78], edi
mov ebx, dword [esp + 0x1a4]
cmp dword [esp + 0x1a0], ebx
jbe 0x408aae
call fcn.00439412
test edi, edi
je 0x408abd
lea eax, [esp + 0x19c]
cmp edi, eax
je 0x408ac2
call fcn.00439412
cmp esi, ebx
je 0x409130
mov edi, dword [esp + 0x78]
test edi, edi
jne 0x408ad7
call fcn.00439412
cmp esi, dword [edi + 8]
jb 0x408ae1
call fcn.00439412
mov edx, dword [esi + 0x18]
cmp edx, 8
lea ebx, [esi + 4]
jb 0x408af4
mov ecx, dword [ebx]
mov dword [esp + 0x18], ecx
jmp 0x408afa
mov ecx, ebx
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x408b22
cmp edx, 8
jb 0x408b07
mov eax, dword [ebx]
jmp 0x408b09
mov eax, ebx
cmp eax, ecx
ja 0x408b22
cmp edx, 8
jb 0x408b16
mov eax, dword [ebx]
jmp 0x408b18
mov eax, ebx
mov edx, dword [esi + 0x14]
lea eax, [eax + edx*2]
cmp ecx, eax
jbe 0x408b27
call fcn.00439412
cmp esi, dword [edi + 8]
jb 0x408b31
call fcn.00439412
mov edi, dword [esi + 0x18]
cmp edi, 8
jb 0x408b3d
mov ecx, dword [ebx]
jmp 0x408b3f
mov ecx, ebx
mov eax, dword [esi + 0x14]
add eax, eax
add ecx, eax
mov dword [esp + 0x54], ecx
je 0x408b6c
cmp edi, 8
jb 0x408b55
mov edx, dword [ebx]
jmp 0x408b57
mov edx, ebx
cmp edx, ecx
ja 0x408b6c
cmp edi, 8
jb 0x408b64
mov edx, dword [ebx]
jmp 0x408b66
mov edx, ebx
add eax, edx
cmp ecx, eax
jbe 0x408b71
call fcn.00439412
mov ecx, dword [esp + 0x78]
cmp esi, dword [ecx + 8]
jb 0x408b7f
call fcn.00439412
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x408b8b
mov edi, dword [ebx]
jmp 0x408b8d
mov edi, ebx
test edi, edi
je 0x408bb1
cmp ecx, 8
jb 0x408b9a
mov eax, dword [ebx]
jmp 0x408b9c
mov eax, ebx
cmp eax, edi
ja 0x408bb1
cmp ecx, 8
jb 0x408ba7
mov ebx, dword [ebx]
mov edx, dword [esi + 0x14]
lea eax, [ebx + edx*2]
cmp edi, eax
jbe 0x408bb6
call fcn.00439412
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
push ecx
push esi
push edx
push esi
push edi
push esi
lea eax, [esp + 0xe0]
call fcn.00410900
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add esp, 0x18
cmp edi, dword [eax + 8]
jb 0x408be5
call fcn.00439412
mov ecx, dword [esp + 0x78]
cmp esi, dword [ecx + 8]
jb 0x408bf3
call fcn.00439412
cmp dword [edi + 0x18], 8
mov ebx, dword [edi + 0x14]
lea eax, [edi + 4]
jb 0x408c01
mov eax, dword [eax]
push eax
xor eax, eax
mov edx, esi
call fcn.004034c0
cmp eax, 0xffffffff
jne 0x408c2a
mov edx, dword [esp + 0x78]
cmp esi, dword [edx + 8]
jb 0x408c1e
call fcn.00439412
mov edi, dword [esp + 0x78]
add esi, 0x1c
jmp 0x408a99
mov esi, dword [0x468c18]
test esi, esi
mov ebx, dword [esp + 0x10]
je 0x408c55
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408c60
call fcn.00439412
mov esi, dword [0x468c18]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov byte [eax + esi + 0xf0], 1
cmp edi, dword [ecx + 8]
jb 0x408c7e
call fcn.00439412
cmp dword [edi + 0x18], 8
jb 0x408c89
mov eax, dword [edi + 4]
jmp 0x408c8c
lea eax, [edi + 4]
push eax
push str.Matched_HardwareID___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
add esp, 0xc
cmp eax, dword [edx]
jb 0x408cb5
call fcn.00439412
mov esi, dword [0x468c18]
test esi, esi
je 0x408cdc
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408ce7
call fcn.00439412
mov esi, dword [0x468c18]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x1c]
push ecx
lea esi, [edx + esi + 0xc0]
call fcn.0040d330
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 8]
jb 0x408d0a
call fcn.00439412
mov esi, dword [0x468c18]
test esi, esi
je 0x408d31
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408d3c
call fcn.00439412
mov esi, dword [0x468c18]
mov ecx, dword [esp + 0x1c]
push edi
lea esi, [ecx + esi + 0xd0]
call fcn.0040d330
mov edi, dword [esp + 0x84]
mov edx, dword [esp + 0x50]
cmp edi, dword [edx]
jb 0x408d61
call fcn.00439412
mov esi, dword [0x468c18]
test esi, esi
je 0x408d88
mov ecx, dword [0x468c1c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408d93
call fcn.00439412
mov esi, dword [0x468c18]
mov eax, dword [esp + 0x1c]
push edi
lea esi, [eax + esi + 0xe0]
call fcn.0040d330
xor eax, eax
mov byte [esp + 0x23], 1
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], eax
mov word [esp + 0xf8], ax
lea ecx, [esp + 0x180]
push ecx
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0x114]
mov byte [esp + 0xcdc], 0xa
call fcn.0040b220
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [esp + 0xfc]
mov byte [esp + 0xce0], 0xb
call fcn.00404010
mov byte [esp + 0xcd8], 0xa
cmp dword [esp + 0x128], 8
jb 0x408e20
mov edx, dword [esp + 0x114]
push edx
call fcn.00439935
add esp, 4
cmp dword [esp + 0x108], edi
je 0x40910e
mov eax, dword [esp + 0xf8]
mov ebx, 8
cmp dword [esp + 0x10c], ebx
jae 0x408e49
lea eax, [esp + 0xf8]
push eax
push str.Installed_Driver___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov eax, 7
add esp, 0xc
mov byte [esp + 0x1ac], 1
mov dword [esp + 0x128], eax
mov dword [esp + 0x124], edi
mov word [esp + 0x114], di
mov byte [esp + 0xcd8], 0xc
push 0x27
push str.SystemCurrentControlSetControlClass_
lea esi, [esp + 0x134]
mov dword [esp + 0x14c], eax
mov dword [esp + 0x148], edi
mov word [esp + 0x138], di
call fcn.004040c0
push edi
lea eax, [esp + 0xf8]
push eax
or eax, 0xffffffff
mov byte [esp + 0xce0], 0xd
call fcn.00404830
mov byte [esp + 0xcd8], 0xe
cmp dword [esp + 0x144], ebx
mov eax, dword [esp + 0x130]
jae 0x408eea
lea eax, [esp + 0x130]
lea ecx, [esp + 0x30]
push ecx
push 0xf003f
push edi
push eax
push 0x80000002
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x408fdc
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, str.InfPath
call fcn.0042dfd0
lea ecx, [esp + 0x204]
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, str.DriverVersion
call fcn.0042dfd0
lea eax, [esp + 0x1e8]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, str.DriverDate
call fcn.0042dfd0
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, str.ProviderName
call fcn.0042dfd0
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, str.InfSection
call fcn.0042dfd0
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, str.DriverDesc
call fcn.0042dfd0
lea edx, [esp + 0x274]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, str.Driver
call fcn.0042dfd0
lea ecx, [esp + 0x1cc]
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, str.InfPath
call fcn.0042dfd0
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x408fd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], edi
cmp dword [esp + 0x124], edi
je 0x409045
push 0x104
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x2bc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409002
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c0]
push ecx
lea esi, [esp + 0x1b8]
call fcn.004040c0
push 5
push str.inf_
mov ecx, esi
call fcn.00403f40
push edi
lea edx, [esp + 0x114]
push edx
or eax, 0xffffffff
call fcn.00404830
cmp dword [esp + 0x1c8], ebx
mov eax, dword [esp + 0x1b4]
jae 0x40905c
lea eax, [esp + 0x1b4]
push edi
push 2
push edi
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4090aa
mov esi, str.Name
mov edi, str.PackageInfo
mov edx, ebx
call fcn.004094f0
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409084
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x298]
call fcn.004040c0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
xor edi, edi
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4090b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
cmp dword [esp + 0x144], esi
mov dword [esp + 0x30], edi
jb 0x4090db
mov eax, dword [esp + 0x130]
push eax
call fcn.00439935
add esp, 4
cmp dword [esp + 0x128], esi
mov dword [esp + 0x144], 7
mov dword [esp + 0x140], edi
mov word [esp + 0x130], di
jb 0x40910e
mov ecx, dword [esp + 0x114]
push ecx
call fcn.00439935
add esp, 4
mov byte [esp + 0xcd8], 9
cmp dword [esp + 0x10c], 8
jb 0x409130
mov edx, dword [esp + 0xf8]
push edx
call fcn.00439935
add esp, 4
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
cmp ecx, dword [eax]
jb 0x409141
call fcn.00439412
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov esi, 0x1c
add dword [esp + 0x70], esi
cmp eax, dword [edx + 8]
jb 0x40915c
call fcn.00439412
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x84]
add dword [esp + 0x28], esi
cmp edx, dword [ecx]
jb 0x409174
call fcn.00439412
add dword [esp + 0x84], esi
mov ecx, dword [0x468c18]
mov ebx, dword [esp + 0x28]
jmp 0x408897
cmp byte [esp + 0x23], 0
je 0x4091d7
test ecx, ecx
je 0x4091b4
mov edx, dword [0x468c1c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x4091bf
call fcn.00439412
mov ecx, dword [0x468c18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x19c]
push eax
lea esi, [edx + ecx + 0xf4]
call fcn.0040d4f0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4091fd
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x64]
push ecx
call fcn.004115d0
mov edx, dword [esp + 0x64]
add esp, 4
push edx
call fcn.00439935
add esp, 4
xor eax, eax
lea esi, [esp + 0x19c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0xcd8], 6
call fcn.00409360
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x180]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
mov edi, dword [esp + 0x2c]
jne 0x408644
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
sub dword [0x4676d8], 1
mov esi, 8
cmp dword [esp + 0x17c], esi
jb 0x409281
mov ecx, dword [esp + 0x168]
push ecx
call fcn.00439935
add esp, 4
xor eax, eax
mov byte [esp + 0xcd8], 1
cmp dword [esp + 0xf0], esi
mov dword [esp + 0x17c], 7
mov dword [esp + 0x178], eax
mov word [esp + 0x168], ax
jb 0x4092be
mov edx, dword [esp + 0xdc]
push edx
call fcn.00439935
add esp, 4
mov esi, dword [esp + 0x10]
add esi, 1
mov ecx, 0x468c14
mov dword [esp + 0x10], esi
call fcn.0040d5a0
cmp esi, eax
jb 0x407770
xor esi, esi
push esi
call fcn.00432710
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x40930c
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x44]
push ecx
call fcn.004115d0
mov edx, dword [esp + 0x44]
add esp, 4
push edx
call fcn.00439935
add esp, 4
cmp dword [esp + 0x160], 8
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
jb 0x409332
mov eax, dword [esp + 0x14c]
push eax
call fcn.00439935
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xcd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xcb8]
xor ecx, esp
call fcn.00437ffa
mov esp, ebp
pop ebp
ret