Function at 0x4049e4
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 0x404bb6
test edi, edi
je 0x404bb6
mov dword [esp], 0
lea esi, [esp + 0x10]
mov dword [esp + 4], 0
cmp ebx, 0x3f
ja 0x404c8e
mov edx, esi
mov eax, edi
cmp ebx, 4
jae 0x404b86
xor ecx, ecx
test bl, 2
jne 0x404b66
test bl, 1
jne 0x404b56
mov dword [esp + 0x60], ebx
lea ecx, [ebx + 1]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
cmp ebx, 0x37
jbe 0x404cce
mov byte [esp + ebx + 0x10], 0x80
cmp ecx, 0x40
je 0x404adb
mov edx, 0x3f
add ecx, esi
sub edx, ebx
je 0x404adb
xor eax, eax
test dl, 1
je 0x404acb
mov eax, 1
mov byte [ecx], 0
cmp eax, edx
jae 0x404adb
mov byte [ecx + eax], 0
mov byte [ecx + eax + 1], 0
add eax, 2
cmp eax, edx
jb 0x404acb
mov ecx, 1
mov edx, esi
mov eax, esi
mov edi, esi
call fcn.00404d0c
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.00404d0c
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 0x404a87
movzx ecx, word [eax]
mov word [edx], cx
mov ecx, 2
test bl, 1
je 0x404a87
jmp 0x404b56
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 0x404b8d
lea edx, [esi + eax]
xor ecx, ecx
add eax, edi
test bl, 2
je 0x404a7e
jmp 0x404b66
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 0x404bfe
test edi, edi
je 0x404b0a
mov byte [ecx], 0
test edi, 2
je 0x404b0a
xor ebx, ebx
mov word [ecx + edi - 2], bx
jmp 0x404b0a
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 0x404b0a
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 0x404b0a
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x404cf6
mov dword [ebx + 4], 0
mov ecx, dword [esp]
mov edi, 8
cmp edi, ecx
jae 0x404b0a
mov dword [ebx + edi], 0
mov dword [ebx + edi + 4], 0
add edi, 8
cmp edi, ecx
jb 0x404c6d
jmp 0x404b0a
mov ecx, ebx
mov eax, esi
mov edx, edi
shr ecx, 6
call fcn.00404d0c
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 0x404cfe
add edi, eax
mov edx, esi
mov eax, edi
cmp ebx, 4
jb 0x404a73
jmp 0x404b86
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 0x404bc8
jmp 0x404b0a
mov ecx, dword [esp]
jmp 0x404c6d
mov edx, ecx
shld edx, eax, 3
shl eax, 3
jmp 0x404bbe