Function at 0x40ac10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d851
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x468cb0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x468cb0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push 0x45b844
push eax
mov dword [esp + 0x30], str.CRegInfo::Win7_DeleteAllRmb
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 1
call fcn.0040a3d0
mov dword [esp + 0x268], 0
mov eax, dword [0x46d77c]
push dword [eax + 0x14]
push dword [eax + 0x10]
lea eax, [esp + 0x38]
push str.OS_Version:__d__d_n
push eax
call fcn.0040a3d0
mov eax, dword [0x46d77c]
add esp, 0x18
cmp dword [eax + 0x10], 6
jb 0x40b014
cmp dword [eax + 0x14], 1
jb 0x40b014
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push str.SYSTEMCurrentControlSetControlDeviceOverrides_
lea ecx, [esp + 0x3c]
mov byte [esp + 0x264], 1
call fcn.00401c90
mov byte [esp + 0x260], 2
mov eax, dword [0x46d77c]
mov edx, 0xf013f
cmp dword [eax], 0
mov ecx, 0xf003f
cmovne ecx, edx
push ecx
push dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040c130
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
test eax, eax
jne 0x40afe6
xor eax, eax
push 0x206
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
xor edi, edi
call fcn.00432320
add esp, 0xc
mov dword [esp + 0x34], 0x104
jmp 0x40ad50
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x58]
push eax
push edi
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40afbe
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x30]
push str.EnumKey:__d__s_n
push eax
call fcn.0040a3d0
add esp, 0x10
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.00401c90
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push str.szInfo:__s_n
push eax
call fcn.0040a3d0
mov esi, dword [esp + 0x20]
add esp, 0xc
cmp dword [esi - 0xc], 0
jl 0x40af7f
push str.0BDA
push esi
call fcn.004301e9
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40ae0f
sub eax, esi
sar eax, 1
js 0x40ae0f
push str.Delete_USB_Reader_n
lea eax, [esp + 0x2c]
push 0x45b934
push eax
call fcn.0040a3d0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bf80
mov esi, dword [esp + 0x14]
jmp 0x40af80
cmp dword [esi - 0xc], 0
jl 0x40af7f
push str.10EC
push esi
call fcn.004301e9
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40ae63
sub eax, esi
sar eax, 1
js 0x40ae63
push str.Delete_PCIE_Reader_n
lea eax, [esp + 0x2c]
push 0x45b934
push eax
call fcn.0040a3d0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bf80
mov esi, dword [esp + 0x14]
jmp 0x40af80
cmp dword [esi - 0xc], 0
jl 0x40af7f
push str.1642
push esi
call fcn.004301e9
add esp, 8
test eax, eax
je 0x40aedd
mov esi, dword [esp + 0x14]
sub eax, esi
sar eax, 1
js 0x40aee1
cmp dword [esi - 0xc], 0
jl 0x40af7f
push str.6593
push esi
call fcn.004301e9
add esp, 8
test eax, eax
je 0x40aedd
mov esi, dword [esp + 0x14]
sub eax, esi
sar eax, 1
js 0x40aee1
push str.Delete_Lenovo_Reader__1642_6593__n
lea eax, [esp + 0x2c]
push 0x45b934
push eax
call fcn.0040a3d0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bf80
mov esi, dword [esp + 0x14]
jmp 0x40af80
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x40af7f
push str.RSUSBSTOR
push esi
call fcn.004301e9
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40af32
sub eax, esi
sar eax, 1
js 0x40af32
push str.Delete_USB_Disk_n
lea eax, [esp + 0x2c]
push 0x45b934
push eax
call fcn.0040a3d0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bf80
mov esi, dword [esp + 0x14]
jmp 0x40af80
cmp dword [esi - 0xc], 0
jl 0x40af7f
push str.RSPCIESTOR
push esi
call fcn.004301e9
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40af7f
sub eax, esi
sar eax, 1
js 0x40af7f
push str.Delete_PCIE_Disk_n
lea eax, [esp + 0x2c]
push 0x45b934
push eax
call fcn.0040a3d0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bf80
mov esi, dword [esp + 0x14]
jmp 0x40af80
inc edi
push 0x104
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00432320
add esi, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x34], 0x104
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ad50
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ad50
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40afde
push esi
call edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x260], 1
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40b009
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40b014
push esi
call edi
lea eax, [esp + 0x28]
push str.EXIT________n
push eax
call fcn.0040a3d0
add esp, 8
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042f518
mov esp, ebp
pop ebp
ret