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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452435
mov eax, dword fs:[0]
push eax
sub esp, 0xc78
mov eax, dword [0x469738]
xor eax, esp
mov dword [esp + 0xc70], eax
push ebx
push esi
push edi
mov eax, dword [0x469738]
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.004324d0
mov ecx, dword [0x46a9b4]
sub ecx, dword [0x46a9b0]
mov eax, 0x76b981db
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add esp, 4
add ecx, edx
mov dword [esp + 0x34], esi
je 0x4086b2
push str.INF_Info
push str.__s_
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov esi, dword [esp + 0x40]
mov edx, dword [0x46a9b0]
imul esi, esi, 0x114
mov ebx, 1
add dword [0x46a9f4], ebx
lea eax, [esi + edx + 0x20]
mov edi, 8
add esp, 0xc
mov dword [esp + 0x14], esi
cmp dword [eax + 0x14], edi
jb 0x407248
mov eax, dword [eax]
push eax
push str.INF___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
lea eax, [esi + eax + 0x20]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x40726d
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 0x40733a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000100
jne 0x407316
push str.INF_has_wrong_INF_style
push 0x46a9d4
mov eax, ebx
call fcn.0042d150
mov ecx, dword [0x46a9b0]
mov edx, dword [esp + 0x48]
sub dword [esp + 0x3c], ebx
mov ebx, dword [0x46a9b4]
add ecx, esi
push edx
lea eax, [ecx + 0x114]
call fcn.0040f4d0
mov eax, dword [0x46a9b4]
lea ebx, [eax - 0x114]
add esp, 0xc
mov esi, eax
cmp ebx, eax
je 0x4072f4
nop
call fcn.00406eb0
add ebx, 0x114
cmp ebx, esi
jne 0x4072e0
mov eax, dword [0x46a9b4]
sub eax, 0x114
push 0xffffffffffffffff
mov dword [0x46a9b4], eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ebx, 1
sub dword [0x46a9f4], ebx
jmp 0x40867e
test eax, eax
je 0x40732f
push eax
push str.Error_0x_X_opening
push 0x46a9d4
mov eax, ebx
call fcn.0042d150
add esp, 0xc
sub dword [0x46a9f4], ebx
jmp 0x40867e
mov edx, dword [esp + 0x20]
mov esi, str.DriverVer
mov edi, str.Version
call fcn.004088b0
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407352
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xe4]
call fcn.004065b0
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x44], 0x2c
test eax, eax
je 0x4073b2
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp eax, 1
jb 0x4073b2
cmp dword [esp + 0xf4], 8
mov edi, dword [esp + 0xe0]
jae 0x4073a0
mov edi, esi
nop
mov eax, edi
test ecx, ecx
je 0x4073b2
cmp word [eax], 0x2c
je 0x407423
add eax, 2
dec ecx
jne 0x4073a6
or ebx, 0xffffffff
push ebx
xor ecx, ecx
lea esi, [esp + 0xc8]
lea edx, [esp + 0xe4]
call fcn.0040c700
mov esi, eax
mov eax, dword [0x46a9b0]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax + 0x3c]
cmp edi, esi
je 0x4074b0
cmp dword [edi + 0x14], 8
jb 0x4073f3
mov eax, dword [edi]
push eax
call fcn.004396db
add esp, 4
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], dx
cmp dword [esi + 0x14], 8
jae 0x40748b
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
push esi
push edi
call fcn.004398e0
add esp, 0xc
jmp 0x407491
test eax, eax
je 0x4073b2
mov esi, 1
lea edx, [esp + 0x44]
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x407466
add ecx, 2
add edx, 2
dec esi
jne 0x407432
cmp dword [esp + 0xf4], 8
mov ecx, dword [esp + 0xe0]
jae 0x40745b
lea ecx, [esp + 0xe0]
sub eax, ecx
sar eax, 1
mov ebx, eax
jmp 0x4073b5
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x407443
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 0x4073a0
mov ecx, dword [esi]
mov dword [edi], ecx
mov dword [esi], edx
mov edx, dword [esi + 0x10]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xd8], 8
jb 0x4074d2
mov edx, dword [esp + 0xc4]
push edx
call fcn.004396db
add esp, 4
mov eax, dword [esp + 0xf0]
push eax
lea ecx, [ebx + 1]
lea esi, [esp + 0xc8]
lea edx, [esp + 0xe4]
call fcn.0040c700
mov esi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [0x46a9b0]
lea edi, [ecx + edx + 0x58]
cmp edi, esi
je 0x407561
cmp dword [edi + 0x14], 8
jb 0x407515
mov eax, dword [edi]
push eax
call fcn.004396db
add esp, 4
xor ebx, ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
cmp dword [esi + 0x14], 8
jae 0x407540
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edi
call fcn.004398e0
add esp, 0xc
jmp 0x407546
mov edx, dword [esi]
mov dword [edi], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x14], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xd8], 8
jb 0x407583
mov eax, dword [esp + 0xc4]
push eax
call fcn.004396db
add esp, 4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x46a9b0]
mov esi, str.ClassGUID
mov edi, str.Version
call fcn.004088b0
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4075a5
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebx + 0x74]
call fcn.004065b0
mov ecx, dword [0x46a9b0]
mov eax, dword [esp + 0x14]
lea eax, [eax + ecx + 0x74]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x4075d7
mov edi, dword [eax]
jmp 0x4075d9
mov edi, eax
cmp ecx, 8
jb 0x4075e2
mov edx, dword [eax]
jmp 0x4075e4
mov edx, eax
mov esi, dword [eax + 0x10]
lea ebx, [edx + esi*2]
cmp ecx, 8
jb 0x4075f1
mov eax, dword [eax]
cmp eax, ebx
je 0x407617
mov esi, eax
sub edi, eax
lea esp, [esp]
movzx edx, word [esi]
push edx
call fcn.0043cba5
mov word [esi + edi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x407600
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x46a9b0]
mov esi, str.Name
mov edi, str.PackageInfo
call fcn.004088b0
mov ecx, eax
lea edx, [ecx + 2]
lea esp, [esp]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x407640
sub ecx, edx
sar ecx, 1
push ecx
mov esi, ebx
call fcn.004065b0
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x46a9b0]
mov esi, str.Sequence
mov edi, str.PackageInfo
call fcn.004088b0
push eax
call fcn.0043a30b
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
mov ecx, dword [0x46a9b0]
lea eax, [edx + ecx + 0x3c]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x407696
mov eax, dword [eax]
push eax
push str.Date___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
mov esi, dword [esp + 0x20]
lea eax, [esi + eax + 0x58]
mov ebx, 8
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x4076c4
mov eax, dword [eax]
push eax
push str.Version___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov ecx, dword [0x46a9b0]
lea eax, [esi + ecx + 0x74]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x4076ea
mov eax, dword [eax]
push eax
push str.ClassGUID___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov edx, dword [0x46a9b0]
lea eax, [esi + edx]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40770f
mov eax, dword [eax]
push eax
push str.PackageInfo.Name___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
mov ecx, dword [esi + eax + 0x1c]
add esp, 0xc
push ecx
push str.PackageInfo.Sequence___d
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x7c]
push edx
push 0
push str.Manufacturer
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x40777e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40777e
push str.Error_in_Manufacturer_section__ignoring
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 8
lea ecx, [esp + 0x3c]
push ecx
push 0x400
lea edx, [esp + 0x484]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
test eax, eax
jne 0x4077d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4077d5
push eax
push str.Error_0x_X_retrieving_a_Manufacturer_line._Skipping_inf
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
dec dword [0x46a9f4]
jmp 0x40867e
xor ecx, ecx
lea eax, [esp + 0x47c]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407800
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0x90]
call fcn.004065b0
mov byte [esp + 0xc90], 4
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebx
jae 0x40783d
mov eax, esi
push eax
push str.Manufacturer___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
lea edx, [esp + 0x8c]
push edx
call fcn.00409bd0
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebx
jae 0x407876
lea eax, [esp + 0x8c]
push eax
push str.Resolved_Manufacturer___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0x98]
add esp, 0xc
mov ecx, edi
cmp esi, ebx
jae 0x4078e2
lea ecx, [esp + 0x8c]
mov eax, ecx
mov edx, dword [esp + 0x9c]
lea ebx, [eax + edx*2]
mov eax, edi
cmp esi, 8
jae 0x4078c0
lea eax, [esp + 0x8c]
cmp eax, ebx
je 0x4078e6
push ecx
lea ecx, [esp + 0x6c]
push ecx
call fcn.0040f290
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0x94]
add esp, 8
jmp 0x4078ea
mov eax, edi
jmp 0x4078a8
mov dword [esp + 0x68], ecx
push 2
push 0x457a7c
lea edx, [esp + 0x94]
push edx
xor eax, eax
call fcn.00403160
cmp eax, 0xffffffff
je 0x407938
push str.Inf_supports_64_bit.
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + eax + 0xf1], 1
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0x94]
add esp, 8
mov eax, edi
cmp esi, 8
jae 0x407946
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 0x4079a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4079a0
push eax
push str.Error_locating_a_device_section._Skipping_inf
push 0x46a9d4
mov eax, 2
call fcn.0042d150
dec dword [0x46a9f4]
add esp, 0xc
mov byte [esp + 0xc90], 1
cmp dword [esp + 0xa0], 8
jmp 0x40866c
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 0x4079f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4079f0
push eax
push str.SetupGetStringField_generated_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
xor edx, edx
lea eax, [esp + 0x47c]
mov word [esp + 0xa8], dx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407a20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0xac]
call fcn.004065b0
mov byte [esp + 0xc90], 5
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x407a5e
mov eax, esi
push eax
push str.Description:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push 0x400
lea ecx, [esp + 0x484]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
test eax, eax
jne 0x407abf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407abf
push eax
push str.SetupGetLineText_generated_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
cmp ebx, edi
je 0x407b0f
mov eax, dword [esp + 0x40]
push eax
push edi
mov eax, ebx
mov ecx, edi
call fcn.0040f610
mov ebx, eax
add esp, 8
mov esi, ebx
cmp ebx, edi
je 0x407b0b
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x407af1
mov eax, dword [esi]
push eax
call fcn.004396db
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 0x407ae0
mov dword [esp + 0x4c], ebx
push 0x2c
lea ebx, [esp + 0x4c]
lea ecx, [esp + 0x480]
call fcn.00437460
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 0x407b9f
add esi, 0x1c
dec eax
mov dword [esp + 0x18], eax
mov edi, edi
mov edx, dword [0x46a9b0]
mov ebx, dword [esp + 0x14]
lea edi, [ebx + edx + 0xb0]
lea ecx, [esp + 0xa8]
call fcn.0040c760
mov eax, dword [0x46a9b0]
mov ecx, dword [esp + 0x48]
lea edi, [ebx + eax + 0x90]
call fcn.0040c760
mov ecx, dword [0x46a9b0]
lea edi, [ebx + ecx + 0xa0]
mov ecx, esi
call fcn.0040c760
add esi, 0x1c
dec dword [esp + 0x18]
jne 0x407b50
lea edx, [esp + 0x47c]
push edx
push str.HardwareID___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
mov byte [esp + 0xc90], 4
cmp dword [esp + 0xbc], 8
jb 0x407bdd
mov eax, dword [esp + 0xa8]
push eax
call fcn.004396db
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 0x4079a0
mov eax, dword [0x46a9b0]
mov ecx, dword [esp + 0x14]
xor edi, edi
lea eax, [ecx + eax + 0x20]
mov dword [esp + 0x3c], edi
cmp dword [eax + 0x14], 8
jb 0x407c0e
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 0x407c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407c55
push eax
push str.SetupDiGetINFClass_generated_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
xor eax, eax
mov word [esp + 0x118], ax
lea eax, [esp + 0x47c]
mov dword [esp + 0x12c], 7
mov dword [esp + 0x128], edi
lea edx, [eax + 2]
jmp 0x407c80
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407c80
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x480]
lea esi, [esp + 0x11c]
call fcn.004065b0
mov byte [esp + 0xc90], 6
mov ecx, dword [0x46a9d0]
push ecx
push edi
push edi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0xffffffff
jne 0x407cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x407cef
cmp eax, 0x3e5
je 0x407cef
push eax
push str.SetupDiGetClassDevs_generated_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
lea edx, [esp + 0x248]
push edx
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 0x408603
xor edi, edi
mov ebx, 7
xor eax, eax
xor ecx, ecx
xor edx, edx
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], ax
mov dword [esp + 0x178], ebx
mov dword [esp + 0x174], edi
mov word [esp + 0x164], cx
mov dword [esp + 0x194], ebx
mov dword [esp + 0x190], edi
mov word [esp + 0x180], dx
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1ac], edi
mov word [esp + 0x19c], ax
mov dword [esp + 0x1cc], ebx
mov dword [esp + 0x1c8], edi
mov word [esp + 0x1b8], cx
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0x1e4], edi
mov word [esp + 0x1d4], dx
mov dword [esp + 0x204], ebx
mov dword [esp + 0x200], edi
mov word [esp + 0x1f0], ax
mov dword [esp + 0x220], ebx
mov dword [esp + 0x21c], edi
mov word [esp + 0x20c], cx
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x238], edi
mov word [esp + 0x228], dx
mov byte [esp + 0x144], al
mov ecx, dword [esp + 0x2c]
push 1
lea eax, [esp + 0x24c]
push eax
push ecx
lea esi, [esp + 0x78]
mov byte [esp + 0xc9c], bl
call fcn.0040a510
mov dword [esp + 0x38], eax
lea edx, [esp + 0x134]
cmp edx, eax
je 0x407ec9
mov esi, dword [esp + 0x134]
cmp esi, edi
je 0x407e8b
mov eax, dword [esp + 0x138]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x407e82
cmp dword [esi + 0x14], 8
jb 0x407e67
mov eax, dword [esi]
push eax
call fcn.004396db
add esp, 4
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov word [esi], ax
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x407e56
mov esi, dword [esp + 0x134]
push esi
call fcn.004396db
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 0x407f17
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x407f0e
cmp dword [esi + 0x14], 8
jb 0x407ef6
mov eax, dword [esi]
push eax
call fcn.004396db
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 0x407ee5
mov esi, dword [esp + 0x6c]
push esi
call fcn.004396db
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.0040a510
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.0040f2e0
mov eax, dword [esp + 0x14]
mov edx, dword [0x46a9b0]
mov ecx, dword [eax + edx + 0xb0]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + edx + 0x90]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + edx + 0xa0]
mov dword [esp + 0x30], ecx
cmp ecx, dword [eax + edx + 0xa4]
je 0x408572
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x407fb2
mov edi, dword [eax]
jmp 0x407fb4
mov edi, eax
cmp edx, 8
jb 0x407fbd
mov ecx, dword [eax]
jmp 0x407fbf
mov ecx, eax
mov esi, dword [eax + 0x10]
lea ebx, [ecx + esi*2]
cmp edx, 8
jb 0x407fcc
mov eax, dword [eax]
cmp eax, ebx
je 0x407feb
mov esi, eax
sub edi, eax
movzx edx, word [esi]
push edx
call fcn.0043a42c
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x407fd4
mov edi, dword [esp + 0x134]
cmp edi, dword [esp + 0x138]
je 0x408481
nop
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x40800c
mov ebx, dword [edi]
jmp 0x40800e
mov ebx, edi
cmp ecx, 8
jb 0x408017
mov eax, dword [edi]
jmp 0x408019
mov eax, edi
mov edx, dword [edi + 0x10]
lea eax, [eax + edx*2]
mov dword [esp + 0x40], eax
cmp ecx, 8
jb 0x40802c
mov esi, dword [edi]
jmp 0x40802e
mov esi, edi
cmp esi, eax
je 0x40804d
sub ebx, esi
movzx eax, word [esi]
push eax
call fcn.0043a42c
mov word [ebx + esi], ax
add esi, 2
add esp, 4
cmp esi, dword [esp + 0x40]
jne 0x408034
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x10]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x408062
mov eax, dword [esi]
jmp 0x408064
mov eax, esi
push ecx
push eax
push edi
xor eax, eax
call fcn.00403160
cmp eax, 0xffffffff
jne 0x408084
add edi, 0x1c
cmp edi, dword [esp + 0x138]
jne 0x408000
jmp 0x408481
mov ecx, dword [0x46a9b0]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx + 0xf0], 1
cmp dword [esi + 0x14], ebx
jb 0x40809d
mov esi, dword [esi]
push esi
push str.Matched_HardwareID___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9b0]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edi, [esi + eax + 0xc0]
call fcn.0040c760
mov ecx, dword [0x46a9b0]
lea edi, [esi + ecx + 0xd0]
mov ecx, dword [esp + 0x30]
call fcn.0040c760
mov edx, dword [0x46a9b0]
mov ecx, dword [esp + 0x18]
lea edi, [esi + edx + 0xe0]
call fcn.0040c760
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.0040a3b0
mov edi, eax
lea esi, [esp + 0xa8]
mov byte [esp + 0xc90], 0xb
call fcn.00404060
mov byte [esp + 0xc90], 0xa
cmp dword [esp + 0xd8], 8
jb 0x408174
mov edx, dword [esp + 0xc4]
push edx
call fcn.004396db
add esp, 4
xor edi, edi
cmp dword [esp + 0xb8], edi
je 0x40845f
mov eax, dword [esp + 0xa8]
mov ebx, 8
cmp dword [esp + 0xbc], ebx
jae 0x40819f
lea eax, [esp + 0xa8]
push eax
push str.Installed_Driver___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, 7
xor ecx, ecx
add esp, 0xc
mov byte [esp + 0x144], 1
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], edi
mov word [esp + 0xc4], cx
mov byte [esp + 0xc90], 0xc
mov dword [esp + 0x110], eax
xor edx, edx
push 0x27
mov eax, str.SystemCurrentControlSetControlClass_
lea esi, [esp + 0x100]
mov dword [esp + 0x110], edi
mov word [esp + 0x100], dx
call fcn.004065b0
push edi
lea eax, [esp + 0xac]
push eax
or eax, 0xffffffff
mov byte [esp + 0xc98], 0xd
call fcn.004040d0
mov byte [esp + 0xc90], 0xe
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], ebx
jae 0x40823f
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 0x408329
lea edx, [esp + 0xc4]
push edx
mov eax, str.InfPath
lea ecx, [esp + 0x28]
call fcn.0042d620
lea eax, [esp + 0x19c]
push eax
mov eax, str.DriverVersion
lea ecx, [esp + 0x28]
call fcn.0042d620
lea ecx, [esp + 0x180]
push ecx
mov eax, str.DriverDate
lea ecx, [esp + 0x28]
call fcn.0042d620
lea edx, [esp + 0x1b8]
push edx
mov eax, str.ProviderName
lea ecx, [esp + 0x28]
call fcn.0042d620
lea eax, [esp + 0x1d4]
push eax
mov eax, str.InfSection
lea ecx, [esp + 0x28]
call fcn.0042d620
lea ecx, [esp + 0x1f0]
push ecx
mov eax, str.DriverDesc
lea ecx, [esp + 0x28]
call fcn.0042d620
lea edx, [esp + 0x20c]
push edx
mov eax, str.Driver
lea ecx, [esp + 0x28]
call fcn.0042d620
lea eax, [esp + 0x164]
push eax
mov eax, str.InfPath
lea ecx, [esp + 0x28]
call fcn.0042d620
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x408325
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], edi
cmp dword [esp + 0xd4], edi
je 0x408395
push 0x104
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x274]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408353
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x278]
lea esi, [esp + 0x14c]
call fcn.004065b0
push 5
mov eax, str.inf_
mov ecx, esi
call fcn.00403690
push edi
lea edx, [esp + 0xc8]
push edx
or eax, 0xffffffff
call fcn.004040d0
mov eax, dword [esp + 0x148]
cmp dword [esp + 0x15c], ebx
jae 0x4083ac
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 0x4083f9
mov esi, str.Name
mov edi, str.PackageInfo
mov edx, ebx
call fcn.004088b0
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4083d4
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x22c]
call fcn.004065b0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
xor edi, edi
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x408408
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
mov dword [esp + 0x24], edi
cmp dword [esp + 0x110], esi
jb 0x40842a
mov eax, dword [esp + 0xfc]
push eax
call fcn.004396db
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 0x40845f
mov edx, dword [esp + 0xc4]
push edx
call fcn.004396db
add esp, 4
mov byte [esp + 0xc90], 9
cmp dword [esp + 0xbc], 8
jb 0x408481
mov eax, dword [esp + 0xa8]
push eax
call fcn.004396db
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [0x46a9b0]
mov ecx, 0x1c
add dword [esp + 0x38], ecx
add dword [esp + 0x18], ecx
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
cmp eax, dword [ecx + edx + 0xa4]
jne 0x407fa2
cmp byte [esp + 0x1f], 0
je 0x408572
mov esi, ecx
mov eax, edx
lea edi, [esi + eax + 0xf4]
lea ecx, [esp + 0x134]
call fcn.0040c870
mov ecx, dword [0x46a9b0]
lea edi, [esi + ecx + 0x104]
lea ecx, [esp + 0x134]
call fcn.0040c870
lea ecx, [esp + 0x134]
mov edi, 0x46a9c0
call fcn.0040c870
mov eax, dword [0x46a9c4]
add eax, 0xffffff58
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x408511
mov eax, dword [eax]
push eax
push str.Found_current_package__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9c4]
add eax, 0xffffff04
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x408537
mov eax, dword [eax]
push eax
push str.Found_current_package_INF:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov eax, dword [0x46a9c4]
add eax, 0xffffff20
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x40855d
mov eax, dword [eax]
push eax
push str.Found_current_package_Installed_INF:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
cmp dword [esp + 0x58], 0
je 0x4085c4
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp esi, edi
je 0x4085b7
mov ebx, 7
lea ebx, [ebx]
cmp dword [esi + 0x14], 8
jb 0x4085a1
mov eax, dword [esi]
push eax
call fcn.004396db
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 0x408590
mov eax, dword [esp + 0x58]
push eax
call fcn.004396db
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.00408720
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 0x407d16
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
dec dword [0x46a9f4]
mov esi, 8
cmp dword [esp + 0x12c], esi
jb 0x40863d
mov edx, dword [esp + 0x118]
push edx
call fcn.004396db
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 0x40867e
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004396db
add esp, 4
mov ecx, dword [0x46a9b4]
sub ecx, dword [0x46a9b0]
mov esi, dword [esp + 0x34]
mov eax, 0x76b981db
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x34], esi
cmp esi, eax
jb 0x407200
mov ebx, dword [esp + 0x48]
xor esi, esi
push esi
call fcn.004324d0
add esp, 4
cmp ebx, esi
je 0x4086d3
mov edi, dword [esp + 0x4c]
mov eax, ebx
call fcn.0040d7d0
push ebx
call fcn.004396db
add esp, 4
cmp dword [esp + 0xf4], 8
jb 0x4086ed
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.004396db
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.00438351
mov esp, ebp
pop ebp
ret