Function at 0x437ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, 4
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x464], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x460], eax
xor eax, eax
test ecx, ecx
lea ebx, [esi + 1]
cmove eax, edx
push eax
push esi
push esi
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0x458], eax
cmp eax, 0xffffffff
jne 0x437f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VNLProcessClassDevices:_couldnt_get_class_devices:_0x_08x
push ebx
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x430], esi
push ecx
xorps xmm0, xmm0
push 0
movups xmmword [ebp - 0x448], xmm0
push eax
movq qword [ebp - 0x438], xmm0
mov dword [ebp - 0x448], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4386f8
push edi
mov edi, dword [ebp + 0x1c]
mov ebx, 2
nop word [eax + eax]
push 0x20a
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x45c], 0
push 0
inc esi
mov dword [ebp - 0x450], 0
push eax
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x424], 0
call fcn.0040f160
add esp, 0xc
mov dword [ebp - 0x44c], 0x105
cmp dword [ebp + 0x14], 0
jne 0x437fec
push esi
push str.__Device_instance__d
push edi
push 2
call fcn.00443a00
add esp, 0x10
mov esi, dword [ebp - 0x458]
lea eax, [ebp - 0x450]
push eax
push 0
push 0
lea eax, [ebp - 0x448]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x438035
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x438035
push dword [ebp - 0x450]
push eax
push str.VNLProcessClassDevices:_couldnt_get_instance_id_length:_0x_08x__d
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x43869e
mov eax, dword [ebp - 0x450]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00476c18
mov ecx, eax
add esp, 4
mov dword [ebp - 0x45c], ecx
test ecx, ecx
jne 0x43806f
push str.VNLProcessClassDevices:_couldnt_allocate_ID_buffer
push 1
call fcn.004439a0
add esp, 8
jmp 0x43869e
mov eax, dword [ebp - 0x450]
add eax, eax
push eax
push 0
push ecx
call fcn.0040f160
mov ebx, dword [ebp - 0x45c]
lea eax, [ebp - 0x450]
add esp, 0xc
push eax
push dword [ebp - 0x450]
lea eax, [ebp - 0x448]
push ebx
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x4380c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VNLProcessClassDevices:_Couldnt_get_device_instance_ID:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x438699
cmp dword [ebp + 0x14], 0
jne 0x4380db
push ebx
push str.__Device_instance_ID:__S
push edi
push 2
call fcn.00443a00
add esp, 0x10
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x43813d
mov esi, dword [eax]
lea edi, [eax + 4]
test esi, esi
je 0x438696
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4380f7
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ebx
call fcn.0040cc0f
add esp, 0xc
test eax, eax
je 0x438123
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x4380f2
jmp 0x438696
push esi
push ebx
push str.VNLProcessClassDevices:_matched_device:__S__S
push 2
call fcn.004439a0
mov esi, dword [ebp - 0x458]
add esp, 0x10
mov edi, dword [ebp + 0x1c]
cmp dword [ebp - 0x460], 0
je 0x4382a5
lea eax, [ebp - 0x420]
mov dword [ebp - 0x428], 0
push eax
push 0
push 0
push 0
push 4
lea eax, [ebp - 0x448]
mov dword [ebp - 0x420], 0
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x4381a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4381a5
push dword [ebp - 0x420]
push eax
push str.VNLProcessClassDevices:_couldnt_get_service_name_length:_0x_08x__d
push 4
call fcn.004439a0
add esp, 0x10
jmp 0x438699
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00476c18
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4381de
push str.VNLProcessClassDevices:_couldnt_alloc_service_name_buffer
push 1
call fcn.004439a0
add esp, 8
jmp 0x438699
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x428]
push ebx
push eax
push 4
lea eax, [ebp - 0x448]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x43822e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x420]
push eax
push str.VNLProcessClassDevices:_couldnt_get_service_name:_0x_08x__d
push 1
call fcn.004439a0
push ebx
call fcn.00476c21
add esp, 0x14
jmp 0x438699
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x438254
push eax
push str.VNLProcessClassDevices:_service_name_has_unexpected_type:_0x_08x
push 1
call fcn.004439a0
push ebx
call fcn.00476c21
add esp, 0x10
jmp 0x438699
mov eax, dword [ebp - 0x460]
mov esi, dword [eax]
lea edi, [eax + 4]
test esi, esi
je 0x43827a
push ebx
push esi
call fcn.0040ca9a
add esp, 8
test eax, eax
je 0x438288
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x438263
push ebx
call fcn.00476c21
add esp, 4
jmp 0x438696
push ebx
push esi
push str.VNLProcessClassDevices:_matched_service:__S__S
push 2
call fcn.004439a0
push ebx
call fcn.00476c21
mov ebx, dword [ebp - 0x45c]
add esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x43837b
mov edi, dword [ebp + 0x1c]
lea eax, [ebp - 0x448]
mov esi, dword [ebp - 0x434]
push edi
push eax
push dword [ebp - 0x458]
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0
call fcn.004378d0
add esp, 0xc
lea eax, [ebp - 0x424]
push 0
push esi
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x43834a
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push esi
push str.____devInst:__d_status:__d_prob:__d
push edi
push 2
call fcn.00443a00
push edi
push dword [ebp - 0x420]
call fcn.004375c0
add esp, 0x20
test dword [ebp - 0x420], 0x400
je 0x438699
push edi
push dword [ebp - 0x424]
call fcn.00437240
add esp, 8
jmp 0x438699
cmp eax, 0xd
jne 0x438364
push str.____devInst:__d__no_such_node_
push edi
push 2
call fcn.00443a00
add esp, 0xc
jmp 0x438699
push eax
push esi
push str.____devInst:__d_couldnt_poll_status:_0x_08x
push edi
push 1
call fcn.00443a00
add esp, 0x14
jmp 0x438699
cmp dword [ebp + 0x18], 0
je 0x438592
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x428], 0
push 0
push eax
mov dword [ebp - 0x420], 0
call fcn.0040f160
mov esi, dword [ebp - 0x458]
lea eax, [ebp - 0x420]
add esp, 0xc
push eax
push 0
push 0
push 0
push 9
lea eax, [ebp - 0x448]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x4383fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4383fc
push dword [ebp - 0x420]
push eax
push str.VNLProcessClassDevices:_couldnt_get_driver_name_length:_0x_08x__d
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x438592
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00476c18
mov edi, eax
add esp, 4
test edi, edi
jne 0x438435
push str.VNLProcessClassDevices:_couldnt_alloc_driver_name_buffer
push 1
call fcn.004439a0
add esp, 8
jmp 0x438592
mov eax, dword [ebp - 0x420]
add eax, eax
push eax
push 0
push edi
call fcn.0040f160
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x428]
push edi
push eax
push 9
lea eax, [ebp - 0x448]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x438499
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x420]
push eax
push str.VNLProcessClassDevices:_couldnt_get_driver_name:_0x_08x__d
push 1
call fcn.004439a0
push edi
call fcn.00476c21
add esp, 0x14
jmp 0x438592
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x4384bf
push eax
push str.VNLProcessClassDevices:_driver_name_has_unexpected_type:_0x_08x
push 1
call fcn.004439a0
push edi
call fcn.00476c21
add esp, 0x10
jmp 0x438592
push edi
push str.SYSTEMCurrentControlSetControlClass_s
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
push edi
mov esi, eax
call fcn.00476c21
add esp, 0x14
cmp esi, 0x104
ja 0x43857c
lea eax, [ebp - 0x454]
mov dword [ebp - 0x42c], 0
push eax
push 1
push 0
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x438520
push eax
push str.VNLProcessClassDevices:_error_opening_driver_key:_0x_08x
jmp 0x438588
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.InfPath
push dword [ebp - 0x454]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x454]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x438562
push esi
push str.VNLProcessClassDevices:_error_querying_inf_key:_0x_08x
jmp 0x438588
mov eax, dword [ebp - 0x42c]
cmp eax, 1
je 0x438575
push eax
push str.VNLProcessClassDevices:_inf_name_has_unexpected_type:_0x_08x
jmp 0x438588
mov esi, 1
jmp 0x438598
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VNLProcessClassDevices:_error_creating_inf_path:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
mov esi, dword [ebp - 0x424]
push ebx
push str.VNLProcessClassDevices:_removing_device:__S
push 2
call fcn.004439a0
mov ebx, dword [ebp - 0x458]
lea eax, [ebp - 0x448]
add esp, 0xc
push eax
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x4385dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VNLProcessClassDevices:_Failed_to_remove_device:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x438670
push pe_nt_image_headers32
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0040f160
push str.VNLProcessClassDevices:_SetupDiCallClassInstaller_success
push 0x10
call fcn.004439a0
add esp, 0x14
mov dword [ebp - 0x130], pe_nt_image_headers32
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x448]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsA]
test eax, eax
jne 0x43863a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VNLProcessClassDevices:_Failed_to_obtain_class_remove_result:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x438670
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push str.VNLProcessClassDevices:_Remove_result:_Flags_0x_08x_FlagsEx_0x_08x
push 2
call fcn.004439a0
add esp, 0x10
test dword [ebp - 0x12c], 0x180
je 0x438670
push str.VNLProcessClassDevices:_reboot_required
push 1
call fcn.004439a0
add esp, 8
test esi, esi
je 0x438696
lea eax, [ebp - 0x41c]
push eax
push str.VNLProcessClassDevices:_deleting_device_inf:__S
push 2
call fcn.004439a0
lea eax, [ebp - 0x41c]
push eax
call fcn.00444cd0
add esp, 0x10
mov edi, dword [ebp + 0x1c]
mov ebx, 2
push dword [ebp - 0x45c]
call fcn.00476c21
mov esi, dword [ebp - 0x468]
lea eax, [ebp - 0x448]
add esp, 4
mov dword [ebp - 0x430], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x448], xmm0
mov dword [ebp - 0x448], 0x1c
push eax
push esi
push dword [ebp - 0x458]
movq qword [ebp - 0x438], xmm0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x437f90
lea ebx, [eax + 1]
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x43871f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.enum_failed_for:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
xor ebx, ebx
jmp 0x43872e
push str.done_enumerating_list
push 0x10
call fcn.004439a0
add esp, 8
push dword [ebp - 0x458]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test eax, eax
jne 0x43874d
push str.VNLProcessClassDevices:_couldnt_destroy_list
push 1
call fcn.004439a0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret