Function at 0x408150
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
movzx ecx, byte [edi + 0xa]
movzx edx, byte [edi + 0xb]
mov dword [ebp - 0x434], eax
mov eax, dword [eax]
shl cx, 8
or cx, dx
mov dword [ebp - 0x440], eax
movzx eax, cx
push 0x40
lea ecx, [esi + 0x161e]
xor ebx, ebx
push ecx
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x78], 0x67452301
mov dword [ebp - 0x74], 0xefcdab89
mov dword [ebp - 0x70], 0x98badcfe
mov dword [ebp - 0x6c], 0x10325476
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x20], ebx
call fcn.00407c50
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
sub ecx, edi
push ecx
push edi
lea edx, [ebp - 0x78]
push edx
call fcn.00407c50
push ebx
push ebx
push ebx
push 0x20
push ebx
push 0xfa
push ebx
push ebx
lea eax, [ebp - 0x428]
push eax
call fcn.004021d0
lea eax, [esi + 0x14fc]
push eax
add esi, 0x13fc
push esi
mov dword [ebp - 0x430], eax
call fcn.00401410
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
ja 0x408238
push eax
push esi
lea eax, [ebp - 0x284]
push eax
call fcn.004205c0
jmp 0x40823e
mov byte [ebp - 0x284], bl
mov ecx, dword [ebp - 0x430]
push ecx
push esi
call fcn.00401410
movzx edx, ax
push edx
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.00407c50
mov ecx, 0xff
push 2
lea eax, [ebp - 0x42c]
mov word [ebp - 0x420], cx
mov word [ebp - 0x42c], 0xff00
mov dx, word [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov word [ebp - 0x42c], dx
call fcn.00407c50
push 4
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x41c], ebx
call fcn.00407c50
push 0x4479ec
push str._bhmac_md5_asig_alg
call fcn.00401410
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
ja 0x4082d9
push eax
mov eax, dword [ebp - 0x404]
push str._bhmac_md5_asig_alg
add eax, 4
push eax
call fcn.004205c0
jmp 0x4082e2
mov ecx, dword [ebp - 0x404]
mov byte [ecx + 4], bl
push 0x4479ec
push str._bhmac_md5_asig_alg
call fcn.00401410
mov edx, dword [ebp - 0x404]
movzx eax, ax
push eax
lea esi, [eax + edx + 4]
push str._bhmac_md5_asig_alg
lea eax, [ebp - 0x78]
push eax
call fcn.00407c50
call fcn.00420720
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
jne 0x408339
push str.ERROR:_DNSDigest_SignMessage___mDNSPlatformUTC_returned_bad_time__1
push ebx
call fcn.00420510
mov ecx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x430]
add esp, 8
mov dword [ecx], ebx
mov edx, eax
shr edx, 0x18
mov byte [ebp - 0xa], dl
mov ecx, eax
mov edx, eax
mov byte [ebp - 7], al
push 6
lea eax, [ebp - 0xc]
push eax
shr ecx, 0x10
shr edx, 8
push esi
mov word [ebp - 0xc], bx
mov byte [ebp - 9], cl
mov byte [ebp - 8], dl
call fcn.004205c0
push 6
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x78]
push edx
add esi, 6
call fcn.00407c50
push 2
push esi
lea eax, [ebp - 0x78]
push eax
mov word [esi], 0x2c01
call fcn.00407c50
mov cx, word [ebp + 0x14]
mov ax, cx
mov byte [ebp - 0x42b], cl
push 2
lea ecx, [ebp - 0x42c]
shr ax, 8
push ecx
lea edx, [ebp - 0x78]
push edx
mov word [ebp - 0x42e], ax
mov byte [ebp - 0x42c], al
call fcn.00407c50
push 2
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x78]
xor eax, eax
push edx
mov word [ebp - 0x42c], ax
call fcn.00407c50
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00407f00
mov edx, dword [ebp - 0x43c]
push 0x40
add edx, 0x165e
push edx
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x67452301
mov dword [ebp - 0x74], 0xefcdab89
mov dword [ebp - 0x70], 0x98badcfe
mov dword [ebp - 0x6c], 0x10325476
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x20], ebx
call fcn.00407c50
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x78]
push edx
call fcn.00407c50
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00407f00
mov word [esi + 2], 0x1000
add esi, 4
push 0x10
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.004205c0
movzx eax, byte [edi]
mov dl, byte [ebp - 0x42e]
add esi, 0x10
mov byte [esi], al
mov cl, byte [edi + 1]
mov al, byte [ebp + 0x14]
mov byte [esi + 1], cl
mov byte [esi + 2], dl
lea ecx, [edi + 0x22f8]
push ecx
mov ecx, dword [ebp - 0x440]
push ebx
mov byte [esi + 3], al
lea edx, [ebp - 0x424]
push edx
mov word [esi + 4], bx
sub esi, dword [ebp - 0x404]
lea eax, [ebp - 0x438]
push eax
push ecx
add esi, 2
push edi
mov word [ebp - 0x418], si
call fcn.00405630
mov esi, dword [ebp - 0x434]
mov dword [esi], eax
cmp eax, ebx
jne 0x4084d0
push str.ERROR:_DNSDigest_SignMessage___could_not_put_TSIG
push ebx
call fcn.00420510
add esp, 8
pop edi
mov dword [esi], ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 4]
mov edx, eax
shr edx, 8
mov byte [edi + 0xa], dl
mov byte [edi + 0xb], al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439f90
mov esp, ebp
pop ebp
ret 0x10