Function at 0x4088f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x441e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x45878c]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45878c]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
xor ebp, ebp
mov dword [esp + 0x24], ebp
call fcn.0041068e
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40894f
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 1
mov dword [esp + 0x14c], ebp
mov dword [esp + 0x28], eax
jmp 0x408980
push eax
push str.SystemControlSet0
lea ecx, [esp + 0x20]
push str._s_0.2d
push ecx
call fcn.00404ca0
mov eax, dword [esp + 0x28]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x408b56
push str.ServicesESudisk
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00402810
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov eax, dword [esp + 0x30]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408a00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x408b56
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebp
push str.Type
push edx
mov dword [esp + 0x34], 1
call esi
mov ecx, dword [esp + 0x14]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebp
push str.ErrorControl
push ecx
mov dword [esp + 0x34], ebp
call esi
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push ebp
push str.Start
push eax
mov dword [esp + 0x34], ebp
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.ControlClass4D36E967_E325_11CE_BFC1_08002BE10318
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00402810
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408ab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x408b56
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
push str.UpperFilters
push ecx
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408b56
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push str.ESudisk
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00407210
test eax, eax
jne 0x408b43
mov eax, dword [esp + 0x20]
mov ecx, dword [str.ESudisk]
mov edx, dword [0x4465f4]
mov dword [esp + eax + 0x3b], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + eax + 0x3f], edx
mov edx, dword [esp + 0x14]
add eax, 7
mov dword [esp + 0x20], eax
mov byte [esp + eax + 0x3c], 0
add eax, 1
push eax
lea eax, [esp + 0x40]
push eax
push ecx
push ebp
push str.UpperFilters
push edx
call esi
test eax, eax
jne 0x408b4b
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, 0x14
mov dword [esp + 0x28], eax
jl 0x408980
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0042d47b
add esp, 0x13c
ret 8