Function at 0x4d4570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3939
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x522638]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
xor edi, edi
push 0x18
mov dword [esi + 8], edi
call fcn.00404f8a
add esp, 4
cmp eax, edi
je 0x4d47c7
mov dword [esi + 4], eax
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov eax, dword [esi + 4]
mov bl, 1
mov byte [eax + 0x14], bl
mov ecx, dword [esi + 4]
mov byte [ecx + 0x15], bl
push 0x30
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
call fcn.00404f8a
add esp, 4
cmp eax, edi
je 0x4d47a3
mov dword [esi + 0x14], eax
mov dword [eax], eax
mov eax, dword [esi + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x14]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x14]
mov byte [edx + 0x2c], bl
mov eax, dword [esi + 0x14]
mov byte [eax + 0x2d], bl
push 0x48
mov byte [ebp - 4], bl
mov dword [esi + 0x28], edi
call fcn.00404f8a
add esp, 4
cmp eax, edi
je 0x4d477f
mov dword [esi + 0x24], eax
mov dword [eax], eax
mov eax, dword [esi + 0x24]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x24]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x24]
mov byte [ecx + 0x44], bl
mov edx, dword [esi + 0x24]
mov byte [edx + 0x45], bl
push 0x18
mov byte [ebp - 4], 2
mov dword [esi + 0x38], edi
call fcn.00404f8a
add esp, 4
cmp eax, edi
je 0x4d475b
mov dword [esi + 0x34], eax
mov dword [eax], eax
mov eax, dword [esi + 0x34]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x34]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x34]
mov byte [eax + 0x14], bl
mov ecx, dword [esi + 0x34]
mov byte [ecx + 0x15], bl
push 0x18
mov byte [ebp - 4], 3
mov dword [esi + 0x48], edi
call fcn.00404f8a
add esp, 4
cmp eax, edi
je 0x4d4737
mov dword [esi + 0x44], eax
mov dword [eax], eax
mov eax, dword [esi + 0x44]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x44]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x44]
mov byte [edx + 0x14], bl
mov eax, dword [esi + 0x44]
lea ecx, [esi + 0x54]
mov byte [eax + 0x15], bl
push ecx
mov byte [esi + 0x50], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [ebp - 0x10]
push edx
push 0x20019
push edi
push 0x4eadd8
push 0x80000002
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d4723
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
push str.bDisableCryptBroker
mov ebx, 4
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d4719
cmp dword [ebp - 0x14], ebx
jne 0x4d4719
cmp dword [ebp - 0x18], ebx
jne 0x4d4719
cmp dword [ebp - 0x1c], edi
setne cl
mov byte [esi + 0x50], cl
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
call fcn.004b7aaa
push 0x511300
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004b7be9
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], edi
call fcn.004b7aaa
push 0x511300
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], vtable.std::bad_alloc.0
call fcn.004b7be9
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
call fcn.004b7aaa
push 0x511300
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004b7be9
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], edi
call fcn.004b7aaa
push 0x511300
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], vtable.std::bad_alloc.0
call fcn.004b7be9
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], edi
call fcn.004b7aaa
push 0x511300
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004b7be9
int3