Function at 0x40ed10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d148
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x5a40f0]
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 0x57eac4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x40f387
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.00405590
mov dword [ebp - 4], 0
push str.Device_sscdmdm
lea ecx, [ebp - 0xb0]
call fcn.00405590
mov byte [ebp - 4], 1
push str.Device_ssaemdm
lea ecx, [ebp - 0xac]
call fcn.00405590
mov byte [ebp - 4], 2
push str.Device_ssadmdm
lea ecx, [ebp - 0xa8]
call fcn.00405590
mov dword [ebp - 4], 3
lea edx, [ebp - 0xc4]
push edx
call fcn.004134c0
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 0x40f2bc
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 0x40f26c
mov byte [ebp - 0x111], 0
mov dword [ebp - 0x118], 0
jmp 0x40eed1
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x118], 4
jge 0x40f26c
movzx edx, byte [ebp - 0x111]
cmp edx, 1
jne 0x40eeef
jmp 0x40f26c
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00405590
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x118]
lea ecx, [ebp + ecx*4 - 0xb4]
call fcn.00401bc0
push eax
lea edx, [ebp - 0x134]
push edx
lea ecx, [ebp - 0x11c]
call fcn.0040d450
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.00401db0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x134]
call fcn.00401dd0
mov edx, dword [ebp - 0x118]
lea ecx, [ebp + edx*4 - 0xb4]
call fcn.00401be0
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040d310
test eax, eax
jne 0x40f258
mov byte [ebp - 0x111], 1
lea ecx, [ebp - 0x120]
call fcn.00410450
lea eax, [ebp - 0x8e]
push eax
call fcn.0052496d
add esp, 4
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], 0
jmp 0x40efc9
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebp - 0x164]
add ecx, 0x10c
call fcn.0040f7e0
cmp dword [ebp - 0x128], eax
jge 0x40f258
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [ebp - 0x164]
add ecx, 0x10c
call fcn.0040f800
cmp dword [eax], 0xffffffff
je 0x40f06a
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x164]
add ecx, 0x10c
call fcn.0040f800
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x124]
jne 0x40f065
mov dword [ebp - 0x138], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.00401dd0
mov dword [ebp - 4], 0xffffffff
push fcn.00401dd0
push 4
push 4
lea edx, [ebp - 0xb4]
push edx
call fcn.0052523f
mov eax, dword [ebp - 0x138]
jmp 0x40f38a
jmp 0x40efba
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x164]
call fcn.0040f3b0
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
jle 0x40f149
mov ecx, dword [ebp - 0x128]
cmp ecx, dword [ebp - 0x12c]
je 0x40f149
mov edx, dword [ebp - 0x12c]
push edx
mov ecx, dword [ebp - 0x164]
add ecx, 0x10c
call fcn.0040f800
cmp dword [eax], 0xffffffff
je 0x40f144
lea ecx, [ebp - 0x130]
call fcn.00401f40
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.00405160
add esp, 0x10
mov dword [ebp - 0x13c], 0xffffffff
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x130]
call fcn.00401dd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.00401dd0
mov dword [ebp - 4], 0xffffffff
push fcn.00401dd0
push 4
push 4
lea eax, [ebp - 0xb4]
push eax
call fcn.0052523f
mov eax, dword [ebp - 0x13c]
jmp 0x40f38a
jmp 0x40efba
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x164]
add ecx, 0x10c
call fcn.0040f800
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, 0x13c
call fcn.00410330
mov edx, dword [eax]
mov dword [ebp - 0x120], edx
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x164]
add ecx, 0x13c
call fcn.0040fb70
push eax
lea ecx, [ebp - 0x120]
call fcn.004104b0
movzx ecx, al
test ecx, ecx
je 0x40f1e6
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, 0x13c
call fcn.0040fba0
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x154]
call fcn.00412080
push eax
lea ecx, [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0x164]
add ecx, 0x13c
call fcn.004120c0
push 0
push 0x64
push str.Added__
push 0xfbd
mov edx, dword [ebp - 0x124]
push edx
call fcn.0040e040
mov ecx, eax
call fcn.00405040
push eax
call fcn.0040b6e0
add esp, 0x18
mov eax, dword [ebp - 0x98]
add eax, 1
mov dword [ebp - 0x98], eax
jmp 0x40f258
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.00401dd0
jmp 0x40eec2
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 0x40ee52
lea ecx, [ebp - 0xbc]
push ecx
call fcn.004134c0
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.004134a0
add esp, 0x10
call fcn.00528b70
cwde
movsx ecx, word [ebp - 0xcc]
sub ecx, eax
mov word [ebp - 0xcc], cx
movsx edx, word [ebp + 8]
cmp edx, 1
je 0x40f321
movsx eax, word [ebp + 8]
test eax, eax
je 0x40f35e
movsx ecx, word [ebp - 0xcc]
test ecx, ecx
jg 0x40f35e
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.00401dd0
push 4
push 4
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0052523f
mov eax, dword [ebp - 0x160]
jmp 0x40f38a
cmp dword [ebp - 0xa4], 0
jne 0x40edee
mov dword [ebp - 4], 0xffffffff
push fcn.00401dd0
push 4
push 4
lea edx, [ebp - 0xb4]
push edx
call fcn.0052523f
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.005239af
mov esp, ebp
pop ebp
ret 4