Function at 0x10029480
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004c6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x100661b0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x100661b0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x28], edx
push eax
mov edx, 0x10055324
mov dword [esp + 0x28], ecx
call fcn.10017cc0
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [esp + 0x20], eax
jne 0x100294ee
or eax, 0xffffffff
jmp 0x10029746
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push eax
call fcn.1003546a
add esp, 0xc
test eax, eax
jne 0x100294e6
push 0x48
lea edx, [esp + 0x30]
push edi
push edx
call fcn.10037fe0
movzx eax, byte [esi]
add esi, 1
add esp, 0xc
push esi
lea esi, [esp + 0x78]
mov dword [esp + 0x78], 0x67452301
mov dword [esp + 0x7c], 0xefcdab89
mov dword [esp + 0x80], 0x98badcfe
mov dword [esp + 0x84], 0x10325476
mov dword [esp + 0x88], 0xc3d2e1f0
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], edi
call fcn.1002cc30
add esp, 4
lea edi, [esp + 0x34]
mov ecx, esi
call fcn.1002ccd0
lea edi, [esp + 0x100]
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], 6
call fcn.10028920
mov eax, dword [esp + 0x20]
push eax
mov ecx, ebx
call fcn.10028750
add esp, 4
lea eax, [esp + 0x128]
lea ecx, [esp + 0x48]
call fcn.10028950
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], vtable.CEllipticCurveContext.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.1002a6a0
mov dword [esp + 0x160], ebx
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x10029621
lea ebx, [esp + 0x100]
lea esi, [esp + 0xd8]
lea ecx, [esp + 0x14]
call fcn.1002a370
mov ax, word [esp + 0xd8]
mov cl, al
add cl, cl
mov byte [edi], cl
movzx ecx, ax
test ecx, ecx
jle 0x10029621
lea eax, [edi + 1]
lea ecx, [ecx]
movzx edx, byte [esp + ecx*2 + 0xd9]
mov byte [eax], dl
movzx edx, byte [esp + ecx*2 + 0xd8]
add eax, 1
mov byte [eax], dl
sub ecx, 1
add eax, 1
test ecx, ecx
jg 0x10029600
mov word [esp + 0xd8], 0xf
mov esi, 1
lea eax, [esp + 0x2c]
push eax
call fcn.10028840
mov word [esp + esi*2 + 0xdc], ax
add esi, 1
add esp, 4
cmp esi, 0x10
jb 0x10029630
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x104]
push edx
lea edi, [esp + 0x7c]
lea ecx, [esp + 0x130]
lea edx, [esp + 0x1c]
call fcn.1002a490
mov bx, word [esp + 0x74]
test bx, bx
je 0x10029621
mov dx, word [esp + 0x9a]
mov ecx, dword [esp + 0x24]
movzx esi, dx
xor edi, edi
cmp esi, edi
mov byte [ecx + 1], dl
mov eax, 2
jle 0x100296c3
jmp 0x100296a0
movzx edx, byte [esp + esi*2 + 0x9b]
mov byte [ecx + eax], dl
movzx edx, byte [esp + esi*2 + 0x9a]
add eax, 1
mov byte [ecx + eax], dl
sub esi, 1
add eax, 1
cmp esi, edi
jg 0x100296a0
movzx esi, bx
mov byte [ecx + eax], bl
add eax, 1
cmp esi, edi
jle 0x100296ed
movzx edx, byte [esp + esi*2 + 0x75]
mov byte [ecx + eax], dl
movzx edx, byte [esp + esi*2 + 0x74]
add eax, 1
mov byte [ecx + eax], dl
sub esi, 1
add eax, 1
cmp esi, edi
jg 0x100296d0
mov esi, dword [esp + 0x20]
sub al, 1
push esi
mov byte [ecx], al
call fcn.100368f4
add esp, 4
push esi
call fcn.100366fa
add esp, 4
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0x14], vtable.CEllipticCurveContext.0
je 0x1002972f
push eax
call fcn.10034fb4
add esp, 4
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x10029744
push eax
call fcn.10034fb4
add esp, 4
mov dword [esp + 0x1c], edi
xor eax, eax
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.100346f8
mov esp, ebp
pop ebp
ret