Function at 0x4125a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x240]
push edi
mov edi, dword [esp + 0x23c]
mov byte [eax], bl
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
push str.SOFTWAREApple_Inc.BonjourDynDNSSetupHostNames
mov byte [edi], bl
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [ebp], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412829
mov eax, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x42d9ab
push eax
lea esi, [esp + 0x28]
call fcn.00411d50
mov esi, dword [esp + 0x24]
add esp, 0x10
test eax, eax
jne 0x41263f
cmp byte [esi], bl
je 0x41263f
cmp dword [esp + 0x20], ebx
je 0x41263f
push esi
push edi
call fcn.00402770
add esp, 8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412652
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
cmp esi, ebx
je 0x412663
push esi
call fcn.004237fa
add esp, 4
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREApple_Inc.BonjourDynDNSSetupBrowseDomains
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412828
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x412828
xor edi, edi
cmp dword [esp + 0x24], ebx
jbe 0x4127ba
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14c]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4127ad
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x144]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412828
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push str.Enabled
push edx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41279e
cmp byte [esp + 0x138], bl
je 0x41279e
cmp dword [esp + 0x28], ebx
je 0x41279e
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00402770
add esp, 8
test eax, eax
je 0x41279e
cmp byte [esp + 0x38], bl
je 0x41279e
push 0x104
call fcn.004236b5
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x412828
lea edx, [esp + 0x38]
push edx
call fcn.00402430
movzx eax, ax
push eax
lea eax, [esp + 0x40]
push eax
push esi
call fcn.004239d0
mov ecx, dword [ebp]
mov dword [esi + 0x100], ecx
add esp, 0x10
mov dword [ebp], esi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
add edi, 1
cmp edi, dword [esp + 0x24]
jb 0x4126b6
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4127cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREApple_Inc.BonjourDynDNSSetupRegistrationDomains
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412828
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x42d9ab
push eax
lea esi, [esp + 0x28]
call fcn.00411d50
add esp, 0x10
test eax, eax
jne 0x412828
mov ecx, dword [esp + 0x14]
cmp byte [ecx], bl
je 0x412828
cmp dword [esp + 0x20], ebx
je 0x412828
mov eax, dword [esp + 0x2c]
mov edx, ecx
push edx
push eax
call fcn.00402770
add esp, 8
pop esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x412838
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x412847
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
cmp eax, ebx
pop ebx
je 0x41285b
push eax
call fcn.004237fa
add esp, 4
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00423888
add esp, 0x22c
ret