Function at 0x405d60
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x59c
mov eax, dword [0x436090]
push ebx
push ebp
mov ebp, dword [esp + 0x5ac]
push esi
mov esi, dword [esp + 0x5b8]
push edi
push 0x40
lea ecx, [esi + 0x200]
mov dword [esp + 0x5ac], eax
mov eax, dword [ebp]
xor ebx, ebx
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x7c], ebx
call fcn.004058a0
mov eax, dword [ebp]
mov edi, dword [esp + 0x5bc]
sub eax, edi
push eax
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.004058a0
lea edx, [esp + 0xa4]
push 0x51c
push edx
call fcn.00410f10
push ebx
push ebx
push 0x20
push ebx
push 0xfa
push ebx
lea eax, [esp + 0xc4]
push ebx
push eax
call fcn.00407250
add esp, 0x40
add esi, 0x100
push esi
call fcn.00402430
mov edx, dword [esp + 0x9c]
movzx ecx, ax
push ecx
push edx
push esi
call fcn.00410ed0
push esi
call fcn.00402430
movzx eax, ax
push eax
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.004058a0
mov eax, 0xff
mov byte [esp + 0x31], al
mov word [esp + 0xbe], ax
push 2
lea eax, [esp + 0x34]
mov byte [esp + 0x34], bl
mov dx, word [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
mov word [esp + 0x3c], dx
call fcn.004058a0
push 4
lea edx, [esp + 0xd0]
mov dword [esp + 0xd0], ebx
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004058a0
push str._bhmac_md5_asig_alg
call fcn.00402430
mov edx, dword [esp + 0xec]
movzx ecx, ax
push ecx
add edx, 4
push edx
push str._bhmac_md5_asig_alg
call fcn.00410ed0
add esp, 0x48
push str._bhmac_md5_asig_alg
call fcn.00402430
mov ecx, dword [esp + 0xb4]
movzx eax, ax
push eax
lea edx, [esp + 0x20]
push str._bhmac_md5_asig_alg
push edx
lea esi, [eax + ecx + 4]
call fcn.004058a0
add esp, 0x10
call fcn.00410f70
cmp eax, 0xffffffff
jne 0x405f11
push str.ERROR:_DNSDigest_SignMessage___mDNSPlatformUTC_returned_bad_time__1
call fcn.00410bc0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x598]
call fcn.0042373b
add esp, 0x59c
ret
mov ecx, eax
shr ecx, 0x18
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x76], cl
push 6
mov byte [esp + 0x7b], dl
mov ecx, eax
lea edx, [esp + 0x78]
shr ecx, 8
push esi
push edx
mov byte [esp + 0x80], bl
mov byte [esp + 0x81], bl
mov byte [esp + 0x84], cl
mov byte [esp + 0x85], al
call fcn.00410ed0
push 6
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2c]
push ecx
add esi, 6
call fcn.004058a0
mov al, 0x2c
mov byte [esp + 0x29], al
mov byte [esi + 1], al
push 2
lea eax, [esp + 0x2c]
mov byte [esp + 0x2c], 1
mov dx, word [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
mov byte [esi], 1
push ecx
mov word [esp + 0x34], dx
add esi, 2
call fcn.004058a0
push 2
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x44]
push eax
mov word [esp + 0x40], bx
call fcn.004058a0
push 2
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004058a0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xbc]
push ecx
call fcn.00405b40
mov edx, dword [esp + 0x600]
add esp, 0x44
push 0x40
add edx, 0x240
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x7c], ebx
call fcn.004058a0
push 0x10
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004058a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00405b40
mov byte [esi], bl
mov byte [esi + 1], 0x10
push 0x10
add esi, 2
lea edx, [esp + 0xa0]
push esi
push edx
call fcn.00410ed0
mov al, byte [edi]
add esi, 0x10
mov byte [esi], al
mov cl, byte [edi + 1]
mov byte [esi + 1], cl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
sub esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0x40]
lea edx, [edi + 0x22f8]
push edx
push ebx
add esi, 2
lea eax, [esp + 0xc4]
push eax
mov word [esp + 0xdc], si
mov esi, dword [esp + 0x5f0]
push esi
push ecx
push edi
call fcn.00403b70
add esp, 0x44
cmp eax, ebx
mov dword [ebp], eax
jne 0x4060d6
push str.ERROR:_DNSDigest_SignMessage___could_not_put_TSIG
call fcn.00410bc0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x598]
call fcn.0042373b
add esp, 0x59c
ret
mov dl, byte [esi + 1]
mov ecx, dword [esp + 0x5a8]
mov byte [edi + 0xa], dl
mov al, byte [esi]
mov byte [edi + 0xb], al
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0042373b
add esp, 0x59c
ret