Function at 0x41ab70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc11d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x50b080]
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 0x41ac07
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.004923e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x28], ax
jmp 0x41ac1b
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 0x41ac56
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.004923e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x16], ax
jmp 0x41ac6a
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 0x41ad59
cmp esi, 2
je 0x41ae3e
lea ecx, [ebp - 0x4c]
call fcn.00467d30
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41acb6
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x46f
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
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.0041b830
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x38]
add esp, 4
cmp ecx, 7
jbe 0x41ae3e
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ad47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aea2
push ecx
push edx
call fcn.004906cd
add esp, 8
or esi, 0xffffffff
jmp 0x41ae4f
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 0x41ae43
lea ecx, [ebp - 0x4c]
call fcn.00467d30
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41ada2
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x479
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
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.0041b830
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x38]
add esp, 4
cmp ecx, 7
jbe 0x41ae35
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ae2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aea7
push ecx
push edx
call fcn.004906cd
add esp, 8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, 0xffffffff
jmp 0x41ae4f
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 0x41ae85
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ae7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aeac
push ecx
push edx
call fcn.004906cd
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.00490396
mov esp, ebp
pop ebp
ret
call fcn.004958ff
call fcn.004958ff
call fcn.004958ff
int3