Function at 0x422f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5912b8
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x5f7100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0xa0], 0x80
mov dword [ebp - 0x98], 0
lea eax, [ebp - 0x9c]
push eax
push 1
push 0
push 0x5c4f10
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x4235d7
mov cx, word [ebp + 8]
mov word [ebp - 0xcc], cx
mov dword [ebp - 0xc8], 0x20
push str.Device_ssudmdm
lea ecx, [ebp - 0xb4]
call fcn.00418d50
mov dword [ebp - 4], 0
push str.Device_sscdmdm
lea ecx, [ebp - 0xb0]
call fcn.00418d50
mov byte [ebp - 4], 1
push str.Device_ssaemdm
lea ecx, [ebp - 0xac]
call fcn.00418d50
mov byte [ebp - 4], 2
push str.Device_ssadmdm
lea ecx, [ebp - 0xa8]
call fcn.00418d50
mov dword [ebp - 4], 3
lea edx, [ebp - 0xc4]
push edx
call fcn.004272e0
add esp, 4
mov dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x168], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
cmp dword [ebp - 0xa4], 0x103
je 0x42350c
mov dword [ebp - 0xc8], 0x20
mov dword [ebp - 0xa0], 0x80
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x4234bc
mov byte [ebp - 0x111], 0
mov dword [ebp - 0x118], 0
jmp 0x423121
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x118], 4
jge 0x4234bc
movzx edx, byte [ebp - 0x111]
cmp edx, 1
jne 0x42313f
jmp 0x4234bc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00418d50
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x118]
lea ecx, [ebp + ecx*4 - 0xb4]
call fcn.0042fb10
push eax
lea edx, [ebp - 0x134]
push edx
lea ecx, [ebp - 0x11c]
call fcn.00421580
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.00401d60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x134]
call fcn.00401d80
mov edx, dword [ebp - 0x118]
lea ecx, [ebp + edx*4 - 0xb4]
call fcn.0042f3a0
push eax
lea ecx, [ebp - 0x11c]
call fcn.00421440
test eax, eax
jne 0x4234a8
mov byte [ebp - 0x111], 1
lea ecx, [ebp - 0x120]
call fcn.004245f0
lea eax, [ebp - 0x8e]
push eax
call fcn.0055e566
add esp, 4
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], 0
jmp 0x423219
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebp - 0x164]
add ecx, 0x6cc
call fcn.0042f3b0
cmp dword [ebp - 0x128], eax
jge 0x4234a8
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [ebp - 0x164]
add ecx, 0x6cc
call fcn.0042f2a0
cmp dword [eax], 0xffffffff
je 0x4232ba
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x164]
add ecx, 0x6cc
call fcn.0042f2a0
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x124]
jne 0x4232b5
mov dword [ebp - 0x138], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.00401d80
mov dword [ebp - 4], 0xffffffff
push fcn.00401d80
push 4
push 4
lea edx, [ebp - 0xb4]
push edx
call fcn.0055e4ae
mov eax, dword [ebp - 0x138]
jmp 0x4235da
jmp 0x42320a
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x164]
call fcn.00423600
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
jle 0x423399
mov ecx, dword [ebp - 0x128]
cmp ecx, dword [ebp - 0x12c]
je 0x423399
mov edx, dword [ebp - 0x12c]
push edx
mov ecx, dword [ebp - 0x164]
add ecx, 0x6cc
call fcn.0042f2a0
cmp dword [eax], 0xffffffff
je 0x423394
lea ecx, [ebp - 0x130]
call fcn.00401e50
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
push str.Slot__d_is_for_COM_d._But_its_busy._Check_it__
lea edx, [ebp - 0x130]
push edx
call fcn.00418910
add esp, 0x10
mov dword [ebp - 0x13c], 0xffffffff
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x130]
call fcn.00401d80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.00401d80
mov dword [ebp - 4], 0xffffffff
push fcn.00401d80
push 4
push 4
lea eax, [ebp - 0xb4]
push eax
call fcn.0055e4ae
mov eax, dword [ebp - 0x13c]
jmp 0x4235da
jmp 0x42320a
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x164]
add ecx, 0x6cc
call fcn.0042f2a0
mov edx, dword [ebp - 0x124]
mov dword [eax], edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp - 0x164]
add ecx, 0x6fc
call fcn.004244d0
mov edx, dword [eax]
mov dword [ebp - 0x120], edx
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x164]
add ecx, 0x6fc
call fcn.00423d10
push eax
lea ecx, [ebp - 0x120]
call fcn.00424650
movzx ecx, al
test ecx, ecx
je 0x423436
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
push eax
lea ecx, [ebp - 0x14c]
push ecx
mov ecx, dword [ebp - 0x164]
add ecx, 0x6fc
call fcn.00423d40
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x154]
call fcn.00426080
push eax
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0x164]
add ecx, 0x6fc
call fcn.004260c0
push 0
push 0x64
push str.Added__
push 0xfbd
mov edx, dword [ebp - 0x124]
push edx
call fcn.00422320
mov ecx, eax
call fcn.00421ab0
push eax
call fcn.0041faa0
add esp, 0x18
mov eax, dword [ebp - 0x98]
add eax, 1
mov dword [ebp - 0x98], eax
jmp 0x4234a8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.00401d80
jmp 0x423112
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x174], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
jmp 0x4230a2
lea ecx, [ebp - 0xbc]
push ecx
call fcn.004272e0
add esp, 4
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.004272c0
add esp, 0x10
call fcn.00562800
cwde
movsx ecx, word [ebp - 0xcc]
sub ecx, eax
mov word [ebp - 0xcc], cx
movsx edx, word [ebp + 8]
cmp edx, 1
je 0x423571
movsx eax, word [ebp + 8]
test eax, eax
je 0x4235ae
movsx ecx, word [ebp - 0xcc]
test ecx, ecx
jg 0x4235ae
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x160], eax
mov dword [ebp - 4], 0xffffffff
push fcn.00401d80
push 4
push 4
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0055e4ae
mov eax, dword [ebp - 0x160]
jmp 0x4235da
cmp dword [ebp - 0xa4], 0
jne 0x42303e
mov dword [ebp - 4], 0xffffffff
push fcn.00401d80
push 4
push 4
lea edx, [ebp - 0xb4]
push edx
call fcn.0055e4ae
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c88f
mov esp, ebp
pop ebp
ret 4