Function at 0x46d100
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x58], eax
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x54], ebx
push esi
mov esi, dword [ebp + 0xc]
cmp edx, 6
je 0x46d143
cmp edx, 5
je 0x46d143
pop esi
mov eax, 0x402
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
push edi
test esi, esi
je 0x46d483
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x46d15e
test ebx, ebx
je 0x46d483
mov ecx, dword [ebp + 0x1c]
mov eax, ecx
and eax, 2
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
je 0x46d178
cmp dword [ebp - 0x58], 0
je 0x46d483
test cl, 1
je 0x46d2d6
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x46d237
cmp edx, 6
mov dword [ebp - 0x48], 0x64f98fa7
mov ecx, 0x367cd507
mov dword [ebp - 0x50], 0xbefa4fa4
mov eax, 0xbb67ae85
mov ebx, 0xa54ff53a
cmovne eax, ecx
mov edi, 0x510e527f
mov dword [ebp - 0x5c], eax
mov ecx, 0x3070dd17
mov eax, 0x3c6ef372
mov edx, 0x9b05688c
cmovne eax, ecx
mov ecx, 0x68581511
mov dword [ebp - 0x60], eax
mov eax, 0xf70e5939
cmovne ebx, eax
mov eax, 0xffc00b31
cmovne edi, eax
cmp dword [ebp + 8], 6
cmovne edx, ecx
mov ecx, 0x1f83d9ab
cmovne ecx, dword [ebp - 0x48]
mov dword [ebp - 0x48], 0x5be0cd19
mov eax, dword [ebp - 0x48]
cmovne eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov eax, 0x6a09e667
mov dword [ebp - 0x50], 0xc1059ed8
cmovne eax, dword [ebp - 0x50]
mov dword [esi], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp - 0x54]
mov dword [esi + 0x10], edi
mov edi, dword [ebp - 0x4c]
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
jmp 0x46d262
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x1c], eax
xor ecx, ecx
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x68], 0
mov dword [ebp - 0x48], ecx
mov edx, 0x40
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x54], eax
test edi, edi
je 0x46d39f
mov eax, edi
lea edx, [edi*8]
add dword [esi + 0x20], edx
shr eax, 0x1d
cmp dword [esi + 0x20], edx
lea ecx, [eax + 1]
cmovae ecx, eax
add dword [esi + 0x24], ecx
cmp dword [esi + 0x24], ecx
jae 0x46d2f7
push 0x6c
push 0
push esi
call fcn.00470010
add esp, 0xc
mov eax, 0x403
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x48], ecx
cmp ecx, 0x3f
jbe 0x46d27f
pop edi
pop esi
mov eax, 0x401
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x54]
cmp edi, ecx
jae 0x46d31c
mov eax, dword [ebp - 0x48]
push edi
add eax, 0x28
add eax, esi
push ebx
push eax
call fcn.00470170
add esp, 0xc
add dword [esi + 0x68], edi
mov ecx, dword [esi + 0x68]
jmp 0x46d39a
sub edi, ecx
mov dword [ebp - 0x4c], edi
test ecx, ecx
je 0x46d33c
mov edx, dword [ebp - 0x48]
sub edx, ebx
add edx, esi
nop dword [eax]
mov al, byte [ebx]
mov byte [edx + ebx + 0x28], al
inc ebx
sub ecx, 1
jne 0x46d330
lea eax, [esi + 0x28]
push 0x10
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00461110
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0046ae30
shr edi, 6
add esp, 0x14
test edi, edi
je 0x46d381
nop
push 0x10
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00461110
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0046ae30
add esp, 0x14
add ebx, 0x40
sub edi, 1
jne 0x46d360
mov edi, dword [ebp - 0x4c]
lea eax, [esi + 0x28]
and edi, 0x3f
push edi
push ebx
push eax
call fcn.00470170
add esp, 0xc
mov dword [esi + 0x68], edi
mov ecx, edi
mov edx, 0x40
cmp dword [ebp - 0x64], 0
je 0x46d470
lea edi, [esi + 0x28]
sub edx, ecx
add edi, ecx
test byte [ebp - 0x68], 4
jne 0x46d428
mov byte [edi], 0x80
dec edx
inc edi
cmp edx, 8
jae 0x46d3f1
push edx
push 0
push edi
call fcn.00470010
push 0x10
lea edi, [esi + 0x28]
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00461110
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0046ae30
push 0x38
push 0
push edi
call fcn.00470010
add esp, 0x2c
jmp 0x46d408
lea ecx, [edx - 8]
test ecx, ecx
je 0x46d408
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0xe
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00461110
mov eax, dword [esi + 0x24]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 8], eax
jmp 0x46d443
push edx
push 0
push edi
call fcn.00470010
push 0x10
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00461110
add esp, 0x18
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0046ae30
xor eax, eax
cmp dword [ebp + 8], 6
sete al
add eax, 7
push eax
push esi
push dword [ebp - 0x58]
call fcn.00461170
push 0x6c
push 0
push esi
call fcn.00470010
add esp, 0x20
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x402
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d700
mov esp, ebp
pop ebp
ret