Function at 0x52eac0
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52efb1
sub esp, 0x58
movzx eax, word [esp + 0x88]
cmp ax, 0x300
jne 0x52ef84
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x52ef97
cmp ax, 0x300
jne 0x52ed23
movzx eax, byte [esp + 0x91]
cmp al, 1
je 0x52eb9d
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x36
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x52eb81
lea ecx, [0x654e87]
mov dword [eax], ecx
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
lea ecx, [0x757cf0]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
add esp, 0x58
ret
mov dword [esp + 0x54], eax
mov dword [esp], eax
lea ecx, [0x654e87]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x54]
jmp 0x52eb3d
lea eax, [0x621f80]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dbg.crypto/md5.(*digest).Write
lea eax, [0x622000]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dbg.crypto/sha1.(*digest).Write
lea eax, [0x75ade0]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
lea eax, [0x75ae20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dbg.crypto/tls.finishedSum30
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], 8
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0x58
ret
cmp ax, 0x303
jb 0x52eeb3
movzx eax, byte [esp + 0x90]
cmp al, 2
jne 0x52ee39
xor eax, eax
xor ecx, ecx
mov edx, 3
test ecx, ecx
je 0x52ed89
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
add esp, 0x58
ret
mov dword [esp + 0x40], edx
mov dword [esp], edx
call dbg.crypto.Hash.New
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 0x24]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp], ecx
call edx
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0x58
ret
cmp al, 4
jne 0x52ee4c
xor eax, eax
xor ecx, ecx
mov edx, 5
jmp 0x52ed47
cmp al, 5
jne 0x52ee5f
xor eax, eax
xor ecx, ecx
mov edx, 6
jmp 0x52ed47
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1f
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x52ee97
lea ecx, [0x64f3e0]
mov dword [eax], ecx
lea ecx, [0x757cf0]
xor edx, edx
jmp 0x52ed47
mov dword [esp + 0x54], eax
mov dword [esp], eax
lea ecx, [0x64f3e0]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x54]
jmp 0x52ee8a
movzx eax, byte [esp + 0x91]
cmp al, 3
jne 0x52ef2e
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [eax + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], 3
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0x58
ret
mov edi, esp
lea esi, [esp + 0x5c]
call fcn.0044c4de
call dbg.crypto/tls.finishedHash.Sum
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], 8
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0x58
ret
cmp ax, 0x303
jae 0x52eaeb
cmp ax, 0x300
jmp 0x52eafb
lea eax, [0x604c20]
mov dword [esp], eax
lea eax, [0x67aec8]
mov dword [esp + 4], eax
call dbg.runtime.gopanic
ud2
call dbg.runtime.morestack_noctxt
jmp dbg.crypto/tls.finishedHash.hashForClientCertificate