Function at 0x4099e0
Capabilities:
Delete registry value
Get number of processors
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4608c2
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x47d88c]
xor eax, esp
mov dword [esp + 0x380], eax
push ebx
push esi
push edi
mov eax, dword [0x47d88c]
xor eax, esp
push eax
lea eax, [esp + 0x398]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00421f68
push eax
lea ecx, [esp + 0x3c]
call fcn.00401abe
xor ebx, ebx
push str.AutoPick
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3a4], ebx
call fcn.00401a7a
mov byte [esp + 0x3a0], 1
call fcn.00421f68
push eax
lea ecx, [esp + 0x1c]
call fcn.00401abe
mov byte [esp + 0x3a0], 2
push dword [esi + 0x50]
lea eax, [esp + 0x1c]
push str.SoftwarePrestoSoft_s_
push eax
call fcn.0040190e
mov eax, dword [esp + 0x34]
add esp, 0xc
push dword [eax - 0xc]
lea ecx, [esp + 0x1c]
push eax
call fcn.00407035
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebx
mov byte [esp + 0x3ac], 3
push dword [esp + 0x24]
mov dword [esp + 0x30], ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x409d19
lea esi, [esp + 0x2c]
call fcn.00404376
mov esi, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
cmp eax, ebx
jne 0x409d19
call fcn.00421f68
push eax
lea ecx, [esp + 0x40]
call fcn.00401abe
mov byte [esp + 0x3a0], 4
call fcn.00421f68
push eax
lea ecx, [esp + 0x28]
call fcn.00401abe
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
mov byte [esp + 0x3d0], 5
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x409d01
cmp dword [esp + 0x1c], ebx
jbe 0x409d01
cmp dword [esp + 0x1c], 0x64
jle 0x409d01
call fcn.00421f68
push eax
lea ecx, [esp + 0x14]
call fcn.00401abe
fldz
xor eax, eax
fstp qword [esp + 0x70]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x48], vtable.CMap_double__double__class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____char_const__.0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x11
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 0xa
mov byte [esp + 0x3a0], 7
xor edi, edi
cmp dword [esp + 0x1c], ebx
jbe 0x409ca5
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x188]
push eax
push ebx
push ebx
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x90]
push eax
push edi
push dword [esp + 0x3c]
mov dword [esp + 0x54], 0x104
mov dword [esp + 0x64], 0x208
mov byte [esp + 0x9c], bl
mov byte [esp + 0x1a4], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x409c96
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x14]
call fcn.00401d0f
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00409930
mov ecx, dword [esp + 0x40]
add ecx, 0xfffffff0
call fcn.00401b3a
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
je 0x409c96
push 0x400
push ebx
push eax
lea ecx, [esp + 0x7c]
call fcn.0040a6f4
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x18]
call fcn.00401a7a
mov byte [esp + 0x3a0], 8
fld qword [esp + 0x70]
fst qword [esp + 0x64]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jnp 0x409c68
push ecx
push ecx
fstp qword [esp]
call fcn.00447b80
fld qword [esp + 0x6c]
pop ecx
fsub st(1)
pop ecx
fsubp st(1)
mov esi, dword [esp + 0x14]
push ecx
push ecx
lea eax, [esp + 0x50]
fstp qword [esp]
call fcn.0040a354
push esi
mov ecx, eax
call fcn.00401d0f
mov byte [esp + 0x3a0], 7
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00401b3a
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x409b94
mov eax, dword [esp + 0x54]
lea ecx, [eax - 0x64]
cmp ecx, ebx
jle 0x409ce4
neg eax
sbb eax, eax
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x409ce4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x54]
call fcn.0040a10b
push dword [esp + 0x10]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [esp + 0x14], ebx
jne 0x409cb8
lea esi, [esp + 0x48]
mov byte [esp + 0x3a0], 6
call fcn.0040a18f
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401b3a
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.00401b3a
mov ecx, dword [esp + 0x3c]
add ecx, 0xfffffff0
call fcn.00401b3a
lea esi, [esp + 0x2c]
call fcn.00404376
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401b3a
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.00401b3a
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.00401b3a
mov ecx, dword [esp + 0x398]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.0044111a
mov esp, ebp
pop ebp
ret