Function at 0x4038b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x467824
mov eax, dword fs:[0]
push eax
sub esp, 0xa94
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0xa90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0xaa8]
mov dword fs:[0], eax
mov edi, dword [esp + 0xac0]
mov ebp, dword [esp + 0xabc]
mov eax, dword [esp + 0xac4]
push edi
mov esi, ecx
push ebp
push str.EnumDevices___x__s__n
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], eax
call fcn.004454c0
add esp, 0xc
cmp dword [esi + 0x438], 0
je 0x404e0e
cmp byte [esi + 0x444], 0
jne 0x403940
push 0
push 0
push 1
mov ecx, esi
call fcn.0040bbd0
test byte [esp + 0xac8], 2
mov esi, 4
je 0x403954
mov esi, 6
push esi
push str.__dwFlag____d__n
call fcn.004454c0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x438]
add esp, 8
push 0
push 0
push 0
push esi
push 0
push 0
push 0
call edx
mov esi, dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x38], ebx
cmp ebx, 0xffffffff
je 0x404df8
push 0
push edi
push ebp
lea eax, [esp + 0x58]
push eax
push 0
push ebx
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00401fe0
test eax, eax
je 0x404df1
cmp eax, 1
jne 0x404dcf
push edi
push str.FOUND_VALUE___s__n
mov byte [esp + 0x2f], 0
mov dword [esp + 0x20], 0x104
call fcn.004454c0
push str.SoftwareDevice
push edi
call fcn.00453ad3
add esp, 0x10
test eax, eax
jne 0x403b54
push str.This_is_SoftwareDevice_n
call fcn.004454c0
add esp, 4
push 0
push 0x104
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
lea eax, [esp + 0x7c]
push eax
push str.____Device_Instance___s_._n
call fcn.004454c0
lea ecx, [esp + 0x84]
push ecx
push str.____Check_if_contains__uri:__Not_DAFWSDProvider___s_._n
call fcn.004454c0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x6ae]
push eax
mov word [esp + 0x6b0], dx
call fcn.00453450
add esp, 0x1c
xor eax, eax
jmp 0x403a60
movzx ecx, word [esp + eax + 0x7c]
mov word [esp + eax + 0x694], cx
add eax, 2
test cx, cx
jne 0x403a60
push str.DAFWSDProvider
lea ecx, [esp + 0x698]
push ecx
mov ecx, dword [esi + 4]
call fcn.004495e0
test eax, eax
jne 0x403aa8
lea edx, [esp + 0x694]
push edx
push str.__________Not_DAFWSDProvider_Node__go_to_next_node__s__n
call fcn.004454c0
add esp, 8
jmp 0x404dcf
mov ecx, dword [esi + 4]
push str._uri:
lea eax, [esp + 0x698]
push eax
call fcn.004495e0
test eax, eax
je 0x403adb
lea ecx, [esp + 0x694]
push ecx
push str.__________YES__Contains__uri:__Just_loop_to_next_Node___s__n
call fcn.004454c0
add esp, 8
jmp 0x404dcf
lea edx, [esp + 0x7c]
push edx
push str.__________Maybe_WSD__Now_lets_check_if_WSD_discovery_method___s__n
call fcn.004454c0
push 8
call fcn.004534f0
add esp, 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0xab0], 0
test eax, eax
je 0x403b12
mov ecx, eax
call fcn.004186a0
mov esi, eax
jmp 0x403b14
xor esi, esi
mov ecx, esi
mov dword [esp + 0xab0], 0xffffffff
call fcn.004186d0
test eax, eax
jne 0x403b3e
test esi, esi
je 0x403b3e
mov ecx, esi
call fcn.004186b0
push esi
call fcn.004534ca
add esp, 4
lea eax, [esp + 0x7c]
push eax
push str.SPDRP_ENUMERATOR_NAME___s__n
call fcn.004454c0
mov esi, dword [esp + 0x30]
add esp, 8
push str.system
push edi
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x403bd1
push str.This_is_system__we_only_will_look_for_SPDRP_ENUMERATOR_NAME_that_is_equal_to__IPBUSENUMROOT__n
call fcn.004454c0
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 + 0x38]
push ecx
push 0x16
lea edx, [esp + 0x60]
push edx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea eax, [esp + 0x7c]
push eax
push str.SPDRP_ENUMERATOR_NAME___s__n
call fcn.004454c0
lea ecx, [esp + 0x84]
push str.IPBUSENUMROOT
push ecx
call fcn.00453ad3
add esp, 0x10
test eax, eax
jne 0x403c5d
push str.__Yes__this_is_IPBUSENUMROOT_then_continue_n
call fcn.004454c0
add esp, 4
push 0x46ca64
push edi
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x403ce7
push str.This_is_USB_class__lets_skip_some_Manf_ones_n
call fcn.004454c0
add esp, 4
lea edx, [esp + 0x18]
push edx
push 0x104
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0xb
lea edx, [esp + 0x60]
push edx
push ebx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x403ce7
cmp word [esp + 0x7c], 0
je 0x403ce7
lea eax, [esp + 0x7c]
push str.microsoft
push eax
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x403c6f
push str.__This_is_Microsoft__let_skip._n
call fcn.004454c0
add esp, 4
jmp 0x404dcf
push str.__Not_IPBUSENUMROOT_continue_to_look_for_next_system_class_n
call fcn.004454c0
add esp, 4
jmp 0x404dcf
lea ecx, [esp + 0x7c]
push str.Intel
push ecx
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x403c97
push str.__This_is_Intel__let_skip._n
call fcn.004454c0
add esp, 4
jmp 0x404dcf
lea edx, [esp + 0x7c]
push str._Generic_USB_Hub_
push edx
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x403cbf
push str.__This_is__Generic_USB_Hub___let_skip._n
call fcn.004454c0
add esp, 4
jmp 0x404dcf
lea eax, [esp + 0x7c]
push str.Compatible_USB_storage_device
push eax
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x403ce7
push str.__This_is_Compatible_USB_storage_device__let_skip._n
call fcn.004454c0
add esp, 4
jmp 0x404dcf
push 0x18ac
call fcn.004534f0
add esp, 4
test eax, eax
je 0x403d05
mov ecx, eax
call fcn.00401bd0
mov dword [esp + 0x14], eax
jmp 0x403d0d
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 + 0x38]
push ecx
push 0
lea edx, [esp + 0x60]
push edx
push ebx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x403d83
cmp word [esp + 0x7c], 0
je 0x403d83
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x7c]
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 0x403d62
lea edx, [esp + 0x7c]
push edx
push str.SPDRP_DEVICEDESC___s___n
call fcn.004454c0
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 + 0x38]
push eax
push 0xc
lea ecx, [esp + 0x60]
push ecx
push ebx
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.004454c0
xor ebp, ebp
add esp, 0xc
cmp esi, ebp
je 0x403e21
cmp word [esp + 0x7c], bp
je 0x403e21
lea eax, [esp + 0x7c]
push eax
push str.SPDRP_FRIENDLYNAME_found__s_n
call fcn.004454c0
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x84]
mov edx, edi
mov ecx, eax
add esp, 8
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bp
jne 0x403e10
jmp 0x403e70
push edi
push str.Something_went_wrong_last_error___d__n
call fcn.004454c0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
add esp, 8
cmp dword [eax], 0x17
jl 0x403e53
push str.this_is_win7__try_to_use_FuncDisc_n
mov byte [esp + 0x2b], 1
call fcn.004454c0
mov edi, dword [esp + 0x18]
add esp, 4
jmp 0x403e70
mov edi, dword [esp + 0x14]
lea eax, [edi + 0x208]
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bp
jne 0x403e61
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 + 0x38]
push eax
push 1
lea ecx, [esp + 0x60]
push ecx
push ebx
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x403ed1
cmp word [esp + 0x7c], bp
je 0x403ed1
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, bp
jne 0x403ec2
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 + 0x38]
push edx
push 0xb
lea eax, [esp + 0x60]
push eax
push ebx
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x403f2f
cmp word [esp + 0x7c], bp
je 0x403f2f
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, bp
jne 0x403f20
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 + 0x38]
push edx
push 4
lea eax, [esp + 0x60]
push eax
push ebx
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x403f9f
cmp word [esp + 0x7c], bp
je 0x403f9f
lea ecx, [esp + 0x7c]
push ecx
push str.SPDRP_SERVICE___s__n
call fcn.004454c0
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, bp
jne 0x403f90
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 + 0x38]
push edx
push 7
lea eax, [esp + 0x60]
push eax
push ebx
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x403fff
cmp word [esp + 0x7c], bp
je 0x403fff
lea eax, [esp + 0x7c]
lea edx, [edi + 0x820]
mov ecx, eax
sub edx, ecx
jmp 0x403ff0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bp
jne 0x403ff0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
cmp dword [eax], 0x17
jl 0x40406f
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 + 0x38]
push eax
push 0x24
lea ecx, [esp + 0x60]
push ecx
push ebx
mov dword [esp + 0x34], 0x104
call esi
test eax, eax
je 0x40406f
cmp word [esp + 0x7c], bp
je 0x40406f
lea eax, [esp + 0x7c]
lea edx, [edi + 0xc7c]
mov ecx, eax
sub edx, ecx
jmp 0x404060
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bp
jne 0x404060
push ebp
push 0x104
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x58]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x4040b1
cmp word [esp + 0x7c], bp
je 0x4040b1
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, bp
jne 0x4040a2
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0xa
lea edx, [esp + 0x60]
push edx
push ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x34], 4
call esi
cmp eax, ebp
je 0x4040e6
mov eax, dword [esp + 0x40]
mov dword [edi + 0xc70], eax
push 0xf003f
push 2
push ebp
push 1
lea ecx, [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [esp + 0x34], eax
cmp eax, 0xffffffff
je 0x404c3e
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebp
push str.InfPath
push eax
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x5c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40435d
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, bp
jne 0x404150
cmp word [esi], bp
je 0x40435d
push 0x206
lea eax, [esp + 0x28a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x290], dx
call fcn.00453450
push esi
mov esi, dword [esp + 0x38]
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 ebp
lea eax, [esp + 0x288]
push eax
call fcn.004496a0
test al, al
je 0x40435d
push 0x4fc8
call fcn.004534f0
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xab0], 1
cmp eax, ebp
je 0x4041f7
push ebp
lea ecx, [esp + 0x288]
push ecx
mov ecx, eax
call fcn.00446910
mov esi, eax
jmp 0x4041f9
xor esi, esi
mov dword [esp + 0xab0], 0xffffffff
cmp esi, ebp
je 0x40435d
push 0x206
lea eax, [esp + 0x69a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x6a0], dx
call fcn.00453450
add esp, 0xc
lea ecx, [esp + 0x694]
push ecx
push 2
push str.Version
push str.Version
mov ecx, esi
call fcn.004468b0
test eax, eax
jne 0x404266
lea edx, [esp + 0x694]
push edx
push 2
push str.DriverVer
push str.Version
mov ecx, esi
call fcn.004468b0
mov ecx, esi
call fcn.00447670
push esi
call fcn.004534ca
lea eax, [esp + 0x698]
push 0x2e
xor ebx, ebx
push eax
mov dword [esp + 0x2c], ebx
xor edi, edi
xor ebp, ebp
call fcn.00453bad
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4042a8
lea ecx, [esi + 2]
push ecx
call fcn.00453b7c
add esp, 4
xor edx, edx
mov ebx, eax
mov word [esi], dx
lea eax, [esp + 0x694]
push 0x2e
push eax
call fcn.00453bad
mov esi, eax
add esp, 8
test esi, esi
je 0x4042d3
lea ecx, [esi + 2]
push ecx
call fcn.00453b7c
add esp, 4
xor edx, edx
mov ebp, eax
mov word [esi], dx
lea eax, [esp + 0x694]
push 0x2e
push eax
call fcn.00453bad
mov esi, eax
add esp, 8
test esi, esi
je 0x4042fe
lea ecx, [esi + 2]
push ecx
call fcn.00453b7c
add esp, 4
xor edx, edx
mov edi, eax
mov word [esi], dx
lea eax, [esp + 0x694]
lea edx, [eax + 2]
jmp 0x404310
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404310
sub eax, edx
sar eax, 1
je 0x404333
lea eax, [esp + 0x694]
push eax
call fcn.00453b7c
add esp, 4
jmp 0x404337
mov eax, dword [esp + 0x20]
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 0x4045a7
push 8
call fcn.004534f0
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xab0], 2
test eax, eax
je 0x40438e
mov ecx, eax
call fcn.004186a0
jmp 0x404390
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xab0], 0xffffffff
call fcn.004186d0
test eax, eax
jne 0x40458f
mov esi, dword [0x46adcc]
mov edi, dword [0x46add0]
mov ebx, dword [0x46add4]
mov ebp, dword [0x46add8]
push 0x206
push eax
lea ecx, [esp + 0x69e]
push ecx
mov word [esp + 0x6a0], ax
call fcn.00453450
mov ecx, dword [0x46b188]
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 [0x46b18c]
mov dword [eax + 4], ecx
mov ecx, dword [0x46b190]
mov dword [eax + 8], ecx
mov ecx, dword [0x46b194]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x46b198]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [0x46addc]
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 + 0x58]
push str.ProviderMicrosoft.Base.PnP
call fcn.00418a30
lea ecx, [esp + 0x694]
push ecx
push str.PKEY_PNPX_WIA_FRIENDLY_NAME____s__n
call fcn.004454c0
add esp, 8
cmp word [esp + 0x694], 0
je 0x404495
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 0x404481
jmp 0x40458f
push str.Still_nothing__try_registry_n
call fcn.004454c0
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.00453450
add esp, 0xc
cmp esi, 0xffffffff
je 0x404524
push 0x20019
lea eax, [esp + 0x288]
push eax
push str.FriendlyName
push 0x46b804
push esi
call fcn.00451b90
add esp, 0x14
test eax, eax
je 0x40451d
lea ecx, [esp + 0x284]
push ecx
push str.FriendlyName____s__n
call fcn.004454c0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esp + 0x284], 0
je 0x404561
push str.found__use_this_one_n
call fcn.004454c0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x288]
mov ecx, eax
add esp, 4
sub edx, ecx
jmp 0x404550
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x404550
jmp 0x40458f
push str.still_not_found_use_driver_name_n
call fcn.004454c0
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x208]
add esp, 4
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x404580
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4045a7
mov ecx, esi
call fcn.004186b0
push esi
call fcn.004534ca
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.00451b90
add esp, 0x14
test eax, eax
je 0x404617
lea ecx, [esp + 0x7c]
push ecx
push str.ScannerAddress____s__n
call fcn.004454c0
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 0x404606
jmp 0x40461b
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
push str.Image
push ebp
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x404795
cmp word [edi + 0x108c], ax
lea ebx, [edi + 0x108c]
jne 0x404795
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x28e]
push eax
mov word [esp + 0x290], dx
call fcn.00453450
mov esi, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x284]
push ecx
mov ecx, dword [esi + 4]
call fcn.0044b540
lea edx, [esp + 0x284]
push edx
push str.wszCommonDocFolder____s__n
call fcn.004454c0
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x6a6]
push ecx
mov word [esp + 0x6a8], ax
call fcn.00453450
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.004454c0
mov ecx, dword [esi + 4]
add esp, 0x2c
push 0
lea edx, [esp + 0x698]
push edx
call fcn.004496a0
test al, al
je 0x404795
push 0x4435c
call fcn.004534f0
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xab0], 3
test eax, eax
je 0x40472d
push 0
push 0
lea ecx, [esp + 0x69c]
push ecx
mov ecx, eax
call fcn.0040a7b0
mov esi, eax
jmp 0x40472f
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.00409a50
test eax, eax
je 0x404781
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 0x404760
lea edx, [esp + 0x7c]
push edx
push str.ScannerAddress____s__n
call fcn.004454c0
add esp, 8
test esi, esi
je 0x404795
mov ecx, esi
call fcn.0040a950
push esi
call fcn.004534ca
add esp, 4
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.system
push ebp
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x404907
push 8
call fcn.004534f0
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xab0], 4
test eax, eax
je 0x4047dc
mov ecx, eax
call fcn.004186a0
jmp 0x4047de
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xab0], 0xffffffff
call fcn.004186d0
test eax, eax
jne 0x4048ef
mov esi, dword [0x46adcc]
mov edi, dword [0x46add0]
mov ebx, dword [0x46add4]
mov ebp, dword [0x46add8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x28e]
push edx
mov word [esp + 0x290], cx
call fcn.00453450
mov ecx, dword [0x46aef8]
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 [0x46aefc]
mov dword [eax + 4], ecx
mov ecx, dword [0x46af00]
mov dword [eax + 8], ecx
mov ecx, dword [0x46af04]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x46af08]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x34]
add ecx, 0xe84
push ecx
mov ecx, dword [0x46addc]
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 + 0x58]
push str.ProviderMicrosoft.Base.PnP
call fcn.00418a30
lea edx, [esp + 0x284]
push edx
push str.PKEY_PNPX_Manufacturer____s__n
call fcn.004454c0
add esp, 8
cmp word [esp + 0x284], 0
je 0x4048ef
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x284]
add edx, 0x618
mov ecx, eax
sub edx, ecx
jmp 0x4048e0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4048e0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x404907
mov ecx, esi
call fcn.004186b0
push esi
call fcn.004534ca
add esp, 4
mov edx, dword [esp + 0x14]
cmp word [edx + 0x1294], 0x57
jne 0x404c52
mov eax, edx
cmp word [eax + 0x1296], 0x53
jne 0x404c52
mov ecx, edx
cmp word [ecx + 0x1298], 0x44
jne 0x404c52
push 8
call fcn.004534f0
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xab0], 5
test eax, eax
je 0x40495f
mov ecx, eax
call fcn.004186a0
jmp 0x404961
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xab0], 0xffffffff
call fcn.004186d0
test eax, eax
jne 0x404c24
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
cmp dword [eax], 0x15
jne 0x404c24
mov ecx, dword [0x46addc]
mov esi, dword [0x46adcc]
mov edi, dword [0x46add0]
mov ebp, dword [0x46add4]
mov ebx, dword [0x46add8]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x496]
push eax
mov dword [esp + 0x84], ecx
mov word [esp + 0x498], dx
call fcn.00453450
mov edx, dword [esp + 0x20]
add esp, 0xc
push 1
push 0
lea ecx, [esp + 0x494]
push ecx
mov ecx, dword [0x46aef8]
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x46aefc]
mov dword [eax + 4], ecx
mov ecx, dword [0x46af00]
mov dword [eax + 8], ecx
mov ecx, dword [0x46af04]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x46af08]
add edx, 0xe84
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x9c]
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
push str.ProviderMicrosoft.Base.PnP
mov dword [eax + 0x10], edx
call fcn.00418a30
lea eax, [esp + 0x48c]
push eax
push str.PKEY_PNPX_Manufacturer____s__n
call fcn.004454c0
add esp, 8
cmp word [esp + 0x48c], 0
je 0x404a8f
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48c]
add edx, 0x618
mov ecx, eax
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x404a80
mov ecx, dword [0x46af20]
push 1
push 0
lea eax, [esp + 0x494]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x46af28]
xor edx, edx
mov word [esp + 0x4ac], dx
mov edx, dword [0x46af24]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [0x46af2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x46af30]
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 + 0x58]
push str.ProviderMicrosoft.Base.PnP
call fcn.00418a30
lea edx, [esp + 0x48c]
push edx
push str.PKEY_PNPX_ModelName____s__n
call fcn.004454c0
add esp, 8
cmp word [esp + 0x48c], 0
je 0x404b73
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48c]
mov ecx, eax
sub edx, ecx
jmp 0x404b40
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x404b40
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 0x404b64
mov ecx, dword [0x46b174]
push 1
push 0
lea eax, [esp + 0x494]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x46b17c]
xor edx, edx
mov word [esp + 0x4ac], dx
mov edx, dword [0x46b178]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [0x46b180]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x46b184]
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 + 0x58]
push str.ProviderMicrosoft.Base.PnP
call fcn.00418a30
lea edx, [esp + 0x48c]
push edx
push str.PKEY_PNPX_WSDMON_PRINT_PORT_NAME____s__n
call fcn.004454c0
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 [eax + ecx], dx
add ecx, 2
test dx, dx
jne 0x404c15
mov esi, dword [esp + 0x20]
test esi, esi
je 0x404c52
mov ecx, esi
call fcn.004186b0
push esi
call fcn.004534ca
add esp, 4
jmp 0x404c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiOpenDevRegKey_failed____ld__n
call fcn.004454c0
add esp, 8
mov esi, dword [esp + 0x14]
cmp word [esi], 0
je 0x404c6a
push esi
push str.pDevData__wszDeviceName____s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0x208], 0
lea eax, [esi + 0x208]
je 0x404c88
push eax
push str.pDevData__wszDriverName____s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0x410], 0
lea eax, [esi + 0x410]
je 0x404ca6
push eax
push str.pDevData__wszHardwareId____s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0x618], 0
lea eax, [esi + 0x618]
je 0x404cc4
push eax
push str.pDevData__wszMFG___________s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0x820], 0
lea eax, [esi + 0x820]
je 0x404ce2
push eax
push str.pDevData__wszClass_________s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0x860], 0
lea eax, [esi + 0x860]
je 0x404d00
push eax
push str.pDevData__wszInfFile_______s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0xa68], 0
lea eax, [esi + 0xa68]
je 0x404d1e
push eax
push str.pDevData__wszRegDevice_____s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0xc7c], 0
lea eax, [esi + 0xc7c]
je 0x404d3c
push eax
push str.pDevData__wszContainerId_________s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0xe84], 0
lea eax, [esi + 0xe84]
je 0x404d5a
push eax
push str.pDevData__wszDeviceInstanceId_________s__n
call fcn.004454c0
add esp, 8
cmp word [esi + 0x108c], 0
lea eax, [esi + 0x108c]
je 0x404d78
push eax
push str.pDevData__wszPort____s__n
call fcn.004454c0
add esp, 8
mov eax, dword [esi + 0xc70]
push eax
push str.pDevData__dwConfigFlag_______x__n
call fcn.004454c0
mov ecx, dword [esi + 0xc74]
push ecx
push str.pDevData__dwDrvVerHigh_______x__n
call fcn.004454c0
mov edx, dword [esi + 0xc78]
push edx
push str.pDevData__dwDrvVerLow________x__n
call fcn.004454c0
mov ecx, dword [esp + 0x60]
add esp, 0x18
push 0xffffffffffffffff
push 1
push esi
call fcn.00403750
mov ebp, dword [esp + 0xabc]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push 0
push edi
push ebp
lea eax, [esp + 0x58]
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00401fe0
test eax, eax
jne 0x4039b1
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp byte [esi + 0x444], 0
jne 0x404e0e
push 0
push 0
push 2
mov ecx, esi
call fcn.0040bbd0
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.00453432
add esp, 0xaa0
ret 0x14