Function at 0x4129c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov al, byte [edi + 4]
lea esi, [edi + 4]
mov byte [ebp + 0xf], al
mov eax, dword [edi + 0x78]
mov dword [ebp - 4], esi
lea ecx, [ebx + 0x2004]
mov dword [ebp - 0xc], 0
cmp eax, 2
je 0x412a3b
cmp eax, 3
je 0x412a3b
mov eax, dword [ecx]
test eax, eax
je 0x412a0c
jmp 0x412a00
cmp eax, edi
je 0x412a7f
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x412a00
mov eax, dword [ebx + 0x2008]
lea ecx, [ebx + 0x2008]
mov dword [ebp + 8], ecx
test eax, eax
je 0x412d45
cmp eax, edi
je 0x412d32
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x412a23
mov dword [ebp + 8], ecx
jmp 0x412d45
mov ecx, dword [edi + 0x20]
push ecx
call fcn.00403950
xor edx, edx
mov ecx, 0x1f3
div ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push edx
lea edx, [ebx + 0x10f4]
push edx
call fcn.0040ab10
test eax, eax
je 0x4130ff
lea ecx, [eax + 8]
mov eax, dword [ecx]
test eax, eax
je 0x412a7f
cmp eax, edi
je 0x412a7f
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x412a73
cmp dword [ecx], 0
mov dword [ebp + 8], ecx
je 0x412a0c
cmp dword [ebp + 0x10], 2
jne 0x412b35
mov esi, dword [ebx + 0x2008]
test esi, esi
je 0x412d45
nop
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x1c]
jne 0x412b26
mov ecx, dword [ebp - 4]
mov al, byte [esi + 4]
mov cl, byte [ecx]
cmp al, cl
je 0x412aca
mov dl, al
or dl, cl
cmp dl, 0x12
je 0x412aca
cmp al, 1
je 0x412aca
cmp cl, 1
jne 0x412b26
mov ax, word [esi + 6]
cmp ax, word [edi + 6]
jne 0x412b26
mov cx, word [esi + 8]
cmp cx, word [edi + 8]
jne 0x412b26
mov edx, dword [esi + 0x14]
cmp edx, dword [edi + 0x14]
jne 0x412b26
mov ax, word [esi + 0x10]
cmp ax, word [edi + 0x10]
jne 0x412b26
mov ecx, dword [esi + 0x18]
cmp ecx, dword [edi + 0x18]
jne 0x412b26
mov edx, dword [edi + 0x24]
push fcn.00401270
add edx, 4
push edx
lea eax, [esi + 4]
push eax
call fcn.00402500
test eax, eax
je 0x412b26
mov eax, dword [edi + 0x20]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call fcn.00401270
test eax, eax
je 0x412b26
mov byte [esi + 0x7d], 0xff
mov esi, dword [esi]
test esi, esi
jne 0x412aa0
jmp 0x412d45
cmp dword [ebx + 0x2008], 0
lea eax, [ebx + 0x2008]
mov dword [ebp - 8], eax
je 0x412d45
jmp 0x412b50
mov edx, dword [ebp - 8]
mov esi, dword [edx]
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x1c]
jne 0x412be2
mov ecx, dword [ebp - 4]
mov al, byte [esi + 4]
mov cl, byte [ecx]
lea edx, [esi + 4]
mov dword [ebp - 0x10], edx
cmp al, cl
je 0x412b88
mov dl, al
or dl, cl
cmp dl, 0x12
je 0x412b85
cmp al, 1
je 0x412b85
cmp cl, 1
jne 0x412be2
mov edx, dword [ebp - 0x10]
mov ax, word [esi + 6]
cmp ax, word [edi + 6]
jne 0x412be2
mov cx, word [esi + 8]
cmp cx, word [edi + 8]
jne 0x412be2
mov eax, dword [esi + 0x14]
cmp eax, dword [edi + 0x14]
jne 0x412be2
mov cx, word [esi + 0x10]
cmp cx, word [edi + 0x10]
jne 0x412be2
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x18]
jne 0x412be2
mov ecx, dword [edi + 0x24]
push fcn.00401270
add ecx, 4
push ecx
push edx
call fcn.00402500
test eax, eax
je 0x412be2
mov edx, dword [edi + 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push edx
mov edx, dword [ecx + 0x20]
push edx
call fcn.00401270
test eax, eax
jne 0x412bf3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [eax], 0
mov dword [ebp - 8], eax
jne 0x412b50
mov ecx, dword [ebp - 8]
mov esi, dword [ecx]
test esi, esi
je 0x412d45
mov edx, dword [esi]
mov eax, ecx
mov dword [eax], edx
mov eax, dword [edi + 0x78]
cmp eax, 2
je 0x412c1b
cmp eax, 3
je 0x412c1b
mov ecx, dword [edi]
mov dword [esi], ecx
mov dword [edi], esi
jmp 0x412c57
push esi
lea edx, [ebx + 0x10f4]
push edx
push ebx
mov dword [esi], 0
call fcn.0040acb0
test eax, eax
jne 0x412c57
mov ecx, dword [esi + 0x24]
lea eax, [ebx + 0x37]
push eax
add ecx, 4
push ecx
lea edx, [esi + 4]
push edx
call fcn.00404f60
push eax
push str.mDNS_Deregister_internal:_ERROR___cannot_insert__s
push 0
call fcn.00420510
add esp, 0xc
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov byte [esi + 4], cl
movzx edx, byte [edi + 0x7d]
mov byte [esi + 0x7d], dl
mov al, byte [edi + 0x7e]
mov byte [esi + 0x7e], al
movzx ecx, byte [edi + 0x7f]
mov byte [esi + 0x7f], cl
movzx edx, byte [edi + 0x80]
mov byte [esi + 0x80], dl
mov eax, dword [edi + 0x88]
mov dword [esi + 0x88], eax
movzx ecx, byte [edi + 0x82]
mov byte [esi + 0x82], cl
mov edx, dword [edi + 0x8c]
mov dword [esi + 0x8c], edx
mov eax, dword [edi + 0x94]
mov dword [esi + 0x94], eax
mov ecx, dword [edi + 0x98]
mov dword [esi + 0x98], ecx
mov edx, dword [edi + 0x9c]
mov dword [esi + 0x9c], edx
mov eax, dword [edi + 0xa0]
mov dword [esi + 0xa0], eax
mov ecx, dword [edi + 0xa4]
mov dword [esi + 0xa4], ecx
mov edx, dword [edi + 0xb4]
mov dword [esi + 0xb4], edx
mov eax, dword [edi + 0xb8]
mov dword [esi + 0xb8], eax
mov ecx, dword [edi + 0xbc]
mov dword [esi + 0xbc], ecx
mov edx, dword [edi + 0xc0]
mov dword [esi + 0xc0], edx
mov eax, dword [edi + 0xe8]
mov dword [esi + 0xe8], eax
mov ecx, dword [edi + 0xdc]
mov dword [esi + 0xdc], ecx
mov word [edi + 0x7f], 0
jmp 0x412d45
cmp dword [ecx], 0
mov dword [ebp + 8], ecx
je 0x412d45
mov byte [edi + 0x7f], 0
mov dword [ebp - 0xc], 1
mov edx, dword [ebp + 8]
xor esi, esi
cmp dword [edx], esi
jne 0x412d86
cmp dword [ebp + 0x10], 3
je 0x412d78
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 4]
add ebx, 0x37
push ebx
add eax, 4
push eax
push ecx
call fcn.00404f60
push eax
push edi
push str.mDNS_Deregister_internal:_Record__p_not_found_in_list__s
push esi
call fcn.00420510
add esp, 0x10
pop edi
pop esi
mov eax, 0xfffefffb
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x1c]
cmp edx, dword [0x44637c]
jne 0x412e40
cmp byte [edi + 0x46], 0
jne 0x412e40
mov eax, dword [edi + 0x20]
push eax
call fcn.00401320
test eax, eax
jne 0x412e40
cmp byte [edi + 0x7f], al
je 0x412dea
mov eax, dword [edi + 0xf8]
cmp eax, esi
je 0x412dcb
push eax
call fcn.00429f70
mov dword [edi + 0xf8], esi
mov ecx, dword [ebp - 4]
push edi
mov byte [ecx], 1
push ebx
mov byte [ebx + 0x114], 1
call fcn.0042c350
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dx, word [0x44647c]
mov word [edi + 0xec], dx
cmp dword [edi + 0x178], esi
je 0x412e13
lea eax, [edi + 0xfc]
push eax
push ebx
call fcn.004292f0
mov dword [edi + 0x178], esi
mov eax, dword [edi + 0xf4]
cmp eax, esi
je 0x412e2a
push eax
push ebx
call fcn.00411df0
mov dword [edi + 0xf4], esi
mov eax, dword [edi + 0xf8]
cmp eax, esi
je 0x412e40
push eax
call fcn.00429f70
mov dword [edi + 0xf8], esi
mov al, byte [ebp + 0xf]
test al, al
jne 0x412e6d
mov edx, dword [edi + 0x24]
mov esi, dword [ebp - 4]
lea ecx, [ebx + 0x37]
push ecx
add edx, 4
push edx
push esi
call fcn.00404f60
push eax
push str.mDNS_Deregister_internal:__s_already_marked_kDNSRecordTypeUnregistered
push 0
call fcn.00420510
add esp, 0xc
jmp 0x412ea5
cmp al, 1
jne 0x412ea2
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 4]
add ebx, 0x37
push ebx
add eax, 4
push eax
push ecx
call fcn.00404f60
push eax
push str.mDNS_Deregister_internal:__s_already_marked_kDNSRecordTypeDeregistering
push esi
call fcn.00420510
add esp, 0xc
pop edi
pop esi
mov eax, 0xfffefffb
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 4]
mov eax, dword [edi + 0x4a]
test eax, eax
jne 0x413070
cmp byte [ebp + 0xf], 8
jne 0x412ecb
cmp byte [edi + 0x7f], al
jne 0x413070
cmp byte [edi + 0x80], al
jne 0x413070
cmp dword [ebp - 0xc], 0
jne 0x412ef8
mov eax, dword [edi + 0x78]
cmp eax, 2
je 0x412ede
cmp eax, 3
jne 0x412ef8
push edi
lea edx, [ebx + 0x10f4]
push edx
push ebx
call fcn.0040ad40
cmp dword [eax + 0x14], edi
jne 0x412f0f
mov ecx, dword [edi]
mov dword [eax + 0x14], ecx
jmp 0x412f0f
mov edx, dword [edi]
mov eax, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x200c], edi
jne 0x412f0f
mov ecx, dword [edi]
mov dword [ebx + 0x200c], ecx
cmp dword [ebx + 0x2010], edi
jne 0x412f1f
mov edx, dword [edi]
mov dword [ebx + 0x2010], edx
cmp dword [edi + 0xc4], 0
mov dword [edi], 0
mov byte [esi], 0
je 0x412f3c
push ebx
mov esi, edi
call fcn.0040b8d0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x10], 2
je 0x412fd7
inc dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
cmp ecx, eax
je 0x412f69
push eax
push ecx
push str.mDNS_Deregister_internal
push str._s:_Locking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
push 0
call fcn.00420510
add esp, 0x14
cmp dword [0x45b59c], 0
je 0x412f93
mov ecx, dword [edi + 0x24]
lea eax, [ebx + 0x37]
push eax
add ecx, 4
push ecx
push esi
call fcn.00404f60
push eax
push str.mDNS_Deregister_internal:_mStatus_MemFree_for__s
push 3
call fcn.00420510
add esp, 0xc
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x412fa3
push 0xfffeff00
push edi
push ebx
call eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
cmp eax, ecx
je 0x412fc3
push ecx
push eax
push str.mDNS_Deregister_internal
push str._s:_Unlocking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
push 0
call fcn.00420510
add esp, 0x14
dec dword [ebx + 0x30]
push ebx
call fcn.00411c80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, ebx
call fcn.0040b870
inc dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
cmp ecx, eax
je 0x413001
push eax
push ecx
push str.mDNS_Deregister_internal
push str._s:_Locking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
push 0
call fcn.00420510
add esp, 0x14
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x413011
push 0xfffefff4
push edi
push ebx
call eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
cmp eax, ecx
je 0x413031
push ecx
push eax
push str.mDNS_Deregister_internal
push str._s:_Unlocking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
push 0
call fcn.00420510
add esp, 0x14
mov eax, dword [ebx + 0x2008]
dec dword [ebx + 0x30]
test eax, eax
je 0x4130f9
cmp byte [eax + 0x7d], 0xff
je 0x41304c
mov eax, dword [eax]
jmp 0x41305b
push 2
push eax
push ebx
call fcn.004129c0
mov eax, dword [ebx + 0x2008]
test eax, eax
jne 0x413042
push ebx
call fcn.00411c80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [esi], 1
mov dword [edi + 0xc], 0
test eax, eax
je 0x413085
mov eax, 0x12
jmp 0x413092
xor eax, eax
cmp dword [ebp + 0x10], 1
setne al
lea eax, [eax + eax + 1]
mov byte [edi + 0x7e], al
mov eax, dword [0x46129c]
add eax, eax
mov dword [edi + 0xb4], eax
mov edx, dword [ebx + 0xdc]
sub edx, eax
mov dword [edi + 0xb8], edx
mov ecx, dword [ebx + 0xdc]
mov byte [ebx + 0x114], 1
mov esi, dword [0x46129c]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebx + 0xfc]
sub edx, eax
sub edx, ecx
js 0x4130f9
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [ebx + 0xfc], eax
push ebx
call fcn.00411c80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc