Function at 0x41a820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc0cd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 0x41a8b7
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 0x41a8cb
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 0x41a906
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 0x41a91a
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 0x41aa0a
cmp esi, 2
je 0x41aaf3
lea ecx, [ebp - 0x50]
call fcn.00467d30
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41a966
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 0x44d
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 - 0x3c]
add esp, 4
cmp ecx, 7
jbe 0x41aaf3
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a9f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ab5e
push ecx
push edx
call fcn.004906cd
add esp, 8
mov byte [ebp - 0x35], 0
jmp 0x41ab0a
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.RestartRequired
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x41aaf9
lea ecx, [ebp - 0x50]
call fcn.00467d30
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41aa53
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 0x458
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Failed_to_query_restart_value__:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b830
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x3c]
add esp, 4
cmp ecx, 7
jbe 0x41aaea
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41aae0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ab63
push ecx
push edx
call fcn.004906cd
add esp, 8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x35], 0
jmp 0x41ab0a
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
setne byte [ebp - 0x35]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x41ab40
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ab36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ab68
push ecx
push edx
call fcn.004906cd
add esp, 8
mov al, byte [ebp - 0x35]
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