Function at 0x4686a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push ebx
push esi
mov esi, edx
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x468a54
movzx edx, word [ebx + 0x420]
mov eax, edx
shr eax, 5
and eax, 3
mov ecx, eax
test dl, 8
je 0x4686e1
cmp eax, 1
jne 0x468a54
test edx, 0x4000
je 0x468a54
test cx, cx
jne 0x468704
mov eax, 0x4000
test word [ebx + 0x424], ax
jne 0x468a54
movzx eax, word [ebx + 0x2e0]
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x38], xmm0
cmp al, 3
jne 0x468722
shr eax, 8
cmp al, 4
jae 0x468731
mov eax, dword [ebx + 8]
test eax, eax
je 0x468731
lea edi, [eax + 0xc9a]
jmp 0x468762
mov eax, dword [ebx + 0x298]
test byte [eax + 0x44], 1
je 0x46875f
lea edi, [eax + 0x24]
mov dword [ebp - 8], edi
cmp esi, eax
jne 0x468765
movups xmm0, xmmword [eax + 0x58]
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [eax + 0x68]
mov al, byte [eax + 0x78]
mov byte [ebp - 2], al
movups xmmword [ebp - 0x38], xmm0
jmp 0x468765
lea edi, [eax + 0x58]
mov dword [ebp - 8], edi
mov ecx, dword [esi + 0x1b4]
mov eax, 0x200
test ecx, ecx
je 0x46877d
cmp word [esi + 0x1ba], ax
jae 0x4687aa
cmp word [esi + 0x1ba], 0
je 0x468790
test ecx, ecx
je 0x468790
call fcn.00472860
lea eax, [ebp - 0x2d8]
mov dword [esi + 0x1b8], 0x2000000
mov dword [esi + 0x1b4], eax
mov byte [ebp - 1], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], 0x67452301
mov dword [ebp - 0x48], 0xefcdab89
mov dword [ebp - 0x44], 0x98badcfe
mov dword [ebp - 0x40], 0x10325476
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x90], 0
test edi, edi
je 0x468977
mov dword [ebp - 0x94], 0x20
lea edx, [ebp - 0xd8]
movups xmm0, xmmword [edi]
lea ecx, [ebp - 0x98]
movups xmmword [ebp - 0x8c], xmm0
movups xmm0, xmmword [edi + 0x10]
mov dword [ebp - 0x98], 0x20
movups xmmword [ebp - 0x7c], xmm0
call fcn.004ca890
test eax, eax
jne 0x468977
movzx ecx, byte [ebp - 0xd8]
movzx eax, byte [ebp - 0xd7]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xd6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xd5]
shl ecx, 8
or ecx, eax
mov eax, 0x2bd4577d
mul ecx
push 0x420dc70
shr edx, 0xa
imul eax, edx, 0x175d
sub ecx, eax
imul eax, ecx, 0x1348
add eax, 0x568dc0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x10]
mov ecx, 0xb
cmp dword [edx + 4], ecx
mov ebx, dword [edx]
cmovb ecx, dword [edx + 4]
sub ebx, 1
mov dword [ebp - 0xc], ecx
js 0x46889c
cmp ebx, 0xb
jl 0x4688a1
mov ebx, 0xa
test ecx, ecx
jle 0x4688fb
imul eax, ebx, 0x1c0
add edx, 8
add eax, edx
mov edx, edi
mov dword [ebp - 0x18], eax
mov edi, 0x1c
lea ecx, [eax + 0x58]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4688dc
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4688c0
mov eax, dword [ebp - 0x18]
mov edi, eax
test eax, eax
jne 0x468908
jmp 0x4688fd
test ebx, ebx
jle 0x4688e3
dec ebx
jmp 0x4688e8
mov ebx, 0xa
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x4688fb
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
jmp 0x4688a5
xor edi, edi
push 0x420dc70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x468974
movzx eax, word [edi + 0xac]
push eax
call fcn.00491db0
mov ebx, dword [ebp - 0x14]
mov edx, eax
movzx ecx, word [ebx + 0x2e0]
push ecx
call fcn.00491db0
add esp, 8
cmp eax, edx
jne 0x468941
call fcn.004940c0
mov ecx, dword [edi + 0x54]
add ecx, dword [edi + 0x50]
cmp eax, ecx
jb 0x468953
push 0x420dc70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [ebp - 1]
xor edi, edi
jmp 0x468995
sub esp, 0x10
mov edx, esi
mov ecx, edi
call fcn.004674c0
add esp, 0x10
mov edi, eax
push 0x420dc70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [ebp - 1]
jmp 0x468995
mov ebx, dword [ebp - 0x14]
mov cl, byte [ebp - 1]
xor edi, edi
test cl, cl
je 0x468995
lea eax, [esi + 0x105]
mov dword [esi + 0x1b4], eax
xor eax, eax
mov word [esi + 0x1ba], ax
mov eax, dword [ebx + 0x298]
test byte [eax + 0x44], 1
je 0x4689c1
cmp esi, eax
jne 0x4689c1
movups xmm0, xmmword [ebp - 0x28]
mov dl, byte [ebp - 2]
movups xmmword [eax + 0x58], xmm0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [eax + 0x68], xmm0
mov eax, dword [ebx + 0x298]
mov byte [eax + 0x78], dl
test cl, cl
je 0x468a4b
cmp edi, 1
jne 0x468a37
movzx eax, word [esi + 0x1b8]
mov ecx, 0xae
cmp ax, cx
jbe 0x4689fc
mov ecx, eax
call fcn.00472840
mov ecx, eax
mov dword [esi + 0x1b4], ecx
test ecx, ecx
jne 0x468a11
xor edi, edi
mov dword [esi + 0x1b8], eax
jmp 0x468a05
xor eax, eax
mov word [esi + 0x1ba], ax
lea ecx, [esi + 0x105]
mov dword [esi + 0x1b4], ecx
cmp edi, 1
jne 0x468a4b
movzx eax, word [esi + 0x1b8]
push eax
lea eax, [ebp - 0x2d8]
push eax
push ecx
call fcn.0041d170
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x105]
mov dword [esi + 0x1b4], eax
xor eax, eax
mov dword [esi + 0x1b8], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret