Function at 0x4ff6f1
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
lea eax, [esi + 0xa0]
mov edi, ecx
mov ebx, edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504cf0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
movzx eax, byte [edx]
add edx, 8
test eax, eax
je 0x4ff803
cmp eax, 1
jne 0x4ff817
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], edi
mov edi, ebx
lea ecx, [esi + 0x20]
mov ebx, eax
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004ff29c
mov ecx, dword [ebp + 8]
add esp, 8
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov dword [esi + 0xc], edi
mov edi, dword [edi + 0x1c]
mov dword [esi + 8], eax
mov dword [esi], edi
test ebx, ebx
je 0x4ff7f2
mov eax, edx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ecx
mov edi, 0xff
or eax, 3
mov ebx, eax
and ebx, 0xfffffffe
imul ebx, eax
xor bh, byte [ecx]
mov ecx, dword [esi + 8]
mov eax, ecx
xor cl, bh
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a8f2c]
mov dword [esi + 8], eax
mov ecx, eax
mov eax, edx
mov edx, 0xff
and ecx, edx
mov edx, eax
and eax, edi
mov edi, dword [esi + 0xc]
add ecx, dword [esi]
shr edx, 8
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi], ecx
shr ecx, 0x18
xor eax, ecx
mov ecx, dword [esi + 0x10]
xor edx, dword [eax*4 + 0x5a8f2c]
mov eax, dword [esi + 8]
mov byte [ecx], bh
mov ebx, dword [esi]
inc ecx
mov dword [edi + 0x18], eax
mov dword [esi + 8], eax
mov dword [edi + 0x1c], ebx
mov ebx, dword [esi + 4]
mov dword [edi + 0x20], edx
dec ebx
jmp 0x4ff774
movsd xmm0, qword [esi + 0x20]
mov eax, dword [esi + 0x14]
movsd qword [eax], xmm0
jmp 0x4ffc17
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ff29c
pop eax
pop ecx
jmp 0x4ffc17
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
mov dword [esi + 8], edx
mov edx, ecx
or edx, eax
je 0x4ff864
mov edx, dword [ebp + 0xc]
cmp ecx, edx
sbb eax, 0
mov eax, edx
cmovae ecx, edx
mov edx, dword [ebp + 8]
push 0x5a8b04
push eax
call fcn.00401000
pop ecx
pop ecx
mov dword [esi], eax
mov eax, edx
mov edx, dword [esi + 8]
lea ecx, [esi + 0x20]
push eax
push dword [esi]
call fcn.004ff29c
pop eax
pop ecx
lea eax, [esi + 0x20]
cmp byte [eax], 4
jne 0x4ff870
mov ecx, dword [esi + 0x24]
jmp 0x4ff87e
and dword [edi + 4], 0
mov byte [edi], 4
jmp 0x4ffc17
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
cmp al, 4
jne 0x4ffaaf
sub dword [ebx + 0x20], ecx
mov dword [esi + 4], ecx
sbb dword [ebx + 0x24], 0
cmp ecx, dword [ebp + 0xc]
ja 0x4ffc2b
mov dl, byte [ebx + 0xc8]
lea eax, [ebx + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
movzx ecx, dl
push 0x40
pop eax
sub eax, ecx
lea edi, [ebx + 0x88]
mov dword [esi + 0xc], ebx
mov dword [esi], ecx
cmp eax, dword [esi + 4]
mov dword [esi + 0x10], edi
jbe 0x4ff904
mov edx, edi
push 0x5a83a8
push 0x40
call fcn.0043347d
pop ecx
pop ecx
mov ecx, dword [esi + 4]
mov edi, edx
mov edx, eax
push 0x5a83b8
push edi
call fcn.00401000
pop ecx
pop ecx
mov ecx, eax
push 0x5a83c8
push dword [esi + 4]
mov edi, dword [ebp + 8]
push edi
call fcn.00463d7d
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0xc
add eax, ecx
jmp 0x4ff9cc
mov edi, dword [esi + 4]
test dl, dl
mov edx, dword [ebp + 8]
mov ecx, edi
mov dword [esi + 0x18], edx
je 0x4ff973
lea ecx, [esi + 0x20]
push eax
push edi
call fcn.004ffdc8
pop eax
pop ecx
lea ecx, [esi + 0x20]
mov edi, dword [esi + 0x10]
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov edx, edi
mov dword [esi + 0x44], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi]
mov dword [esi + 0x1c], eax
push 0x5a8368
push 0x40
call fcn.0043347d
pop ecx
pop ecx
mov ecx, eax
push 0x5a8378
push ebx
mov ebx, dword [esi + 0xc]
push dword [esi + 0x44]
call fcn.00463d7d
add esp, 0xc
lea ecx, [esi + 0x4c]
mov edx, edi
push 1
call fcn.004ffe30
mov ecx, dword [esi + 0x1c]
add esp, 4
mov edx, dword [esi + 0x18]
mov edi, ecx
mov eax, ecx
and edi, 0xffffffc0
and eax, 0x3f
mov dword [esi], eax
add edi, edx
cmp ecx, 0x40
jb 0x4ff99f
shr ecx, 6
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x4c]
push dword [esi + 0x1c]
call fcn.004ffe30
mov eax, dword [esi]
add esp, 4
mov edx, dword [esi + 0x10]
mov ecx, eax
push 0x5a8388
push 0x40
call fcn.00401000
pop ecx
pop ecx
mov ecx, eax
push 0x5a8398
push dword [esi]
push edi
call fcn.00463d7d
mov eax, dword [esi]
add esp, 0xc
mov ecx, dword [esi + 4]
mov edi, dword [ebp + 8]
mov byte [ebx + 0xc8], al
mov edx, edi
mov eax, dword [ebx + 0x18]
mov ebx, ecx
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x18], eax
push 0x5a8b24
push dword [ebp + 0xc]
call fcn.00401000
pop ecx
pop ecx
push edx
push eax
push dword [esi]
mov eax, dword [esi + 0x18]
call dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov eax, dword [ecx + 0x20]
or eax, dword [ecx + 0x24]
je 0x4ffa19
mov eax, dword [esi + 0x14]
mov dword [eax + 4], ebx
mov byte [eax], 4
jmp 0x4ffc17
cmp byte [ecx + 0xd0], 0
jne 0x4ffc3b
lea eax, [esi + 0x60]
xorps xmm0, xmm0
mov byte [ecx + 0xd0], 1
and word [eax + 8], 0
movsd qword [eax], xmm0
mov dword [esi], eax
push 0xa
pop ebx
mov edx, dword [esi + 8]
or dword [esi + 0xa8], 0xffffffff
test ebx, ebx
je 0x4ffae5
lea edi, [esi + 0x20]
mov ecx, edi
push ebx
push dword [esi]
call fcn.004ff29c
pop eax
pop ecx
cmp byte [esi + 0x20], 4
jne 0x4ffa91
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4ffab9
mov edx, dword [esi]
and dword [esi + 0xa8], 0
push 0x5a84c8
push ebx
call fcn.0043347d
pop ecx
pop edi
mov dword [esi], eax
cmp byte [esi + 0x20], 4
mov ebx, edx
je 0x4ffa41
jmp 0x4ffa9c
mov ecx, edi
call fcn.00401820
test al, al
je 0x4ffacd
or dword [esi + 0xa8], 0xffffffff
lea eax, [esi + 0x20]
push eax
call fcn.004ff130
pop eax
jmp 0x4ffa41
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x4ffc17
mov edx, dword [0x5a84c0]
mov ecx, dword [0x5a84c4]
mov eax, edx
shrd eax, ecx, 8
jmp 0x4ffad9
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov ecx, eax
shld eax, edx, 0x18
shr ecx, 8
cmp dl, 4
jne 0x4ffc03
lea ecx, [esi + 0x6c]
call fcn.004ff097
lea edi, [esi + 0x4c]
mov ecx, edi
call fcn.004ff097
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x48]
mov edx, ebx
push edi
call fcn.004ffc8b
pop eax
mov edi, dword [esi + 0xc]
xor eax, eax
lea ecx, [esi + 0x20]
mov edx, ebx
mov byte [edi + 0xc8], al
movsd xmm1, qword [edi + 0x58]
mov eax, dword [edi + 0x60]
movsd xmm0, qword [edi + 0x50]
movsd qword [ecx + 0x10], xmm1
movsd xmm1, qword [edi + 0x48]
mov dword [ecx + 0x18], eax
movsd qword [ecx + 8], xmm0
movsd qword [ecx], xmm1
xor ecx, ecx
push 0x5a83a8
push 0x40
call fcn.0043347d
pop ecx
pop ecx
mov ebx, edx
push 0x14
pop ecx
mov edx, eax
push 0x5a83b8
push ebx
call fcn.00401000
pop ecx
pop ecx
mov ecx, eax
push 0x5a83c8
push 0x14
lea eax, [esi + 0x4c]
push eax
call fcn.00463d7d
add esp, 0xc
mov edx, dword [esi + 0x10]
lea ebx, [esi + 0x6c]
mov byte [edi + 0xc8], 0x14
lea ecx, [esi + 0x20]
push ebx
call fcn.004ffc8b
pop eax
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
movsd xmm1, qword [ebx + 8]
lea edx, [esi + 0x60]
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x28], eax
lea ecx, [esi + 0x80]
mov eax, dword [edi + 0x80]
movsd qword [ecx + 8], xmm1
mov dword [edi + 0x40], eax
xor eax, eax
movsd xmm0, qword [edi + 0x78]
movsd qword [edi + 0x38], xmm0
movsd xmm0, qword [edi + 0x70]
movsd qword [edi + 0x30], xmm0
mov byte [edi + 0xc8], al
mov eax, dword [ebx + 0x10]
movsd xmm0, qword [ebx]
mov dword [ecx + 0x10], eax
movsd qword [ecx], xmm0
call fcn.004282c7
test al, al
je 0x4ffbfb
push 0x15
pop edx
mov ecx, dword [esi + 0x14]
push 0x5b
push str.Invalid_authentication_code__this_could_be_due_to_an_invalid_password_or_errors_in_the_dataTried_to_use_an_already_finalized_HMAC._This_is_a_bug_
call fcn.00438aa3
jmp 0x4ff810
mov ebx, dword [esi + 4]
jmp 0x4ffa0b
mov edi, dword [esi + 0x14]
shld ecx, eax, 8
movzx edx, dl
shl eax, 8
or eax, edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0xc]
push 0x5a8b14
call fcn.00526980
lea ecx, [esi + 0x20]
mov edx, 0x5a8bd0
mov dword [ecx], 0x5a8bc8
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], 4
and dword [ecx + 0xc], 0
call fcn.005268e0
push ebp
sub esp, 0xc
lea esi, [ebp - 0xac]
mov ebp, dword [esi + 0x98]
cmp byte [esi + 0x20], 4
jne 0x4ffc7f
add esp, 0xc
pop ebp
ret
lea eax, [esi + 0x20]
push eax
call fcn.004ff130
pop eax
jmp 0x4ffc7a