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

Disassembly:
push 0xffffffffffffffff
push 0x452f15
mov eax, dword fs:[0]
push eax
sub esp, 0xca4
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0xca0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0xcb8]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x150], 7
mov dword [esp + 0x14c], esi
mov word [esp + 0x13c], si
mov dword [esp + 0xcc0], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
push 1
mov byte [esp + 0xcc4], 1
call fcn.00432010
add esp, 4
mov ecx, 0x468c54
mov dword [esp + 0x18], esi
call fcn.0040d370
test eax, eax
jbe 0x40935f
jmp 0x407870
mov ebx, dword [esp + 0x18]
push str.INF_Info
push str.__s_
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov esi, dword [0x468c58]
add dword [0x4676c0], 1
add esp, 0xc
test esi, esi
je 0x4078bb
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4078c6
call fcn.00439049
mov esi, dword [0x468c58]
mov ebp, ebx
imul ebp, ebp, 0x104
mov edi, 8
cmp dword [esi + ebp + 0x38], edi
mov dword [esp + 0x20], ebp
jb 0x4078e3
mov esi, dword [esi + ebp + 0x24]
jmp 0x4078e7
lea esi, [esi + ebp + 0x24]
push esi
push str.INF___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov esi, dword [0x468c58]
add esp, 0xc
test esi, esi
je 0x407923
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40792e
call fcn.00439049
mov esi, dword [0x468c58]
cmp dword [esi + ebp + 0x38], edi
jb 0x40793a
mov esi, dword [esi + ebp + 0x24]
jmp 0x40793e
lea esi, [esi + ebp + 0x24]
push 0
push 2
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
jne 0x407a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000100
jne 0x4079df
push str.INF_has_wrong_INF_style
push 0x4676a0
mov eax, 1
call fcn.0042cad0
mov ecx, dword [0x468c58]
add esp, 8
cmp ecx, dword [0x468c5c]
mov esi, ecx
jbe 0x407997
call fcn.00439049
mov ecx, dword [0x468c58]
mov dword [esp + 0x58], esi
add esi, ebp
cmp esi, dword [0x468c5c]
mov eax, 0x468c54
mov edi, eax
ja 0x4079b0
cmp esi, ecx
jae 0x4079b5
call fcn.00439049
push esi
push edi
lea eax, [esp + 0xb8]
push eax
call fcn.0040d440
sub ebx, 1
push 0xffffffffffffffff
mov dword [esp + 0x1c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
sub dword [0x4676c0], 1
jmp 0x409342
test eax, eax
je 0x4079fb
push eax
push str.Error_0x_X_opening
push 0x4676a0
mov eax, 1
call fcn.0042cad0
add esp, 0xc
sub dword [0x4676c0], 1
jmp 0x409342
mov esi, str.DriverVer
mov edi, str.Version
mov edx, eax
call fcn.00409570
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407a20
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x140]
call fcn.00404160
lea ecx, [esp + 0x54]
push ecx
mov ebx, 1
xor eax, eax
mov edx, esi
mov dword [esp + 0x58], 0x2c
call fcn.00403560
mov edi, eax
mov edx, esi
push edi
push edx
xor ecx, ecx
lea esi, [esp + 0x108]
call fcn.0040d240
mov esi, eax
mov ebx, dword [esp + 0x18]
mov byte [esp + 0xcc0], 2
mov ecx, dword [0x468c58]
test ecx, ecx
je 0x407aa1
mov edx, dword [0x468c5c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x407aac
call fcn.00439049
mov ecx, dword [0x468c58]
push 0xffffffffffffffff
lea ecx, [ecx + ebp + 0x3c]
push 0
mov eax, esi
call fcn.004040b0
mov byte [esp + 0xcc0], 1
cmp dword [esp + 0x118], 8
jb 0x407add
mov eax, dword [esp + 0x104]
push eax
call fcn.00439059
add esp, 4
mov ecx, dword [esp + 0x14c]
push ecx
lea edx, [esp + 0x13c]
lea ecx, [edi + 1]
push edx
lea esi, [esp + 0x108]
call fcn.0040d240
mov edi, eax
mov byte [esp + 0xcc0], 3
mov esi, dword [0x468c58]
test esi, esi
je 0x407b2d
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x407b38
call fcn.00439049
mov esi, dword [0x468c58]
push 0xffffffffffffffff
lea ecx, [esi + ebp + 0x58]
push 0
mov eax, edi
call fcn.004040b0
mov byte [esp + 0xcc0], 1
cmp dword [esp + 0x118], 8
jb 0x407b69
mov eax, dword [esp + 0x104]
push eax
call fcn.00439059
add esp, 4
mov esi, dword [0x468c58]
test esi, esi
je 0x407b90
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x407b9b
call fcn.00439049
mov esi, dword [0x468c58]
mov edx, dword [esp + 0x3c]
lea ebx, [esi + ebp]
mov esi, str.ClassGUID
mov edi, str.Version
call fcn.00409570
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407bb6
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [ebx + 0x74]
call fcn.00404160
mov esi, dword [0x468c58]
test esi, esi
je 0x407bf8
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x407c03
call fcn.00439049
mov esi, dword [0x468c58]
lea eax, [esi + ebp + 0x74]
call fcn.00436370
mov esi, dword [0x468c58]
test esi, esi
je 0x407c35
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x407c40
call fcn.00439049
mov esi, dword [0x468c58]
mov edx, dword [esp + 0x3c]
lea ebx, [esi + ebp]
mov esi, str.Name
mov edi, str.PackageInfo
call fcn.00409570
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x407c60
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407c60
sub ecx, esi
sar ecx, 1
push ecx
push eax
mov esi, ebx
call fcn.00404160
mov esi, dword [0x468c58]
test esi, esi
je 0x407ca1
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x407cac
call fcn.00439049
mov esi, dword [0x468c58]
mov edx, dword [esp + 0x3c]
lea ebx, [esi + ebp]
mov esi, str.Sequence
mov edi, str.PackageInfo
call fcn.00409570
push eax
call fcn.00439602
mov edi, dword [esp + 0x1c]
mov dword [ebx + 0x1c], eax
mov esi, dword [0x468c58]
add esp, 4
test esi, esi
je 0x407cf9
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407d04
call fcn.00439049
mov esi, dword [0x468c58]
cmp dword [esi + ebp + 0x54], 8
jb 0x407d11
mov esi, dword [esi + ebp + 0x40]
jmp 0x407d15
lea esi, [esi + ebp + 0x40]
push esi
push str.Date___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov esi, dword [0x468c58]
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
je 0x407d53
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407d5e
call fcn.00439049
mov esi, dword [0x468c58]
cmp dword [esi + ebp + 0x70], 8
jb 0x407d6b
mov esi, dword [esi + ebp + 0x5c]
jmp 0x407d6f
lea esi, [esi + ebp + 0x5c]
push esi
push str.Version___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov esi, dword [0x468c58]
add esp, 0xc
cmp esi, ebx
je 0x407dab
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407db6
call fcn.00439049
mov esi, dword [0x468c58]
cmp dword [esi + ebp + 0x8c], 8
jb 0x407dc6
mov esi, dword [esi + ebp + 0x78]
jmp 0x407dca
lea esi, [esi + ebp + 0x78]
push esi
push str.ClassGUID___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov esi, dword [0x468c58]
add esp, 0xc
cmp esi, ebx
je 0x407e06
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407e11
call fcn.00439049
mov esi, dword [0x468c58]
cmp dword [esi + ebp + 0x18], 8
jb 0x407e1e
mov esi, dword [esi + ebp + 4]
jmp 0x407e22
lea esi, [esi + ebp + 4]
push esi
push str.PackageInfo.Name___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov esi, dword [0x468c58]
add esp, 0xc
cmp esi, ebx
je 0x407e5e
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x407e69
call fcn.00439049
mov esi, dword [0x468c58]
mov ecx, dword [esi + ebp + 0x1c]
push ecx
push str.PackageInfo.Sequence___d
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov eax, dword [esp + 0x48]
add esp, 0xc
lea edx, [esp + 0xa0]
push edx
push ebx
push str.Manufacturer
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x407ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x407ec0
push str.Error_in_Manufacturer_section__ignoring
push 0x4676a0
mov eax, 1
call fcn.0042cad0
add esp, 8
lea ecx, [esp + 0x50]
push ecx
push 0x400
lea edx, [esp + 0x4bc]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
test eax, eax
jne 0x407f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x407f15
push eax
push str.Error_0x_X_retrieving_a_Manufacturer_line._Skipping_inf
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
sub dword [0x4676c0], 1
jmp 0x409342
lea eax, [esp + 0x4b4]
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407f40
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4b8]
push ecx
lea esi, [esp + 0xd0]
call fcn.00404160
mov byte [esp + 0xcc0], 4
mov eax, dword [esp + 0xcc]
mov esi, 8
cmp dword [esp + 0xe0], esi
jae 0x407f88
lea eax, [esp + 0xcc]
push eax
push str.Manufacturer___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
lea edx, [esp + 0xc8]
push edx
call fcn.0040a1b0
cmp dword [esp + 0xe0], esi
mov eax, dword [esp + 0xcc]
jae 0x407fc1
lea eax, [esp + 0xcc]
push eax
push str.Resolved_Manufacturer___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xd8]
add esp, 0xc
cmp ecx, esi
jb 0x4081c6
cmp edx, ebx
mov dword [esp + 0x1c], edx
je 0x408024
cmp ecx, esi
mov eax, edx
jae 0x408001
lea eax, [esp + 0xcc]
cmp eax, dword [esp + 0x1c]
ja 0x408024
cmp ecx, esi
mov eax, edx
jae 0x408014
lea eax, [esp + 0xcc]
mov ebp, dword [esp + 0xdc]
lea eax, [eax + ebp*2]
cmp dword [esp + 0x1c], eax
jbe 0x40803e
call fcn.00439049
mov ecx, dword [esp + 0xe0]
mov ebp, dword [esp + 0xdc]
mov edx, dword [esp + 0xcc]
cmp ecx, esi
mov eax, edx
jae 0x40804b
lea eax, [esp + 0xcc]
lea edi, [eax + ebp*2]
test edi, edi
je 0x408077
cmp ecx, esi
mov eax, edx
jae 0x40805f
lea eax, [esp + 0xcc]
cmp eax, edi
ja 0x408077
cmp ecx, esi
mov eax, edx
jae 0x408070
lea eax, [esp + 0xcc]
lea eax, [eax + ebp*2]
cmp edi, eax
jbe 0x408091
call fcn.00439049
mov ecx, dword [esp + 0xe0]
mov ebp, dword [esp + 0xdc]
mov edx, dword [esp + 0xcc]
cmp ecx, esi
lea ebx, [esp + 0xc8]
jb 0x4081d6
test edx, edx
mov esi, edx
je 0x4080cd
cmp ecx, 8
mov eax, edx
jae 0x4080b4
lea eax, [esp + 0xcc]
cmp eax, esi
ja 0x4080cd
cmp ecx, 8
mov eax, edx
jae 0x4080c6
lea eax, [esp + 0xcc]
lea ecx, [eax + ebp*2]
cmp esi, ecx
jbe 0x4080d2
call fcn.00439049
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0xcc]
mov ecx, eax
push ecx
push edi
push ebx
push esi
push eax
lea eax, [esp + 0xd0]
call fcn.004106d0
add esp, 0x18
push 0x456ebc
mov ebx, 2
xor eax, eax
lea edx, [esp + 0xcc]
call fcn.00403560
cmp eax, 0xffffffff
je 0x408165
push str.Inf_supports_64_bit.
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov esi, dword [0x468c58]
add esp, 8
test esi, esi
je 0x40814e
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x408159
call fcn.00439049
mov esi, dword [0x468c58]
mov eax, dword [esp + 0x20]
mov byte [eax + esi + 0xf1], 1
mov eax, dword [esp + 0xcc]
mov esi, 8
cmp dword [esp + 0xe0], esi
jae 0x408181
lea eax, [esp + 0xcc]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xa0]
push ecx
push 0
push eax
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x4081e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4081e2
push eax
push str.Error_locating_a_device_section._Skipping_inf
push 0x4676a0
mov eax, ebx
call fcn.0042cad0
add esp, 0xc
sub dword [0x4676c0], 1
jmp 0x409321
lea eax, [esp + 0xcc]
mov dword [esp + 0x1c], eax
jmp 0x407ff4
lea esi, [esp + 0xcc]
jmp 0x4080a6
lea ecx, [esp + 0x50]
push ecx
push 0x400
lea edx, [esp + 0x4bc]
push edx
xor edi, edi
push edi
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x40822b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x40822b
push eax
push str.SetupGetStringField_generated_an_unexpected_error._Ignoring_error
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
lea eax, [esp + 0x4b4]
mov dword [esp + 0xfc], 7
mov dword [esp + 0xf8], edi
mov word [esp + 0xe8], di
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408250
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4b8]
push ecx
lea esi, [esp + 0xec]
call fcn.00404160
mov byte [esp + 0xcc0], 5
cmp dword [esp + 0xfc], 8
mov eax, dword [esp + 0xe8]
jae 0x408294
lea eax, [esp + 0xe8]
push eax
push str.Description:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
lea edx, [esp + 0x50]
push edx
push 0x400
lea eax, [esp + 0x4bc]
push eax
push edi
push edi
push edi
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
test eax, eax
jne 0x4082f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x4082f2
push eax
push str.SetupGetLineText_generated_an_unexpected_error._Ignoring_error
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
cmp ebx, edi
mov esi, edi
jbe 0x40831a
call fcn.00439049
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
cmp ebx, edi
jbe 0x40831a
call fcn.00439049
mov edi, dword [esp + 0x48]
cmp ebx, esi
je 0x40839c
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
lea ebp, [ebx + edx*4]
je 0x408360
sub ebx, esi
push 0xffffffffffffffff
push 0
lea ecx, [esi + ebx]
mov eax, esi
call fcn.004040b0
add esi, 0x1c
cmp esi, edi
jne 0x408347
mov edi, dword [esp + 0x48]
cmp ebp, edi
je 0x408398
lea esi, [ebp + 0x18]
xor ebx, ebx
lea esp, [esp]
cmp dword [esi], 8
jb 0x408381
mov eax, dword [esi - 0x14]
push eax
call fcn.00439059
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, edi
jne 0x408370
mov dword [esp + 0x48], ebp
push 0x2c
lea ecx, [esp + 0x44]
lea edi, [esp + 0x4b8]
call fcn.00436930
mov ebx, dword [esp + 0x1c]
add esp, 4
mov ebp, 1
mov dword [esp + 0x1c], 0x1c
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40852f
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x40852f
mov esi, dword [0x468c58]
test esi, esi
je 0x408416
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408421
call fcn.00439049
mov esi, dword [0x468c58]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xe4]
push ecx
lea esi, [edx + esi + 0xb0]
call fcn.0040d140
mov esi, dword [esp + 0x44]
test esi, esi
je 0x40845c
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x408465
call fcn.00439049
mov esi, dword [esp + 0x44]
mov edi, esi
mov esi, dword [0x468c58]
test esi, esi
je 0x40848e
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408499
call fcn.00439049
mov esi, dword [0x468c58]
mov ecx, dword [esp + 0x20]
push edi
lea esi, [ecx + esi + 0x90]
call fcn.0040d140
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4084cf
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4084d8
call fcn.00439049
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
lea edi, [esi + edx]
mov esi, dword [0x468c58]
test esi, esi
je 0x408506
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408511
call fcn.00439049
mov esi, dword [0x468c58]
mov eax, dword [esp + 0x20]
push edi
lea esi, [eax + esi + 0xa0]
call fcn.0040d140
add ebp, 1
add dword [esp + 0x1c], 0x1c
jmp 0x4083c2
lea ecx, [esp + 0x4b4]
push ecx
push str.HardwareID___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
mov byte [esp + 0xcc0], 4
cmp dword [esp + 0xfc], 8
jb 0x40856d
mov edx, dword [esp + 0xe8]
push edx
call fcn.00439059
add esp, 4
lea eax, [esp + 0xa0]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x4081e2
mov esi, dword [0x468c58]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x50], edi
je 0x4085b5
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x4085c0
call fcn.00439049
mov esi, dword [0x468c58]
mov edx, dword [esp + 0x20]
cmp dword [edx + esi + 0x38], 8
lea eax, [edx + esi + 0x20]
jb 0x4085d4
mov eax, dword [eax + 4]
jmp 0x4085d7
add eax, 4
lea ecx, [esp + 0x50]
push ecx
push 0x400
lea edx, [esp + 0x4bc]
push edx
lea ecx, [esp + 0x2a8]
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetINFClassW]
test eax, eax
jne 0x40861e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x40861e
push eax
push str.SetupDiGetINFClass_generated_an_unexpected_error._Ignoring_error
push 0x4676a0
mov eax, 1
call fcn.0042cad0
add esp, 0xc
lea eax, [esp + 0x4b4]
mov dword [esp + 0x16c], 7
mov dword [esp + 0x168], edi
mov word [esp + 0x158], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408642
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4b8]
push edx
lea esi, [esp + 0x15c]
call fcn.00404160
push 6
push edi
push edi
push edi
mov byte [esp + 0xcd0], 6
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x4086ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x4086ad
cmp eax, 0x3e5
je 0x4086ad
push eax
push str.SetupDiGetClassDevs_generated_an_unexpected_error._Ignoring_error
push 0x4676a0
mov eax, 1
call fcn.0042cad0
add esp, 0xc
lea eax, [esp + 0x170]
push eax
push edi
push esi
mov dword [esp + 0x17c], 0x1c
mov dword [esp + 0x60], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4092ca
lea eax, [esp + 0x18c]
call fcn.00406c20
mov ebp, dword [esp + 0x1c]
push 1
lea ecx, [esp + 0x174]
push ecx
push ebp
lea ebx, [esp + 0x9c]
mov byte [esp + 0xccc], 7
call fcn.0040abb0
lea edx, [esp + 0x18c]
push edx
mov byte [esp + 0xcc4], 8
call fcn.0040cf00
mov byte [esp + 0xcc0], 7
mov esi, dword [esp + 0x94]
xor edi, edi
cmp esi, edi
je 0x408778
mov ebx, dword [esp + 0x98]
cmp esi, ebx
je 0x40876f
add esi, 0x18
jmp 0x408740
cmp dword [esi], 8
jb 0x408751
mov eax, dword [esi - 0x14]
push eax
call fcn.00439059
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], edi
mov word [esi - 0x14], di
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, ebx
jne 0x408740
mov esi, dword [esp + 0x94]
push esi
call fcn.00439059
add esp, 4
push 2
lea ecx, [esp + 0x174]
push ecx
push ebp
lea ebx, [esp + 0x6c]
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
call fcn.0040abb0
mov byte [esp + 0xcc0], 9
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
mov esi, eax
jbe 0x4087c4
call fcn.00439049
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
mov ebx, ecx
jbe 0x4087cf
call fcn.00439049
mov edi, dword [esp + 0x194]
cmp dword [esp + 0x190], edi
jbe 0x4087e4
call fcn.00439049
mov edx, dword [esp + 0x54]
push esi
lea eax, [esp + 0x64]
push eax
push ebx
push eax
push edi
lea eax, [esp + 0x1a0]
push eax
push edx
push eax
call fcn.00410fa0
mov ecx, dword [0x468c58]
test ecx, ecx
mov edi, dword [esp + 0x18]
mov byte [esp + 0x27], 0
je 0x408830
mov edx, dword [0x468c5c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40883b
call fcn.00439049
mov ecx, dword [0x468c58]
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx + ecx + 0xb4]
cmp esi, dword [ebx + ecx + 0xb8]
lea eax, [ebx + ecx + 0xb8]
mov dword [esp + 0x70], eax
jbe 0x408865
call fcn.00439049
mov ecx, dword [0x468c58]
test ecx, ecx
mov dword [esp + 0x84], esi
je 0x40888d
mov edx, dword [0x468c5c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408898
call fcn.00439049
mov ecx, dword [0x468c58]
mov esi, dword [ebx + ecx + 0x94]
cmp esi, dword [ebx + ecx + 0x98]
lea eax, [ebx + ecx + 0x98]
mov dword [esp + 0x7c], eax
jbe 0x4088be
call fcn.00439049
mov ecx, dword [0x468c58]
test ecx, ecx
mov dword [esp + 0x8c], esi
je 0x4088e6
mov edx, dword [0x468c5c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4088f1
call fcn.00439049
mov ecx, dword [0x468c58]
mov edi, dword [ebx + ecx + 0xa4]
cmp edi, dword [ebx + ecx + 0xa8]
lea esi, [ebx + ecx + 0xa0]
jbe 0x408913
call fcn.00439049
mov ecx, dword [0x468c58]
mov ebp, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebp
lea ecx, [ecx]
test ecx, ecx
je 0x408943
mov edx, dword [0x468c5c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x40894e
call fcn.00439049
mov ecx, dword [0x468c58]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + ecx + 0xa8]
cmp dword [edx + ecx + 0xa4], ebx
lea esi, [edx + ecx + 0xa0]
jbe 0x408974
call fcn.00439049
mov ecx, dword [0x468c58]
mov edi, dword [esp + 0x28]
test edi, edi
je 0x408980
cmp edi, esi
je 0x40898b
call fcn.00439049
mov ecx, dword [0x468c58]
cmp ebp, ebx
je 0x40920e
test edi, edi
jne 0x40899c
call fcn.00439049
cmp ebp, dword [edi + 8]
jb 0x4089a6
call fcn.00439049
mov ecx, dword [ebp + 0x18]
cmp ecx, 8
lea edi, [ebp + 4]
mov dword [esp + 0x5c], edi
jb 0x4089bd
mov edx, dword [edi]
mov dword [esp + 0x38], edx
jmp 0x4089c3
mov edx, edi
mov dword [esp + 0x38], edi
test edx, edx
je 0x4089eb
cmp ecx, 8
jb 0x4089d0
mov eax, dword [edi]
jmp 0x4089d2
mov eax, edi
cmp eax, edx
ja 0x4089eb
cmp ecx, 8
jb 0x4089df
mov eax, dword [edi]
jmp 0x4089e1
mov eax, edi
mov ecx, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
cmp edx, eax
jbe 0x4089f0
call fcn.00439049
mov ecx, dword [esp + 0x28]
cmp ebp, dword [ecx + 8]
jb 0x4089fe
call fcn.00439049
mov edx, dword [ebp + 0x18]
cmp edx, 8
jb 0x408a0a
mov ecx, dword [edi]
jmp 0x408a0c
mov ecx, edi
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x14]
add eax, eax
lea ebp, [eax + ecx]
test ebp, ebp
je 0x408a3c
cmp edx, 8
jb 0x408a25
mov ecx, dword [edi]
jmp 0x408a27
mov ecx, edi
cmp ecx, ebp
ja 0x408a3c
cmp edx, 8
jb 0x408a34
mov ecx, dword [edi]
jmp 0x408a36
mov ecx, edi
add eax, ecx
cmp ebp, eax
jbe 0x408a41
call fcn.00439049
mov edx, dword [esp + 0x28]
cmp ebx, dword [edx + 8]
jb 0x408a4f
call fcn.00439049
mov ecx, dword [ebx + 0x18]
cmp ecx, 8
jb 0x408a5b
mov esi, dword [edi]
jmp 0x408a5d
mov esi, edi
test esi, esi
je 0x408a85
cmp ecx, 8
jb 0x408a6a
mov eax, dword [edi]
jmp 0x408a6c
mov eax, edi
cmp eax, esi
ja 0x408a85
cmp ecx, 8
jb 0x408a79
mov eax, dword [edi]
jmp 0x408a7b
mov eax, edi
mov ecx, dword [ebx + 0x14]
lea edx, [eax + ecx*2]
cmp esi, edx
jbe 0x408a8a
call fcn.00439049
mov eax, ebp
sub eax, esi
sar eax, 1
cmp ebx, 0xfffffffe
je 0x408ace
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ecx + 0x18]
cmp ebx, 8
mov ecx, edi
jb 0x408aa7
mov edx, dword [ecx]
jmp 0x408aa9
mov edx, ecx
mov edi, dword [esp + 0x38]
lea eax, [edi + eax*2]
mov edi, dword [esp + 0x2c]
mov edi, dword [edi + 0x14]
lea edx, [edx + edi*2]
cmp eax, edx
ja 0x408ac9
cmp ebx, 8
jb 0x408ac5
mov ecx, dword [ecx]
cmp eax, ecx
jae 0x408ace
call fcn.00439049
cmp esi, ebp
je 0x408af7
mov edi, dword [esp + 0x38]
sub edi, esi
jmp 0x408ae0
movzx eax, word [esi]
push eax
call fcn.0043971f
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebp
jne 0x408ae0
mov esi, dword [esp + 0x190]
cmp esi, dword [esp + 0x194]
jbe 0x408b0c
call fcn.00439049
lea eax, [esp + 0x18c]
mov ebx, eax
mov dword [esp + 0x74], ebx
mov edi, dword [esp + 0x194]
cmp dword [esp + 0x190], edi
jbe 0x408b2e
call fcn.00439049
test ebx, ebx
je 0x408b3d
lea ecx, [esp + 0x18c]
cmp ebx, ecx
je 0x408b42
call fcn.00439049
cmp esi, edi
je 0x4091ae
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x408b57
call fcn.00439049
cmp esi, dword [ebx + 8]
jb 0x408b61
call fcn.00439049
mov ecx, dword [esi + 0x18]
cmp ecx, 8
lea edi, [esi + 4]
jb 0x408b74
mov edx, dword [edi]
mov dword [esp + 0x38], edx
jmp 0x408b7a
mov edx, edi
mov dword [esp + 0x38], edi
test edx, edx
je 0x408ba2
cmp ecx, 8
jb 0x408b87
mov eax, dword [edi]
jmp 0x408b89
mov eax, edi
cmp eax, edx
ja 0x408ba2
cmp ecx, 8
jb 0x408b96
mov eax, dword [edi]
jmp 0x408b98
mov eax, edi
mov ecx, dword [esi + 0x14]
lea eax, [eax + ecx*2]
cmp edx, eax
jbe 0x408ba7
call fcn.00439049
cmp esi, dword [ebx + 8]
jb 0x408bb1
call fcn.00439049
mov edx, dword [esi + 0x18]
cmp edx, 8
jb 0x408bbd
mov ecx, dword [edi]
jmp 0x408bbf
mov ecx, edi
mov eax, dword [esi + 0x14]
add eax, eax
lea ebp, [eax + ecx]
test ebp, ebp
je 0x408beb
cmp edx, 8
jb 0x408bd4
mov ecx, dword [edi]
jmp 0x408bd6
mov ecx, edi
cmp ecx, ebp
ja 0x408beb
cmp edx, 8
jb 0x408be3
mov ecx, dword [edi]
jmp 0x408be5
mov ecx, edi
add eax, ecx
cmp ebp, eax
jbe 0x408bf0
call fcn.00439049
mov ecx, dword [esp + 0x74]
cmp esi, dword [ecx + 8]
jb 0x408bfe
call fcn.00439049
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x408c0a
mov ebx, dword [edi]
jmp 0x408c0c
mov ebx, edi
test ebx, ebx
je 0x408c30
cmp ecx, 8
jb 0x408c19
mov eax, dword [edi]
jmp 0x408c1b
mov eax, edi
cmp eax, ebx
ja 0x408c30
cmp ecx, 8
jb 0x408c26
mov edi, dword [edi]
mov edx, dword [esi + 0x14]
lea eax, [edi + edx*2]
cmp ebx, eax
jbe 0x408c35
call fcn.00439049
mov ecx, dword [esp + 0x38]
push ecx
push esi
push ebp
push esi
push ebx
push esi
lea eax, [esp + 0xd8]
call fcn.004106d0
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
add esp, 0x18
cmp edi, dword [edx + 8]
jb 0x408c60
call fcn.00439049
mov eax, dword [esp + 0x74]
cmp esi, dword [eax + 8]
jb 0x408c6e
call fcn.00439049
cmp dword [edi + 0x18], 8
mov ebx, dword [edi + 0x14]
mov ebp, dword [esp + 0x5c]
jb 0x408c80
mov eax, dword [ebp]
jmp 0x408c82
mov eax, ebp
push eax
xor eax, eax
mov edx, esi
call fcn.00403560
cmp eax, 0xffffffff
jne 0x408cab
mov ecx, dword [esp + 0x74]
cmp esi, dword [ecx + 8]
jb 0x408c9f
call fcn.00439049
mov ebx, dword [esp + 0x74]
add esi, 0x1c
jmp 0x408b19
mov esi, dword [0x468c58]
test esi, esi
mov ebx, dword [esp + 0x18]
je 0x408cd6
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408ce1
call fcn.00439049
mov esi, dword [0x468c58]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov byte [edx + esi + 0xf0], 1
cmp edi, dword [eax + 8]
jb 0x408cfb
call fcn.00439049
cmp dword [edi + 0x18], 8
jb 0x408d06
mov eax, dword [ebp]
jmp 0x408d08
mov eax, ebp
push eax
push str.Matched_HardwareID___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov ebp, dword [esp + 0x98]
mov ecx, dword [esp + 0x88]
add esp, 0xc
cmp ebp, dword [ecx]
jb 0x408d34
call fcn.00439049
mov esi, dword [0x468c58]
test esi, esi
je 0x408d5b
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408d66
call fcn.00439049
mov esi, dword [0x468c58]
mov edx, dword [esp + 0x20]
push ebp
lea esi, [edx + esi + 0xc0]
call fcn.0040d140
mov eax, dword [esp + 0x28]
cmp edi, dword [eax + 8]
jb 0x408d85
call fcn.00439049
mov esi, dword [0x468c58]
test esi, esi
je 0x408dac
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408db7
call fcn.00439049
mov esi, dword [0x468c58]
mov ecx, dword [esp + 0x20]
push edi
lea esi, [ecx + esi + 0xd0]
call fcn.0040d140
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x70]
cmp edx, dword [eax]
jb 0x408ddc
call fcn.00439049
mov esi, dword [0x468c58]
test esi, esi
je 0x408e03
mov ecx, dword [0x468c5c]
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408e0e
call fcn.00439049
mov esi, dword [0x468c58]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x20]
push ecx
lea esi, [edx + esi + 0xe0]
call fcn.0040d140
xor eax, eax
mov byte [esp + 0x27], 1
mov dword [esp + 0xfc], 7
mov dword [esp + 0xf8], eax
mov word [esp + 0xe8], ax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x170]
push eax
lea ebx, [esp + 0x104]
mov byte [esp + 0xcc4], 0xa
call fcn.0040aa40
push 0xffffffffffffffff
xor ebp, ebp
push ebp
lea ecx, [esp + 0xec]
mov byte [esp + 0xcc8], 0xb
call fcn.004040b0
mov edi, 8
mov byte [esp + 0xcc0], 0xa
cmp dword [esp + 0x118], edi
jb 0x408ea6
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00439059
add esp, 4
cmp dword [esp + 0xf8], ebp
je 0x40918d
cmp dword [esp + 0xfc], edi
mov eax, dword [esp + 0xe8]
jae 0x408eca
lea eax, [esp + 0xe8]
push eax
push str.Installed_Driver___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov eax, 7
add esp, 0xc
mov byte [esp + 0x19c], 1
mov dword [esp + 0x118], eax
mov dword [esp + 0x114], ebp
mov word [esp + 0x104], bp
mov byte [esp + 0xcc0], 0xc
push 0x27
push str.SystemCurrentControlSetControlClass_
lea esi, [esp + 0x124]
mov dword [esp + 0x13c], eax
mov dword [esp + 0x138], ebp
mov word [esp + 0x128], bp
call fcn.00404160
push ebp
lea edx, [esp + 0xe8]
push edx
or eax, 0xffffffff
mov byte [esp + 0xcc8], 0xd
call fcn.004048d0
mov byte [esp + 0xcc0], 0xe
cmp dword [esp + 0x134], edi
mov eax, dword [esp + 0x120]
jae 0x408f6b
lea eax, [esp + 0x120]
lea ecx, [esp + 0x30]
push ecx
push 0xf003f
push ebp
push eax
push 0x80000002
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40905d
lea edx, [esp + 0x100]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, str.InfPath
call fcn.0042cf10
lea ecx, [esp + 0x1f4]
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, str.DriverVersion
call fcn.0042cf10
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, str.DriverDate
call fcn.0042cf10
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, str.ProviderName
call fcn.0042cf10
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, str.InfSection
call fcn.0042cf10
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, str.DriverDesc
call fcn.0042cf10
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, str.Driver
call fcn.0042cf10
lea ecx, [esp + 0x1bc]
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, str.InfPath
call fcn.0042cf10
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x409059
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], ebp
cmp dword [esp + 0x114], ebp
je 0x4090c6
push 0x104
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x2ac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x409083
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2b0]
push ecx
lea esi, [esp + 0x1a8]
call fcn.00404160
push 5
push str.inf_
mov ecx, esi
call fcn.00403fe0
push ebp
lea edx, [esp + 0x104]
push edx
or eax, 0xffffffff
call fcn.004048d0
cmp dword [esp + 0x1b8], edi
mov eax, dword [esp + 0x1a4]
jae 0x4090dd
lea eax, [esp + 0x1a4]
push ebp
push 2
push ebp
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40912e
mov esi, str.Name
mov edi, str.PackageInfo
mov edx, ebx
call fcn.00409570
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x409105
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x288]
call fcn.00404160
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov edi, 8
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40913d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x134], edi
mov dword [esp + 0x30], ebp
jb 0x40915a
mov eax, dword [esp + 0x120]
push eax
call fcn.00439059
add esp, 4
cmp dword [esp + 0x118], edi
mov dword [esp + 0x134], 7
mov dword [esp + 0x130], ebp
mov word [esp + 0x120], bp
jb 0x40918d
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00439059
add esp, 4
mov byte [esp + 0xcc0], 9
cmp dword [esp + 0xfc], edi
jb 0x4091ae
mov edx, dword [esp + 0xe8]
push edx
call fcn.00439059
add esp, 4
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
cmp ecx, dword [eax]
jb 0x4091c2
call fcn.00439049
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, 0x1c
add dword [esp + 0x8c], esi
cmp eax, dword [edx + 8]
jb 0x4091e0
call fcn.00439049
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x84]
add dword [esp + 0x2c], esi
cmp edx, dword [ecx]
jb 0x4091f8
call fcn.00439049
add dword [esp + 0x84], esi
mov ecx, dword [0x468c58]
mov ebp, dword [esp + 0x2c]
jmp 0x408920
cmp byte [esp + 0x27], 0
je 0x40925b
test ecx, ecx
je 0x409238
mov edx, dword [0x468c5c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x409243
call fcn.00439049
mov ecx, dword [0x468c58]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18c]
push eax
lea esi, [edx + ecx + 0xf4]
call fcn.0040d2c0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x409281
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x68]
push ecx
call fcn.00411400
mov edx, dword [esp + 0x68]
add esp, 4
push edx
call fcn.00439059
add esp, 4
xor eax, eax
lea esi, [esp + 0x18c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0xcc0], 6
call fcn.004093e0
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x170]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x60], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4086d4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
sub dword [0x4676c0], 1
mov esi, 8
cmp dword [esp + 0x16c], esi
jb 0x409305
mov edx, dword [esp + 0x158]
push edx
call fcn.00439059
add esp, 4
xor eax, eax
mov dword [esp + 0x16c], 7
mov dword [esp + 0x168], eax
mov word [esp + 0x158], ax
mov byte [esp + 0xcc0], 1
cmp dword [esp + 0xe0], esi
jb 0x409342
mov eax, dword [esp + 0xcc]
push eax
call fcn.00439059
add esp, 4
mov esi, dword [esp + 0x18]
add esi, 1
mov ecx, 0x468c54
mov dword [esp + 0x18], esi
call fcn.0040d370
cmp esi, eax
jb 0x407870
xor esi, esi
push esi
call fcn.00432010
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, esi
je 0x409390
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x48]
push ecx
call fcn.00411400
mov edx, dword [esp + 0x48]
add esp, 4
push edx
call fcn.00439059
add esp, 4
cmp dword [esp + 0x150], 8
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
jb 0x4093b6
mov eax, dword [esp + 0x13c]
push eax
call fcn.00439059
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xcb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xca0]
xor ecx, esp
call fcn.0043782a
add esp, 0xcb0
ret