Function at 0x4129e0
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 0x412a5b
cmp eax, 3
je 0x412a5b
mov eax, dword [ecx]
test eax, eax
je 0x412a2c
jmp 0x412a20
cmp eax, edi
je 0x412a9f
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x412a20
mov eax, dword [ebx + 0x2008]
lea ecx, [ebx + 0x2008]
mov dword [ebp + 8], ecx
test eax, eax
je 0x412d65
cmp eax, edi
je 0x412d52
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x412a43
mov dword [ebp + 8], ecx
jmp 0x412d65
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.0040ab20
test eax, eax
je 0x41311f
lea ecx, [eax + 8]
mov eax, dword [ecx]
test eax, eax
je 0x412a9f
cmp eax, edi
je 0x412a9f
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x412a93
cmp dword [ecx], 0
mov dword [ebp + 8], ecx
je 0x412a2c
cmp dword [ebp + 0x10], 2
jne 0x412b55
mov esi, dword [ebx + 0x2008]
test esi, esi
je 0x412d65
nop
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x1c]
jne 0x412b46
mov ecx, dword [ebp - 4]
mov al, byte [esi + 4]
mov cl, byte [ecx]
cmp al, cl
je 0x412aea
mov dl, al
or dl, cl
cmp dl, 0x12
je 0x412aea
cmp al, 1
je 0x412aea
cmp cl, 1
jne 0x412b46
mov ax, word [esi + 6]
cmp ax, word [edi + 6]
jne 0x412b46
mov cx, word [esi + 8]
cmp cx, word [edi + 8]
jne 0x412b46
mov edx, dword [esi + 0x14]
cmp edx, dword [edi + 0x14]
jne 0x412b46
mov ax, word [esi + 0x10]
cmp ax, word [edi + 0x10]
jne 0x412b46
mov ecx, dword [esi + 0x18]
cmp ecx, dword [edi + 0x18]
jne 0x412b46
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 0x412b46
mov eax, dword [edi + 0x20]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call fcn.00401270
test eax, eax
je 0x412b46
mov byte [esi + 0x7d], 0xff
mov esi, dword [esi]
test esi, esi
jne 0x412ac0
jmp 0x412d65
cmp dword [ebx + 0x2008], 0
lea eax, [ebx + 0x2008]
mov dword [ebp - 8], eax
je 0x412d65
jmp 0x412b70
mov edx, dword [ebp - 8]
mov esi, dword [edx]
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x1c]
jne 0x412c02
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 0x412ba8
mov dl, al
or dl, cl
cmp dl, 0x12
je 0x412ba5
cmp al, 1
je 0x412ba5
cmp cl, 1
jne 0x412c02
mov edx, dword [ebp - 0x10]
mov ax, word [esi + 6]
cmp ax, word [edi + 6]
jne 0x412c02
mov cx, word [esi + 8]
cmp cx, word [edi + 8]
jne 0x412c02
mov eax, dword [esi + 0x14]
cmp eax, dword [edi + 0x14]
jne 0x412c02
mov cx, word [esi + 0x10]
cmp cx, word [edi + 0x10]
jne 0x412c02
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x18]
jne 0x412c02
mov ecx, dword [edi + 0x24]
push fcn.00401270
add ecx, 4
push ecx
push edx
call fcn.00402500
test eax, eax
je 0x412c02
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 0x412c13
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [eax], 0
mov dword [ebp - 8], eax
jne 0x412b70
mov ecx, dword [ebp - 8]
mov esi, dword [ecx]
test esi, esi
je 0x412d65
mov edx, dword [esi]
mov eax, ecx
mov dword [eax], edx
mov eax, dword [edi + 0x78]
cmp eax, 2
je 0x412c3b
cmp eax, 3
je 0x412c3b
mov ecx, dword [edi]
mov dword [esi], ecx
mov dword [edi], esi
jmp 0x412c77
push esi
lea edx, [ebx + 0x10f4]
push edx
push ebx
mov dword [esi], 0
call fcn.0040acc0
test eax, eax
jne 0x412c77
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.00420520
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 0x412d65
cmp dword [ecx], 0
mov dword [ebp + 8], ecx
je 0x412d65
mov byte [edi + 0x7f], 0
mov dword [ebp - 0xc], 1
mov edx, dword [ebp + 8]
xor esi, esi
cmp dword [edx], esi
jne 0x412da6
cmp dword [ebp + 0x10], 3
je 0x412d98
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.00420520
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 0x412e60
cmp byte [edi + 0x46], 0
jne 0x412e60
mov eax, dword [edi + 0x20]
push eax
call fcn.00401320
test eax, eax
jne 0x412e60
cmp byte [edi + 0x7f], al
je 0x412e0a
mov eax, dword [edi + 0xf8]
cmp eax, esi
je 0x412deb
push eax
call fcn.00429e80
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.0042c260
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 0x412e33
lea eax, [edi + 0xfc]
push eax
push ebx
call fcn.00429200
mov dword [edi + 0x178], esi
mov eax, dword [edi + 0xf4]
cmp eax, esi
je 0x412e4a
push eax
push ebx
call fcn.00411e00
mov dword [edi + 0xf4], esi
mov eax, dword [edi + 0xf8]
cmp eax, esi
je 0x412e60
push eax
call fcn.00429e80
mov dword [edi + 0xf8], esi
mov al, byte [ebp + 0xf]
test al, al
jne 0x412e8d
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.00420520
add esp, 0xc
jmp 0x412ec5
cmp al, 1
jne 0x412ec2
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.00420520
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 0x413090
cmp byte [ebp + 0xf], 8
jne 0x412eeb
cmp byte [edi + 0x7f], al
jne 0x413090
cmp byte [edi + 0x80], al
jne 0x413090
cmp dword [ebp - 0xc], 0
jne 0x412f18
mov eax, dword [edi + 0x78]
cmp eax, 2
je 0x412efe
cmp eax, 3
jne 0x412f18
push edi
lea edx, [ebx + 0x10f4]
push edx
push ebx
call fcn.0040ad50
cmp dword [eax + 0x14], edi
jne 0x412f2f
mov ecx, dword [edi]
mov dword [eax + 0x14], ecx
jmp 0x412f2f
mov edx, dword [edi]
mov eax, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x200c], edi
jne 0x412f2f
mov ecx, dword [edi]
mov dword [ebx + 0x200c], ecx
cmp dword [ebx + 0x2010], edi
jne 0x412f3f
mov edx, dword [edi]
mov dword [ebx + 0x2010], edx
cmp dword [edi + 0xc4], 0
mov dword [edi], 0
mov byte [esi], 0
je 0x412f5c
push ebx
mov esi, edi
call fcn.0040b8e0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x10], 2
je 0x412ff7
inc dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
cmp ecx, eax
je 0x412f89
push eax
push ecx
push str.mDNS_Deregister_internal
push str._s:_Locking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
push 0
call fcn.00420520
add esp, 0x14
cmp dword [0x45b59c], 0
je 0x412fb3
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.00420520
add esp, 0xc
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x412fc3
push 0xfffeff00
push edi
push ebx
call eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
cmp eax, ecx
je 0x412fe3
push ecx
push eax
push str.mDNS_Deregister_internal
push str._s:_Unlocking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
push 0
call fcn.00420520
add esp, 0x14
dec dword [ebx + 0x30]
push ebx
call fcn.00411c90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, ebx
call fcn.0040b880
inc dword [ebx + 0x30]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
cmp ecx, eax
je 0x413021
push eax
push ecx
push str.mDNS_Deregister_internal
push str._s:_Locking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
push 0
call fcn.00420520
add esp, 0x14
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x413031
push 0xfffefff4
push edi
push ebx
call eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
cmp eax, ecx
je 0x413051
push ecx
push eax
push str.mDNS_Deregister_internal
push str._s:_Unlocking_Failure__mDNS_busy___ld____mDNS_reentrancy___ld_
push 0
call fcn.00420520
add esp, 0x14
mov eax, dword [ebx + 0x2008]
dec dword [ebx + 0x30]
test eax, eax
je 0x413119
cmp byte [eax + 0x7d], 0xff
je 0x41306c
mov eax, dword [eax]
jmp 0x41307b
push 2
push eax
push ebx
call fcn.004129e0
mov eax, dword [ebx + 0x2008]
test eax, eax
jne 0x413062
push ebx
call fcn.00411c90
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 0x4130a5
mov eax, 0x12
jmp 0x4130b2
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 0x413119
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.00411c90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc