Function at 0x41aa90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc9cd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x50c080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x22
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.0040df90
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov eax, ecx
mov edi, dword [ebp - 0x1c]
sub eax, edi
cmp eax, 0x14
jb 0x41ab27
cmp ecx, 7
lea esi, [ebp - 0x2c]
lea eax, [edi + 0x14]
cmova esi, dword [ebp - 0x2c]
push 0x28
mov dword [ebp - 0x1c], eax
push str.MBAMInstallerService
lea eax, [esi + edi*2]
push eax
call fcn.00492c90
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x28], ax
jmp 0x41ab3b
push 0x14
push str.MBAMInstallerService
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push 0x14
call fcn.0040d970
mov ecx, dword [ebp - 0x18]
mov eax, ecx
mov edi, dword [ebp - 0x1c]
sub eax, edi
cmp eax, 0xb
jb 0x41ab76
cmp ecx, 7
lea esi, [ebp - 0x2c]
lea eax, [edi + 0xb]
cmova esi, dword [ebp - 0x2c]
push 0x16
mov dword [ebp - 0x1c], eax
push str.Parameters
lea eax, [esi + edi*2]
push eax
call fcn.00492c90
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x16], ax
jmp 0x41ab8a
push 0xb
push str.Parameters
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push 0xb
call fcn.0040d970
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x41ac79
cmp esi, 2
je 0x41ad5e
lea ecx, [ebp - 0x4c]
call fcn.00467cf0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41abd6
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x461
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Failed_to_open_service_parameters_registry:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b750
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x38]
add esp, 4
cmp ecx, 7
jbe 0x41ad5e
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ac67
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adc2
push ecx
push edx
call fcn.00490f7d
add esp, 8
or esi, 0xffffffff
jmp 0x41ad6f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 4
push eax
push 0
push 0
push str.ErrorStatus
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x41ad63
lea ecx, [ebp - 0x4c]
call fcn.00467cf0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41acc2
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4ec858
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x46b
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Failed_to_query_status_value__:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b750
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x38]
add esp, 4
cmp ecx, 7
jbe 0x41ad55
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ad4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adc7
push ecx
push edx
call fcn.00490f7d
add esp, 8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, 0xffffffff
jmp 0x41ad6f
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x41ada5
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ad9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adcc
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490c46
mov esp, ebp
pop ebp
ret
call fcn.004961af
call fcn.004961af
call fcn.004961af
int3