Function at 0x46ab80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x50], edx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 3
je 0x46abc0
cmp eax, 2
je 0x46abc0
pop edi
mov eax, 0x302
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
push ebx
test esi, esi
je 0x46ae1a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x46abd8
test edi, edi
je 0x46ae1a
mov ecx, dword [ebp + 0x18]
mov ebx, ecx
and ebx, 2
mov dword [ebp - 0x4c], ebx
je 0x46abed
test edx, edx
je 0x46ae1a
test cl, 1
je 0x46ac26
mov dword [esi], 0x67452301
xor ecx, ecx
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x58], 0
jmp 0x46ac29
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x48], ecx
cmp ecx, 0x3f
jle 0x46ac47
pop ebx
pop edi
mov eax, 0x301
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ebx, 0x40
sub ebx, ecx
test eax, eax
je 0x46ad3c
mov ecx, eax
lea edx, [eax*8]
add dword [esi + 0x10], edx
shr ecx, 0x1d
cmp dword [esi + 0x10], edx
lea eax, [ecx + 1]
cmovae eax, ecx
add dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jae 0x46ac99
push eax
mov eax, dword [ebp - 0x48]
add eax, 0x18
add eax, esi
push edi
push eax
call fcn.00470170
mov eax, dword [ebp + 0x14]
add esp, 0xc
add dword [esi + 0x58], eax
mov ecx, dword [esi + 0x58]
jmp 0x46ad3c
sub eax, ebx
mov dword [ebp + 0x14], eax
test ebx, ebx
je 0x46acbc
mov ecx, dword [ebp - 0x48]
sub ecx, edi
add ecx, esi
nop dword [eax]
mov al, byte [edi]
mov byte [ecx + edi + 0x18], al
inc edi
sub ebx, 1
jne 0x46acb0
lea eax, [esi + 0x18]
push 0x10
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0046d660
add esp, 0xc
lea eax, [ebp - 0x44]
cmp dword [ebp + 8], 3
push esi
push eax
jne 0x46ace0
call fcn.0046a500
jmp 0x46ace5
call fcn.0046a080
mov ebx, dword [ebp + 0x14]
add esp, 8
shr ebx, 6
test ebx, ebx
je 0x46ad23
push 0x10
lea eax, [ebp - 0x44]
dec ebx
push edi
push eax
call fcn.0046d660
add esp, 0xc
lea eax, [ebp - 0x44]
cmp dword [ebp + 8], 3
push esi
push eax
jne 0x46ad14
call fcn.0046a500
jmp 0x46ad19
call fcn.0046a080
add esp, 8
add edi, 0x40
test ebx, ebx
jne 0x46acf2
mov ebx, dword [ebp + 0x14]
lea eax, [esi + 0x18]
and ebx, 0x3f
push ebx
push edi
push eax
call fcn.00470170
add esp, 0xc
mov dword [esi + 0x58], ebx
mov ecx, ebx
cmp dword [ebp - 0x4c], 0
je 0x46ae07
lea edi, [ecx + esi]
mov eax, 0x3f
mov byte [edi + 0x18], 0x80
sub eax, ecx
add edi, 0x19
cmp eax, 8
jae 0x46ada0
push eax
push 0
push edi
call fcn.00470010
push 0x10
lea edi, [esi + 0x18]
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.0046d660
add esp, 0x18
lea eax, [ebp - 0x44]
cmp dword [ebp + 8], 3
push esi
push eax
jne 0x46ad89
call fcn.0046a500
jmp 0x46ad8e
call fcn.0046a080
add esp, 8
push 0x38
push 0
push edi
call fcn.00470010
add esp, 0xc
jmp 0x46adb7
lea ecx, [eax - 8]
test ecx, ecx
je 0x46adb7
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 + 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0046d660
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp dword [ebp + 8], 3
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x44]
push esi
push eax
jne 0x46ade7
call fcn.0046a500
jmp 0x46adec
call fcn.0046a080
add esp, 8
push 4
push esi
push dword [ebp - 0x50]
call fcn.0046d6c0
push 0x5c
push 0
push esi
call fcn.00470010
add esp, 0x18
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x302
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0046d700
mov esp, ebp
pop ebp
ret