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

Disassembly:
sub esp, 0x228
mov eax, dword [0x436090]
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x234]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x234], eax
xor eax, eax
mov byte [ecx], al
mov byte [edi], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [edx], eax
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREApple_Computer__Inc.BonjourDynDNSSetupHostNames
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x41281a
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x42d97b
lea esi, [esp + 0x24]
call fcn.00411f10
mov esi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x4125fc
cmp byte [esi], 0
je 0x4125fc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4125fc
push esi
push edi
call fcn.00402750
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp eax, ebx
je 0x412613
push eax
call edi
mov dword [esp + 0x10], ebx
cmp esi, ebx
je 0x412624
push esi
call fcn.00423699
add esp, 4
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREApple_Computer__Inc.BonjourDynDNSSetupBrowseDomains
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x412820
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x412820
mov eax, dword [esp + 0x24]
xor ebp, ebp
test eax, eax
jbe 0x4127a3
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x48]
push eax
push ebp
push ecx
mov dword [esp + 0x38], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x412796
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412820
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push str.Enabled
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412787
mov al, byte [esp + 0x34]
test al, al
je 0x412787
mov eax, dword [esp + 0x28]
test eax, eax
je 0x412787
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x138]
push eax
call fcn.00402750
add esp, 8
test eax, eax
je 0x412787
mov al, byte [esp + 0x134]
test al, al
je 0x412787
push 0x104
call fcn.00423687
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412820
lea ecx, [esp + 0x134]
push ecx
call fcn.00402430
movzx ecx, ax
mov eax, dword [esp + 0x248]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x138]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx + 0x100], ecx
mov dword [eax], ebx
mov edx, dword [esp + 0x1c]
push edx
call edi
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jb 0x412678
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4127b6
push eax
call edi
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREApple_Computer__Inc.BonjourDynDNSSetupRegistrationDomains
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412820
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x42d97b
lea esi, [esp + 0x24]
call fcn.00411f10
add esp, 0xc
test eax, eax
jne 0x412820
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x412820
mov eax, dword [esp + 0x20]
test eax, eax
je 0x412820
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x240]
push ecx
push edx
call fcn.00402750
add esp, 8
jmp 0x412820
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41282b
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x412836
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x41284b
push eax
call fcn.00423699
add esp, 4
mov ecx, dword [esp + 0x224]
call fcn.0042373b
add esp, 0x228
ret