Function at 0x403290
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45e826
mov eax, dword fs:[0]
push eax
sub esp, 0xa94
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0xa90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b038]
xor eax, esp
push eax
lea eax, [esp + 0xaa8]
mov dword fs:[0], eax
mov esi, dword [esp + 0xac0]
mov ebx, dword [esp + 0xabc]
mov eax, dword [esp + 0xac4]
push esi
mov edi, ecx
push ebx
push str.EnumDevices___x__s__n
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], eax
call fcn.0043e2c0
add esp, 0xc
cmp dword [edi + 0x438], 0
je 0x40464e
cmp byte [edi + 0x43c], 0
jne 0x403320
push 0
push 0
push 1
mov ecx, edi
call fcn.00401c90
test byte [esp + 0xac8], 2
mov edi, 4
je 0x403334
mov edi, 6
push edi
push str.__dwFlag____d__n
call fcn.0043e2c0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x438]
add esp, 8
push 0
push 0
push 0
push edi
push 0
push 0
push 0
call edx
mov edi, dword [esp + 0x2c]
mov ebp, eax
mov dword [esp + 0x38], ebp
cmp ebp, 0xffffffff
je 0x404638
push 0
push esi
push ebx
lea eax, [esp + 0x58]
push eax
push 0
push ebp
mov ecx, edi
mov dword [esp + 0x38], 0
call fcn.00401cc0
test eax, eax
je 0x404631
cmp eax, 1
jne 0x40460f
push esi
push str.FOUND_VALUE___s__n
mov byte [esp + 0x2f], 0
mov dword [esp + 0x20], 0x104
call fcn.0043e2c0
push str.system
push esi
call fcn.0044b362
add esp, 0x10
test eax, eax
jne 0x40342f
push str.This_is_system__we_only_will_look_for_SPDRP_ENUMERATOR_NAME_that_is_equal_to__IPBUSENUMROOT__n
call fcn.0043e2c0
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0x16
lea edx, [esp + 0x60]
push edx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea eax, [esp + 0x7c]
push eax
push str.SPDRP_ENUMERATOR_NAME___s__n
call fcn.0043e2c0
lea ecx, [esp + 0x84]
push str.IPBUSENUMROOT
push ecx
call fcn.0044b362
add esp, 0x10
test eax, eax
jne 0x4034bb
push str.__Yes__this_is_IPBUSENUMROOT_then_continue_n
call fcn.0043e2c0
add esp, 4
push 0x4635b4
push esi
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x403545
push str.This_is_USB_class__lets_skip_some_Manf_ones_n
call fcn.0043e2c0
add esp, 4
lea edx, [esp + 0x18]
push edx
push 0x104
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0xb
lea edx, [esp + 0x60]
push edx
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x403545
cmp word [esp + 0x7c], 0
je 0x403545
lea eax, [esp + 0x7c]
push str.microsoft
push eax
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x4034cd
push str.__This_is_Microsoft__let_skip._n
call fcn.0043e2c0
add esp, 4
jmp 0x40460f
push str.__Not_IPBUSENUMROOT_continue_to_look_for_next_system_class_n
call fcn.0043e2c0
add esp, 4
jmp 0x40460f
lea ecx, [esp + 0x7c]
push str.Intel
push ecx
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x4034f5
push str.__This_is_Intel__let_skip._n
call fcn.0043e2c0
add esp, 4
jmp 0x40460f
lea edx, [esp + 0x7c]
push str._Generic_USB_Hub_
push edx
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x40351d
push str.__This_is__Generic_USB_Hub___let_skip._n
call fcn.0043e2c0
add esp, 4
jmp 0x40460f
lea eax, [esp + 0x7c]
push str.Compatible_USB_storage_device
push eax
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x403545
push str.__This_is_Compatible_USB_storage_device__let_skip._n
call fcn.0043e2c0
add esp, 4
jmp 0x40460f
push 0x18ac
call fcn.0044ad7f
add esp, 4
test eax, eax
je 0x403563
mov ecx, eax
call fcn.004018a0
mov dword [esp + 0x14], eax
jmp 0x40356b
mov dword [esp + 0x14], 0
lea edx, [esp + 0x18]
push edx
push 0x104
xor ecx, ecx
lea eax, [esp + 0x84]
push eax
mov word [esp + 0x88], cx
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x60]
push edx
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x4035e1
cmp word [esp + 0x7c], 0
je 0x4035e1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x7c]
add edx, 0x208
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4035c0
lea edx, [esp + 0x7c]
push edx
push str.SPDRP_DEVICEDESC___s___n
call fcn.0043e2c0
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 0x104
xor eax, eax
lea edx, [esp + 0x84]
push edx
mov word [esp + 0x88], ax
lea eax, [esp + 0x34]
push eax
push 0xc
lea ecx, [esp + 0x60]
push ecx
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea edx, [esp + 0x80]
push edx
push str.SPDRP_FRIENDLYNAME__s_bResult__d_n
mov edi, eax
call fcn.0043e2c0
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
je 0x403681
cmp word [esp + 0x7c], bx
je 0x403681
lea eax, [esp + 0x7c]
push eax
push str.SPDRP_FRIENDLYNAME_found__s_n
call fcn.0043e2c0
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x84]
mov edx, edi
mov ecx, eax
add esp, 8
sub edx, ecx
jmp 0x403670
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x403670
jmp 0x4036d0
push edi
push str.Something_went_wrong_last_error___d__n
call fcn.0043e2c0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
add esp, 8
cmp dword [eax], 0x17
jl 0x4036b3
push str.this_is_win7__try_to_use_FuncDisc_n
mov byte [esp + 0x2b], 1
call fcn.0043e2c0
mov edi, dword [esp + 0x18]
add esp, 4
jmp 0x4036d0
mov edi, dword [esp + 0x14]
lea eax, [edi + 0x208]
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4036c1
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea ecx, [esp + 0x18]
push ecx
push 0x104
xor eax, eax
lea edx, [esp + 0x84]
push edx
mov word [esp + 0x88], ax
lea eax, [esp + 0x34]
push eax
push 1
lea ecx, [esp + 0x60]
push ecx
push ebp
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x403731
cmp word [esp + 0x7c], bx
je 0x403731
lea eax, [esp + 0x7c]
lea edx, [edi + 0x410]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x403722
lea eax, [esp + 0x18]
push eax
push 0x104
xor edx, edx
lea ecx, [esp + 0x84]
push ecx
mov word [esp + 0x88], dx
lea edx, [esp + 0x34]
push edx
push 0xb
lea eax, [esp + 0x60]
push eax
push ebp
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x40378f
cmp word [esp + 0x7c], bx
je 0x40378f
lea eax, [esp + 0x7c]
lea edx, [edi + 0x618]
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x403780
lea eax, [esp + 0x18]
push eax
push 0x104
xor edx, edx
lea ecx, [esp + 0x84]
push ecx
mov word [esp + 0x88], dx
lea edx, [esp + 0x34]
push edx
push 4
lea eax, [esp + 0x60]
push eax
push ebp
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x4037ff
cmp word [esp + 0x7c], bx
je 0x4037ff
lea ecx, [esp + 0x7c]
push ecx
push str.SPDRP_SERVICE___s__n
call fcn.0043e2c0
lea eax, [esp + 0x84]
lea edx, [edi + 0x1294]
mov ecx, eax
add esp, 8
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x4037f0
lea eax, [esp + 0x18]
push eax
push 0x104
xor edx, edx
lea ecx, [esp + 0x84]
push ecx
mov word [esp + 0x88], dx
lea edx, [esp + 0x34]
push edx
push 7
lea eax, [esp + 0x60]
push eax
push ebp
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x40385f
cmp word [esp + 0x7c], bx
je 0x40385f
lea eax, [esp + 0x7c]
lea edx, [edi + 0x820]
mov ecx, eax
sub edx, ecx
jmp 0x403850
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x403850
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
cmp dword [eax], 0x17
jl 0x4038cf
lea ecx, [esp + 0x18]
push ecx
push 0x104
xor eax, eax
lea edx, [esp + 0x84]
push edx
mov word [esp + 0x88], ax
lea eax, [esp + 0x34]
push eax
push 0x24
lea ecx, [esp + 0x60]
push ecx
push ebp
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x4038cf
cmp word [esp + 0x7c], bx
je 0x4038cf
lea eax, [esp + 0x7c]
lea edx, [edi + 0xc7c]
mov ecx, eax
sub edx, ecx
jmp 0x4038c0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x4038c0
push ebx
push 0x104
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x58]
push eax
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x403911
cmp word [esp + 0x7c], bx
je 0x403911
lea eax, [esp + 0x7c]
lea edx, [edi + 0xe84]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x403902
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0xa
lea edx, [esp + 0x60]
push edx
push ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x34], 4
call esi
cmp eax, ebx
je 0x403946
mov eax, dword [esp + 0x40]
mov dword [edi + 0xc70], eax
push 0xf003f
push 2
push ebx
push 1
lea ecx, [esp + 0x5c]
push ecx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [esp + 0x34], eax
cmp eax, 0xffffffff
je 0x40447e
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push str.InfPath
push eax
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403bb1
mov esi, dword [esp + 0x14]
add esi, 0x860
lea eax, [esp + 0x7c]
mov edx, esi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x4039b0
cmp word [esi], bx
je 0x403bb1
push 0x206
lea eax, [esp + 0x28a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x290], dx
call fcn.0044ac90
push esi
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi + 4]
add ecx, 0x218
push ecx
lea edx, [esp + 0x298]
push str._sInf_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esi + 4]
add esp, 0x1c
push ebx
lea eax, [esp + 0x288]
push eax
call fcn.004421d0
test al, al
je 0x403bb1
push 0x4fc8
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0xab0], ebx
cmp eax, ebx
je 0x403a53
push ebx
lea ecx, [esp + 0x288]
push ecx
mov ecx, eax
call fcn.0043f710
mov esi, eax
jmp 0x403a55
xor esi, esi
mov dword [esp + 0xab0], 0xffffffff
cmp esi, ebx
je 0x403bb1
push 0x206
lea eax, [esp + 0x69a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x6a0], dx
call fcn.0044ac90
add esp, 0xc
lea ecx, [esp + 0x694]
push ecx
push 2
push str.Version
push str.Version
mov ecx, esi
call fcn.0043f6b0
test eax, eax
jne 0x403ac2
lea edx, [esp + 0x694]
push edx
push 2
push str.DriverVer
push str.Version
mov ecx, esi
call fcn.0043f6b0
mov ecx, esi
call fcn.00440470
push esi
call fcn.0044ad0a
lea eax, [esp + 0x698]
push 0x2e
xor ebx, ebx
push eax
mov dword [esp + 0x28], ebx
xor edi, edi
xor ebp, ebp
call fcn.0044b43c
mov esi, eax
add esp, 0xc
test esi, esi
je 0x403b04
lea ecx, [esi + 2]
push ecx
call fcn.0044b40b
add esp, 4
xor edx, edx
mov ebx, eax
mov word [esi], dx
lea eax, [esp + 0x694]
push 0x2e
push eax
call fcn.0044b43c
mov esi, eax
add esp, 8
test esi, esi
je 0x403b2f
lea ecx, [esi + 2]
push ecx
call fcn.0044b40b
add esp, 4
xor edx, edx
mov ebp, eax
mov word [esi], dx
lea eax, [esp + 0x694]
push 0x2e
push eax
call fcn.0044b43c
mov esi, eax
add esp, 8
test esi, esi
je 0x403b5a
lea ecx, [esi + 2]
push ecx
call fcn.0044b40b
add esp, 4
xor edx, edx
mov edi, eax
mov word [esi], dx
lea eax, [esp + 0x694]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b64
sub eax, edx
sar eax, 1
je 0x403b87
lea eax, [esp + 0x694]
push eax
call fcn.0044b40b
add esp, 4
jmp 0x403b8b
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
movzx edx, di
or ecx, edx
mov dword [eax + 0xc74], ecx
movzx ecx, bp
movzx edx, bx
shl ecx, 0x10
or ecx, edx
mov dword [eax + 0xc78], ecx
cmp byte [esp + 0x27], 0
je 0x403df7
push 8
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xab0], 1
test eax, eax
je 0x403be2
mov ecx, eax
call fcn.004156c0
jmp 0x403be4
xor eax, eax
mov ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xab0], 0xffffffff
call fcn.004156f0
test eax, eax
jne 0x403ddf
mov esi, dword [0x461cc4]
mov edi, dword [0x461cc8]
mov ebx, dword [0x461ccc]
mov ebp, dword [0x461cd0]
push 0x206
push eax
lea ecx, [esp + 0x69e]
push ecx
mov word [esp + 0x6a0], ax
call fcn.0044ac90
mov ecx, dword [0x462080]
add esp, 0xc
push 1
push 0
lea edx, [esp + 0x69c]
push edx
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x462084]
mov dword [eax + 4], ecx
mov ecx, dword [0x462088]
mov dword [eax + 8], ecx
mov ecx, dword [0x46208c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x462090]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [0x461cd4]
add eax, 0xe84
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x54]
push str.ProviderMicrosoft.Base.PnP
call fcn.00415a50
lea ecx, [esp + 0x694]
push ecx
push str.PKEY_PNPX_WIA_FRIENDLY_NAME____s__n
call fcn.0043e2c0
add esp, 8
cmp word [esp + 0x694], 0
je 0x403ce9
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x694]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x403cd5
jmp 0x403ddf
push str.Still_nothing__try_registry_n
call fcn.0043e2c0
mov eax, dword [esp + 0x3c]
add esp, 4
push 0x20019
push 2
push 0
push 1
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x28e]
push edx
mov esi, eax
mov word [esp + 0x290], cx
call fcn.0044ac90
add esp, 0xc
cmp esi, 0xffffffff
je 0x403d78
push 0x20019
lea eax, [esp + 0x288]
push eax
push str.FriendlyName
push 0x4626e4
push esi
call fcn.0044a470
add esp, 0x14
test eax, eax
je 0x403d71
lea ecx, [esp + 0x284]
push ecx
push str.FriendlyName____s__n
call fcn.0043e2c0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esp + 0x284], 0
je 0x403db1
push str.found__use_this_one_n
call fcn.0043e2c0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x288]
mov ecx, eax
add esp, 4
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x403da0
jmp 0x403ddf
push str.still_not_found_use_driver_name_n
call fcn.0043e2c0
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x208]
add esp, 4
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403dd0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x403df7
mov ecx, esi
call fcn.004156d0
push esi
call fcn.0044ad0a
add esp, 4
mov eax, dword [esp + 0x34]
push 0x20019
lea edx, [esp + 0x80]
push edx
push str.ScannerAddress
push str.DeviceData
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x58], 0
call fcn.0044a470
add esp, 0x14
test eax, eax
je 0x403e67
lea ecx, [esp + 0x7c]
push ecx
push str.ScannerAddress____s__n
call fcn.0043e2c0
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x84]
lea edx, [edi + 0x108c]
mov ecx, eax
add esp, 8
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x403e56
jmp 0x403e6b
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
push str.Image
push ebp
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x403fe5
cmp word [edi + 0x108c], ax
lea ebx, [edi + 0x108c]
jne 0x403fe5
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x28e]
push eax
mov word [esp + 0x290], dx
call fcn.0044ac90
mov esi, dword [esp + 0x38]
add esp, 0xc
lea ecx, [esp + 0x284]
push ecx
mov ecx, dword [esi + 4]
call fcn.00444070
lea edx, [esp + 0x284]
push edx
push str.wszCommonDocFolder____s__n
call fcn.0043e2c0
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x6a6]
push ecx
mov word [esp + 0x6a8], ax
call fcn.0044ac90
push edi
lea edx, [esp + 0x29c]
push edx
lea eax, [esp + 0x6b0]
push str._skyocerawia_sKM_TWAIN1.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x6b8]
push ecx
push str.wszWiaPath____s__n
call fcn.0043e2c0
mov ecx, dword [esi + 4]
add esp, 0x2c
push 0
lea edx, [esp + 0x698]
push edx
call fcn.004421d0
test al, al
je 0x403fe5
push 0x1211c
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xab0], 2
test eax, eax
je 0x403f7d
push 0
push 0
lea ecx, [esp + 0x69c]
push ecx
mov ecx, eax
call fcn.00409e40
mov esi, eax
jmp 0x403f7f
xor esi, esi
lea edx, [esp + 0x7c]
push edx
push 1
push str.ScannerAddress
push str.Contents
mov ecx, esi
mov dword [esp + 0xac0], 0xffffffff
call fcn.004090e0
test eax, eax
je 0x403fd1
lea eax, [esp + 0x7c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x403fb0
lea edx, [esp + 0x7c]
push edx
push str.ScannerAddress____s__n
call fcn.0043e2c0
add esp, 8
test esi, esi
je 0x403fe5
mov ecx, esi
call fcn.00409fe0
push esi
call fcn.0044ad0a
add esp, 4
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.system
push ebp
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x404157
push 8
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xab0], 3
test eax, eax
je 0x40402c
mov ecx, eax
call fcn.004156c0
jmp 0x40402e
xor eax, eax
mov ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xab0], 0xffffffff
call fcn.004156f0
test eax, eax
jne 0x40413f
mov esi, dword [0x461cc4]
mov edi, dword [0x461cc8]
mov ebx, dword [0x461ccc]
mov ebp, dword [0x461cd0]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x28e]
push edx
mov word [esp + 0x290], cx
call fcn.0044ac90
mov ecx, dword [0x461df0]
add esp, 0xc
push 1
push 0
lea eax, [esp + 0x28c]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x461df4]
mov dword [eax + 4], ecx
mov ecx, dword [0x461df8]
mov dword [eax + 8], ecx
mov ecx, dword [0x461dfc]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x461e00]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x34]
add ecx, 0xe84
push ecx
mov ecx, dword [0x461cd4]
sub esp, 0x14
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x54]
push str.ProviderMicrosoft.Base.PnP
call fcn.00415a50
lea edx, [esp + 0x284]
push edx
push str.PKEY_PNPX_Manufacturer____s__n
call fcn.0043e2c0
add esp, 8
cmp word [esp + 0x284], 0
je 0x40413f
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x284]
add edx, 0x618
mov ecx, eax
sub edx, ecx
jmp 0x404130
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x404130
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x404157
mov ecx, esi
call fcn.004156d0
push esi
call fcn.0044ad0a
add esp, 4
mov edx, dword [esp + 0x14]
cmp word [edx + 0x1294], 0x57
jne 0x404492
mov eax, edx
cmp word [eax + 0x1296], 0x53
jne 0x404492
mov ecx, edx
cmp word [ecx + 0x1298], 0x44
jne 0x404492
push 8
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xab0], 4
test eax, eax
je 0x4041af
mov ecx, eax
call fcn.004156c0
jmp 0x4041b1
xor eax, eax
mov ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xab0], 0xffffffff
call fcn.004156f0
test eax, eax
jne 0x404464
mov edx, dword [0x461cd4]
mov esi, dword [0x461cc4]
mov edi, dword [0x461cc8]
mov ebp, dword [0x461ccc]
mov ebx, dword [0x461cd0]
push 0x206
push eax
lea ecx, [esp + 0x496]
push ecx
mov dword [esp + 0x84], edx
mov word [esp + 0x498], ax
call fcn.0044ac90
mov ecx, dword [0x461df0]
mov edx, dword [esp + 0x20]
add esp, 0xc
push 1
push 0
lea eax, [esp + 0x494]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x461df4]
mov dword [eax + 4], ecx
mov ecx, dword [0x461df8]
mov dword [eax + 8], ecx
mov ecx, dword [0x461dfc]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x461e00]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x98]
add edx, 0xe84
push edx
sub esp, 0x14
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x54]
push str.ProviderMicrosoft.Base.PnP
call fcn.00415a50
lea edx, [esp + 0x48c]
push edx
push str.PKEY_PNPX_Manufacturer____s__n
call fcn.0043e2c0
add esp, 8
cmp word [esp + 0x48c], 0
je 0x4042cf
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48c]
add edx, 0x618
mov ecx, eax
sub edx, ecx
jmp 0x4042c0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4042c0
mov ecx, dword [0x461e18]
push 1
push 0
lea eax, [esp + 0x494]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x461e20]
xor edx, edx
mov word [esp + 0x4ac], dx
mov edx, dword [0x461e1c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [0x461e24]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x461e28]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x98]
add eax, 0xe84
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x54]
push str.ProviderMicrosoft.Base.PnP
call fcn.00415a50
lea edx, [esp + 0x48c]
push edx
push str.PKEY_PNPX_ModelName____s__n
call fcn.0043e2c0
add esp, 8
cmp word [esp + 0x48c], 0
je 0x4043b3
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48c]
mov ecx, eax
sub edx, ecx
jmp 0x404380
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x404380
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48c]
add edx, 0x208
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4043a4
mov ecx, dword [0x46206c]
push 1
push 0
lea eax, [esp + 0x494]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x462074]
xor edx, edx
mov word [esp + 0x4ac], dx
mov edx, dword [0x462070]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [0x462078]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x46207c]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x98]
add eax, 0xe84
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x54]
push str.ProviderMicrosoft.Base.PnP
call fcn.00415a50
lea edx, [esp + 0x48c]
push edx
push str.PKEY_PNPX_WSDMON_PRINT_PORT_NAME____s__n
call fcn.0043e2c0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x494]
add eax, 0x108c
mov edx, ecx
add esp, 8
sub eax, edx
movzx edx, word [ecx]
mov word [ecx + eax], dx
add ecx, 2
test dx, dx
jne 0x404455
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x404492
mov ecx, esi
call fcn.004156d0
push esi
call fcn.0044ad0a
add esp, 4
jmp 0x404492
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiOpenDevRegKey_failed____ld__n
call fcn.0043e2c0
add esp, 8
mov esi, dword [esp + 0x14]
cmp word [esi], 0
je 0x4044aa
push esi
push str.pDevData__wszDeviceName____s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0x208], 0
lea eax, [esi + 0x208]
je 0x4044c8
push eax
push str.pDevData__wszDriverName____s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0x410], 0
lea eax, [esi + 0x410]
je 0x4044e6
push eax
push str.pDevData__wszHardwareId____s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0x618], 0
lea eax, [esi + 0x618]
je 0x404504
push eax
push str.pDevData__wszMFG___________s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0x820], 0
lea eax, [esi + 0x820]
je 0x404522
push eax
push str.pDevData__wszClass_________s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0x860], 0
lea eax, [esi + 0x860]
je 0x404540
push eax
push str.pDevData__wszInfFile_______s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0xa68], 0
lea eax, [esi + 0xa68]
je 0x40455e
push eax
push str.pDevData__wszRegDevice_____s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0xc7c], 0
lea eax, [esi + 0xc7c]
je 0x40457c
push eax
push str.pDevData__wszContainerId_________s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0xe84], 0
lea eax, [esi + 0xe84]
je 0x40459a
push eax
push str.pDevData__wszDeviceInstanceId_________s__n
call fcn.0043e2c0
add esp, 8
cmp word [esi + 0x108c], 0
lea eax, [esi + 0x108c]
je 0x4045b8
push eax
push str.pDevData__wszPort____s__n
call fcn.0043e2c0
add esp, 8
mov eax, dword [esi + 0xc70]
push eax
push str.pDevData__dwConfigFlag_______x__n
call fcn.0043e2c0
mov ecx, dword [esi + 0xc74]
push ecx
push str.pDevData__dwDrvVerHigh_______x__n
call fcn.0043e2c0
mov edx, dword [esi + 0xc78]
push edx
push str.pDevData__dwDrvVerLow________x__n
call fcn.0043e2c0
mov ecx, dword [esp + 0x60]
add esp, 0x18
push 0xffffffffffffffff
push 1
push esi
call fcn.004075d0
mov ebx, dword [esp + 0xabc]
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push 0
push esi
push ebx
lea eax, [esp + 0x58]
push eax
push ecx
push ebp
mov ecx, edi
call fcn.00401cc0
test eax, eax
jne 0x403391
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp byte [edi + 0x43c], 0
jne 0x40464e
push 0
push 0
push 2
mov ecx, edi
call fcn.00401c90
xor eax, eax
mov ecx, dword [esp + 0xaa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa90]
xor ecx, esp
call fcn.0044ac80
add esp, 0xaa0
ret 0x14