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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452405
mov eax, dword fs:[0]
push eax
sub esp, 0xc78
mov eax, dword [0x468744]
xor eax, esp
mov dword [esp + 0xc70], eax
push ebx
push esi
push edi
mov eax, dword [0x468744]
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.00432290
mov ecx, dword [0x4699b4]
sub ecx, dword [0x4699b0]
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 0x408629
push str.INF_Info
push str.__s_
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov esi, dword [esp + 0x40]
mov edx, dword [0x4699b0]
imul esi, esi, 0x114
mov ebx, 1
add dword [0x4699f4], ebx
lea eax, [esi + edx + 0x20]
mov edi, 8
add esp, 0xc
mov dword [esp + 0x14], esi
cmp dword [eax + 0x14], edi
jb 0x4071e8
mov eax, dword [eax]
push eax
push str.INF___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov eax, dword [0x4699b0]
lea eax, [esi + eax + 0x20]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x40720d
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 0x4072da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000100
jne 0x4072b6
push str.INF_has_wrong_INF_style
push 0x4699d4
mov eax, ebx
call fcn.0042d020
mov ecx, dword [0x4699b0]
mov edx, dword [esp + 0x48]
sub dword [esp + 0x3c], ebx
mov ebx, dword [0x4699b4]
add ecx, esi
push edx
lea eax, [ecx + 0x114]
call fcn.0040f500
mov eax, dword [0x4699b4]
lea ebx, [eax - 0x114]
add esp, 0xc
mov esi, eax
cmp ebx, eax
je 0x407294
nop
call fcn.00406e50
add ebx, 0x114
cmp ebx, esi
jne 0x407280
mov eax, dword [0x4699b4]
sub eax, 0x114
push 0xffffffffffffffff
mov dword [0x4699b4], eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ebx, 1
sub dword [0x4699f4], ebx
jmp 0x4085f5
test eax, eax
je 0x4072cf
push eax
push str.Error_0x_X_opening
push 0x4699d4
mov eax, ebx
call fcn.0042d020
add esp, 0xc
sub dword [0x4699f4], ebx
jmp 0x4085f5
mov edx, dword [esp + 0x20]
mov esi, str.DriverVer
mov edi, str.Version
call fcn.00408820
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4072f2
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xe4]
call fcn.00406580
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x44], 0x2c
test eax, eax
je 0x407352
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp eax, 1
jb 0x407352
cmp dword [esp + 0xf4], 8
mov edi, dword [esp + 0xe0]
jae 0x407340
mov edi, esi
nop
mov eax, edi
test ecx, ecx
je 0x407352
cmp word [eax], 0x2c
je 0x4073c3
add eax, 2
dec ecx
jne 0x407346
or ebx, 0xffffffff
push ebx
xor ecx, ecx
lea esi, [esp + 0xc8]
lea edx, [esp + 0xe4]
call fcn.0040c760
mov edi, eax
mov eax, dword [0x4699b0]
mov ecx, dword [esp + 0x14]
lea esi, [ecx + eax + 0x3c]
cmp esi, edi
je 0x407443
cmp dword [esi + 0x14], 8
jb 0x407393
mov eax, dword [esi]
push eax
call fcn.00439b10
add esp, 4
xor eax, eax
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], dx
cmp dword [edi + 0x14], 8
jae 0x40742b
mov eax, dword [edi + 0x10]
inc eax
add eax, eax
push eax
push edi
push esi
call fcn.00439d20
add esp, 0xc
xor eax, eax
jmp 0x407431
test eax, eax
je 0x407352
mov esi, 1
lea edx, [esp + 0x44]
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x407406
add ecx, 2
add edx, 2
dec esi
jne 0x4073d2
cmp dword [esp + 0xf4], 8
mov ecx, dword [esp + 0xe0]
jae 0x4073fb
lea ecx, [esp + 0xe0]
sub eax, ecx
sar eax, 1
mov ebx, eax
jmp 0x407355
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x4073e3
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 0x407340
mov ecx, dword [edi]
mov dword [esi], ecx
mov dword [edi], eax
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xd8], 8
jb 0x407465
mov edx, dword [esp + 0xc4]
push edx
call fcn.00439b10
add esp, 4
mov eax, dword [esp + 0xf0]
push eax
lea ecx, [ebx + 1]
lea esi, [esp + 0xc8]
lea edx, [esp + 0xe4]
call fcn.0040c760
mov edi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [0x4699b0]
lea esi, [ecx + edx + 0x58]
cmp esi, edi
je 0x4074eb
cmp dword [esi + 0x14], 8
jb 0x4074a8
mov eax, dword [esi]
push eax
call fcn.00439b10
add esp, 4
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
cmp dword [edi + 0x14], 8
jae 0x4074d3
mov eax, dword [edi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push edi
push esi
call fcn.00439d20
add esp, 0xc
jmp 0x4074d9
mov edx, dword [edi]
mov dword [esi], edx
mov dword [edi], ebx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xd8], 8
jb 0x40750d
mov edx, dword [esp + 0xc4]
push edx
call fcn.00439b10
add esp, 4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4699b0]
mov esi, str.ClassGUID
mov edi, str.Version
call fcn.00408820
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407530
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebx + 0x74]
call fcn.00406580
mov edx, dword [esp + 0x14]
mov eax, dword [0x4699b0]
mov ecx, dword [edx + eax + 0x88]
lea eax, [edx + eax + 0x74]
cmp ecx, 8
jb 0x407565
mov edi, dword [eax]
jmp 0x407567
mov edi, eax
cmp ecx, 8
jb 0x407570
mov edx, dword [eax]
jmp 0x407572
mov edx, eax
mov esi, dword [eax + 0x10]
lea ebx, [edx + esi*2]
cmp ecx, 8
jb 0x40757f
mov eax, dword [eax]
cmp eax, ebx
je 0x40759e
mov esi, eax
sub edi, eax
movzx ecx, word [esi]
push ecx
call fcn.0043cfe5
mov word [esi + edi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x407587
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4699b0]
mov esi, str.Name
mov edi, str.PackageInfo
call fcn.00408820
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4075c0
sub ecx, edx
sar ecx, 1
push ecx
mov esi, ebx
call fcn.00406580
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4699b0]
mov esi, str.Sequence
mov edi, str.PackageInfo
call fcn.00408820
push eax
call fcn.0043a74b
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
mov eax, dword [0x4699b0]
lea eax, [ecx + eax + 0x3c]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x407615
mov eax, dword [eax]
push eax
push str.Date___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov edx, dword [0x4699b0]
mov esi, dword [esp + 0x20]
lea eax, [esi + edx + 0x58]
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x407644
mov eax, dword [eax]
push eax
push str.Version___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov eax, dword [0x4699b0]
lea eax, [esi + eax + 0x74]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x407669
mov eax, dword [eax]
push eax
push str.ClassGUID___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov ecx, dword [0x4699b0]
lea eax, [esi + ecx]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40768e
mov eax, dword [eax]
push eax
push str.PackageInfo.Name___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov edx, dword [0x4699b0]
mov eax, dword [esi + edx + 0x1c]
add esp, 0xc
push eax
push str.PackageInfo.Sequence___d
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
push 0
push str.Manufacturer
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x4076fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4076fe
push str.Error_in_Manufacturer_section__ignoring
push 0x4699d4
mov eax, 1
call fcn.0042d020
add esp, 8
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 0x407755
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407755
push eax
push str.Error_0x_X_retrieving_a_Manufacturer_line._Skipping_inf
push 0x4699d4
mov eax, 2
call fcn.0042d020
add esp, 0xc
dec dword [0x4699f4]
jmp 0x4085f5
xor eax, eax
mov word [esp + 0x8c], ax
lea eax, [esp + 0x47c]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407780
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0x90]
call fcn.00406580
mov byte [esp + 0xc90], 4
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebx
jae 0x4077bd
mov eax, esi
push eax
push str.Manufacturer___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
lea ecx, [esp + 0x8c]
push ecx
call fcn.00409cd0
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebx
jae 0x4077f6
lea eax, [esp + 0x8c]
push eax
push str.Resolved_Manufacturer___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0x98]
add esp, 0xc
mov ecx, edi
cmp esi, ebx
jae 0x407862
lea ecx, [esp + 0x8c]
mov eax, ecx
mov edx, dword [esp + 0x9c]
lea ebx, [eax + edx*2]
mov eax, edi
cmp esi, 8
jae 0x407840
lea eax, [esp + 0x8c]
cmp eax, ebx
je 0x407866
push ecx
lea ecx, [esp + 0x6c]
push ecx
call fcn.0040f2c0
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0x94]
add esp, 8
jmp 0x40786a
mov eax, edi
jmp 0x407828
mov dword [esp + 0x68], ecx
push 2
push 0x4569f4
lea edx, [esp + 0x94]
push edx
xor eax, eax
call fcn.00403110
cmp eax, 0xffffffff
je 0x4078b8
push str.Inf_supports_64_bit.
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov eax, dword [0x4699b0]
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 0x4078c6
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 0x407920
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407920
push eax
push str.Error_locating_a_device_section._Skipping_inf
push 0x4699d4
mov eax, 2
call fcn.0042d020
dec dword [0x4699f4]
add esp, 0xc
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xa0], 8
jmp 0x4085e3
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 0x407970
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407970
push eax
push str.SetupGetStringField_generated_an_unexpected_error._Ignoring_error
push 0x4699d4
mov eax, 2
call fcn.0042d020
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 0x4079a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0xac]
call fcn.00406580
mov byte [esp + 0xc90], 5
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x4079de
mov eax, esi
push eax
push str.Description:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
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 0x407a3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407a3f
push eax
push str.SetupGetLineText_generated_an_unexpected_error._Ignoring_error
push 0x4699d4
mov eax, 2
call fcn.0042d020
add esp, 0xc
cmp ebx, edi
je 0x407a8f
mov eax, dword [esp + 0x40]
push eax
push edi
mov ecx, ebx
mov eax, edi
call fcn.0040f640
mov ebx, eax
add esp, 8
mov esi, ebx
cmp ebx, edi
je 0x407a8b
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x407a71
mov eax, dword [esi]
push eax
call fcn.00439b10
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 0x407a60
mov dword [esp + 0x4c], ebx
push 0x2c
lea ebx, [esp + 0x4c]
lea ecx, [esp + 0x480]
call fcn.004372a0
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 0x407b1f
add esi, 0x1c
dec eax
mov dword [esp + 0x18], eax
mov edi, edi
mov edx, dword [0x4699b0]
mov ebx, dword [esp + 0x14]
lea edi, [ebx + edx + 0xb0]
lea ecx, [esp + 0xa8]
call fcn.0040c790
mov eax, dword [0x4699b0]
mov ecx, dword [esp + 0x48]
lea edi, [ebx + eax + 0x90]
call fcn.0040c790
mov ecx, dword [0x4699b0]
lea edi, [ebx + ecx + 0xa0]
mov ecx, esi
call fcn.0040c790
add esi, 0x1c
dec dword [esp + 0x18]
jne 0x407ad0
lea edx, [esp + 0x47c]
push edx
push str.HardwareID___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
mov byte [esp + 0xc90], 4
cmp dword [esp + 0xbc], 8
jb 0x407b5d
mov eax, dword [esp + 0xa8]
push eax
call fcn.00439b10
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 0x407920
mov eax, dword [0x4699b0]
mov ecx, dword [esp + 0x14]
xor edi, edi
lea eax, [ecx + eax + 0x20]
mov dword [esp + 0x3c], edi
cmp dword [eax + 0x14], 8
jb 0x407b8e
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 0x407bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407bd5
push eax
push str.SetupDiGetINFClass_generated_an_unexpected_error._Ignoring_error
push 0x4699d4
mov eax, 1
call fcn.0042d020
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 0x407c00
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407c00
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0x11c]
call fcn.00406580
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 0x407c6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407c6a
cmp eax, 0x3e5
je 0x407c6a
push eax
push str.SetupDiGetClassDevs_generated_an_unexpected_error._Ignoring_error
push 0x4699d4
mov eax, 1
call fcn.0042d020
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 0x40857a
xor edi, edi
mov ebx, 7
xor eax, eax
xor edx, edx
xor ecx, ecx
mov byte [esp + 0x1f], 0
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], edi
mov dword [esp + 0x13c], edi
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x158], edi
mov word [esp + 0x148], dx
mov dword [esp + 0x178], ebx
mov dword [esp + 0x174], edi
mov word [esp + 0x164], ax
mov dword [esp + 0x194], ebx
mov dword [esp + 0x190], edi
mov word [esp + 0x180], cx
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1ac], edi
mov word [esp + 0x19c], dx
mov dword [esp + 0x1cc], ebx
mov dword [esp + 0x1c8], edi
mov word [esp + 0x1b8], ax
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0x1e4], edi
mov word [esp + 0x1d4], cx
mov dword [esp + 0x204], ebx
mov dword [esp + 0x200], edi
mov word [esp + 0x1f0], dx
mov dword [esp + 0x220], ebx
mov dword [esp + 0x21c], edi
mov word [esp + 0x20c], ax
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x238], edi
mov word [esp + 0x228], cx
mov byte [esp + 0x144], al
mov eax, dword [esp + 0x2c]
push 1
lea edx, [esp + 0x24c]
push edx
push eax
lea esi, [esp + 0x78]
mov byte [esp + 0xc9c], bl
call fcn.0040a600
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x134]
cmp ecx, eax
je 0x407e44
mov esi, dword [esp + 0x134]
cmp esi, edi
je 0x407e06
mov eax, dword [esp + 0x138]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x407dfd
cmp dword [esi + 0x14], 8
jb 0x407de2
mov eax, dword [esi]
push eax
call fcn.00439b10
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 0x407dd1
mov esi, dword [esp + 0x134]
push esi
call fcn.00439b10
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 0x407e92
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x407e89
cmp dword [esi + 0x14], 8
jb 0x407e71
mov eax, dword [esi]
push eax
call fcn.00439b10
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 0x407e60
mov esi, dword [esp + 0x6c]
push esi
call fcn.00439b10
add esp, 4
mov ecx, dword [esp + 0x2c]
push 2
lea eax, [esp + 0x24c]
push eax
push ecx
lea esi, [esp + 0x64]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
call fcn.0040a600
mov byte [esp + 0xc90], 9
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x13c]
push eax
push ecx
push edx
lea eax, [esp + 0x144]
push eax
call fcn.0040f310
mov eax, dword [esp + 0x14]
mov edx, dword [0x4699b0]
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 0x4084ef
lea ecx, [ecx]
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x407f30
mov edi, dword [eax]
jmp 0x407f32
mov edi, eax
cmp edx, 8
jb 0x407f3b
mov ecx, dword [eax]
jmp 0x407f3d
mov ecx, eax
mov esi, dword [eax + 0x10]
lea ebx, [ecx + esi*2]
cmp edx, 8
jb 0x407f4a
mov eax, dword [eax]
cmp eax, ebx
je 0x407f69
mov esi, eax
sub edi, eax
movzx edx, word [esi]
push edx
call fcn.0043a86c
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x407f52
mov edi, dword [esp + 0x134]
cmp edi, dword [esp + 0x138]
je 0x4083fe
lea ecx, [ecx]
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x407f8c
mov ebx, dword [edi]
jmp 0x407f8e
mov ebx, edi
cmp ecx, 8
jb 0x407f97
mov eax, dword [edi]
jmp 0x407f99
mov eax, edi
mov edx, dword [edi + 0x10]
lea eax, [eax + edx*2]
mov dword [esp + 0x40], eax
cmp ecx, 8
jb 0x407fac
mov esi, dword [edi]
jmp 0x407fae
mov esi, edi
cmp esi, eax
je 0x407fcd
sub ebx, esi
movzx eax, word [esi]
push eax
call fcn.0043a86c
mov word [ebx + esi], ax
add esi, 2
add esp, 4
cmp esi, dword [esp + 0x40]
jne 0x407fb4
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x10]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x407fe2
mov eax, dword [esi]
jmp 0x407fe4
mov eax, esi
push ecx
push eax
push edi
xor eax, eax
call fcn.00403110
cmp eax, 0xffffffff
jne 0x408004
add edi, 0x1c
cmp edi, dword [esp + 0x138]
jne 0x407f80
jmp 0x4083fe
mov ecx, dword [0x4699b0]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx + 0xf0], 1
cmp dword [esi + 0x14], ebx
jb 0x40801d
mov esi, dword [esi]
push esi
push str.Matched_HardwareID___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov eax, dword [0x4699b0]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edi, [esi + eax + 0xc0]
call fcn.0040c790
mov ecx, dword [0x4699b0]
lea edi, [esi + ecx + 0xd0]
mov ecx, dword [esp + 0x30]
call fcn.0040c790
mov edx, dword [0x4699b0]
mov ecx, dword [esp + 0x18]
lea edi, [esi + edx + 0xe0]
call fcn.0040c790
xor eax, eax
mov byte [esp + 0x1f], 1
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
mov word [esp + 0xa8], ax
lea ecx, [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0xc8]
mov byte [esp + 0xc94], 0xa
call fcn.0040a4a0
mov edi, eax
lea esi, [esp + 0xa8]
mov byte [esp + 0xc90], 0xb
call fcn.00404010
mov byte [esp + 0xc90], 0xa
cmp dword [esp + 0xd8], 8
jb 0x4080f4
mov edx, dword [esp + 0xc4]
push edx
call fcn.00439b10
add esp, 4
xor edi, edi
cmp dword [esp + 0xb8], edi
je 0x4083dc
mov eax, dword [esp + 0xa8]
mov ebx, 8
cmp dword [esp + 0xbc], ebx
jae 0x40811f
lea eax, [esp + 0xa8]
push eax
push str.Installed_Driver___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
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.00406580
push edi
lea eax, [esp + 0xac]
push eax
or eax, 0xffffffff
mov byte [esp + 0xc98], 0xd
call fcn.00404080
mov byte [esp + 0xc90], 0xe
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], ebx
jae 0x4081bf
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 0x4082a9
lea edx, [esp + 0xc4]
push edx
mov eax, str.InfPath
lea ecx, [esp + 0x28]
call fcn.0042d4f0
lea eax, [esp + 0x19c]
push eax
mov eax, str.DriverVersion
lea ecx, [esp + 0x28]
call fcn.0042d4f0
lea ecx, [esp + 0x180]
push ecx
mov eax, str.DriverDate
lea ecx, [esp + 0x28]
call fcn.0042d4f0
lea edx, [esp + 0x1b8]
push edx
mov eax, str.ProviderName
lea ecx, [esp + 0x28]
call fcn.0042d4f0
lea eax, [esp + 0x1d4]
push eax
mov eax, str.InfSection
lea ecx, [esp + 0x28]
call fcn.0042d4f0
lea ecx, [esp + 0x1f0]
push ecx
mov eax, str.DriverDesc
lea ecx, [esp + 0x28]
call fcn.0042d4f0
lea edx, [esp + 0x20c]
push edx
mov eax, str.Driver
lea ecx, [esp + 0x28]
call fcn.0042d4f0
lea eax, [esp + 0x164]
push eax
mov eax, str.InfPath
lea ecx, [esp + 0x28]
call fcn.0042d4f0
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x4082a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], edi
cmp dword [esp + 0xd4], edi
je 0x408312
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 0x4082d0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x278]
lea esi, [esp + 0x14c]
call fcn.00406580
push 5
mov eax, str.inf_
mov ecx, esi
call fcn.00403640
push edi
lea edx, [esp + 0xc8]
push edx
or eax, 0xffffffff
call fcn.00404080
mov eax, dword [esp + 0x148]
cmp dword [esp + 0x15c], ebx
jae 0x408329
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 0x408376
mov esi, str.Name
mov edi, str.PackageInfo
mov edx, ebx
call fcn.00408820
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408351
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x22c]
call fcn.00406580
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
xor edi, edi
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x408385
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
mov dword [esp + 0x24], edi
cmp dword [esp + 0x110], esi
jb 0x4083a7
mov eax, dword [esp + 0xfc]
push eax
call fcn.00439b10
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 0x4083dc
mov edx, dword [esp + 0xc4]
push edx
call fcn.00439b10
add esp, 4
mov byte [esp + 0xc90], 9
cmp dword [esp + 0xbc], 8
jb 0x4083fe
mov eax, dword [esp + 0xa8]
push eax
call fcn.00439b10
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [0x4699b0]
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 0x407f20
cmp byte [esp + 0x1f], 0
je 0x4084ef
mov esi, ecx
mov eax, edx
lea edi, [esi + eax + 0xf4]
lea ecx, [esp + 0x134]
call fcn.0040c8e0
mov ecx, dword [0x4699b0]
lea edi, [esi + ecx + 0x104]
lea ecx, [esp + 0x134]
call fcn.0040c8e0
lea ecx, [esp + 0x134]
mov edi, 0x4699c0
call fcn.0040c8e0
mov eax, dword [0x4699c4]
add eax, 0xffffff58
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x40848e
mov eax, dword [eax]
push eax
push str.Found_current_package__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov eax, dword [0x4699c4]
add eax, 0xffffff04
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x4084b4
mov eax, dword [eax]
push eax
push str.Found_current_package_INF:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov eax, dword [0x4699c4]
add eax, 0xffffff20
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x4084da
mov eax, dword [eax]
push eax
push str.Found_current_package_Installed_INF:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
cmp dword [esp + 0x58], 0
je 0x40853b
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp esi, edi
je 0x40852e
mov ebx, 7
cmp dword [esi + 0x14], 8
jb 0x408518
mov eax, dword [esi]
push eax
call fcn.00439b10
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 0x408507
mov eax, dword [esp + 0x58]
push eax
call fcn.00439b10
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.00408690
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 0x407c91
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 [0x4699f4]
mov esi, 8
cmp dword [esp + 0x12c], esi
jb 0x4085b4
mov edx, dword [esp + 0x118]
push edx
call fcn.00439b10
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 0x4085f5
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00439b10
add esp, 4
mov ecx, dword [0x4699b4]
sub ecx, dword [0x4699b0]
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 0x4071a0
mov ebx, dword [esp + 0x48]
xor esi, esi
push esi
call fcn.00432290
add esp, 4
cmp ebx, esi
je 0x40864a
mov edi, dword [esp + 0x4c]
mov eax, ebx
call fcn.0040d800
push ebx
call fcn.00439b10
add esp, 4
cmp dword [esp + 0xf4], 8
jb 0x408664
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00439b10
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.00438786
mov esp, ebp
pop ebp
ret