Function at 0x4057a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x74
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov edi, dword [esp + 0x88]
mov dword [esp + 0x6c], 0
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x50], 0x67452301
mov dword [esp + 0x54], 0xefcdab89
mov dword [esp + 0x58], 0x98badcfe
mov dword [esp + 0x5c], 0x10325476
test ebx, ebx
je 0x405972
test edi, edi
je 0x405972
mov dword [esp], 0
lea esi, [esp + 0x10]
mov dword [esp + 4], 0
cmp ebx, 0x3f
ja 0x405a4a
mov edx, esi
mov eax, edi
cmp ebx, 4
jae 0x405942
xor ecx, ecx
test bl, 2
jne 0x405922
test bl, 1
jne 0x405912
mov dword [esp + 0x60], ebx
lea ecx, [ebx + 1]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
cmp ebx, 0x37
jbe 0x405a8a
mov byte [esp + ebx + 0x10], 0x80
cmp ecx, 0x40
je 0x405897
mov edx, 0x3f
add ecx, esi
sub edx, ebx
je 0x405897
xor eax, eax
test dl, 1
je 0x405887
mov eax, 1
mov byte [ecx], 0
cmp eax, edx
jae 0x405897
mov byte [ecx + eax], 0
mov byte [ecx + eax + 1], 0
add eax, 2
cmp eax, edx
jb 0x405887
mov ecx, 1
mov edx, esi
mov eax, esi
mov edi, esi
call fcn.00405ac8
xor eax, eax
mov ecx, 0xe
mov edx, dword [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp]
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
shld edx, eax, 3
shl eax, 3
mov dword [esp + 0x68], eax
mov ecx, 1
mov dword [esp + 0x6c], edx
mov dword [esp + 0x48], eax
mov eax, esi
mov dword [esp + 0x4c], edx
mov edx, esi
call fcn.00405ac8
mov eax, dword [esp + 0x50]
mov dword [ebp], eax
mov eax, dword [esp + 0x54]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [ebp + 0xc], eax
add esp, 0x74
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
movzx eax, byte [eax + ecx]
mov byte [edx + ecx], al
jmp 0x405843
movzx ecx, word [eax]
mov word [edx], cx
mov ecx, 2
test bl, 1
je 0x405843
jmp 0x405912
mov edx, ebx
xor eax, eax
and edx, 0xfffffffc
mov ecx, dword [edi + eax]
mov dword [esi + eax], ecx
add eax, 4
cmp eax, edx
jb 0x405949
lea edx, [esi + eax]
xor ecx, ecx
add eax, edi
test bl, 2
je 0x40583a
jmp 0x405922
xor eax, eax
xor edx, edx
lea esi, [esp + 0x10]
mov byte [esp + 0x10], 0x80
mov ecx, 1
mov edi, 0x38
sub edi, ecx
add ecx, esi
cmp edi, 4
jae 0x4059ba
test edi, edi
je 0x4058c6
mov byte [ecx], 0
test edi, 2
je 0x4058c6
xor ebx, ebx
mov word [ecx + edi - 2], bx
jmp 0x4058c6
lea ebx, [ecx + 4]
mov dword [ecx], 0
and ebx, 0xfffffffc
mov dword [ecx + edi - 4], 0
sub ecx, ebx
add ecx, edi
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x4058c6
mov edi, ecx
and edi, 0xfffffffc
mov dword [esp], edi
lea edi, [ecx - 1]
shr edi, 2
and edi, 1
mov dword [esp + 8], edi
mov edi, 4
mov dword [ebx], 0
cmp edi, ecx
jae 0x4058c6
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405ab2
mov dword [ebx + 4], 0
mov ecx, dword [esp]
mov edi, 8
cmp edi, ecx
jae 0x4058c6
mov dword [ebx + edi], 0
mov dword [ebx + edi + 4], 0
add edi, 8
cmp edi, ecx
jb 0x405a29
jmp 0x4058c6
mov ecx, ebx
mov eax, esi
mov edx, edi
shr ecx, 6
call fcn.00405ac8
mov eax, ebx
xor ecx, ecx
and eax, 0xffffffc0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
and ebx, 0x3f
je 0x405aba
add edi, eax
mov edx, esi
mov eax, edi
cmp ebx, 4
jb 0x40582f
jmp 0x405942
xor edx, edx
mov eax, ebx
add eax, dword [esp + 0x68]
adc edx, dword [esp + 0x6c]
shld edx, eax, 3
mov byte [esp + ebx + 0x10], 0x80
shl eax, 3
cmp ecx, 0x38
jne 0x405984
jmp 0x4058c6
mov ecx, dword [esp]
jmp 0x405a29
mov edx, ecx
shld edx, eax, 3
shl eax, 3
jmp 0x40597a