Function at 0x45f820
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x45fc3d
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x45fc3d
cmp dword [esi + 0xe0], 0
je 0x45f861
push esi
call fcn.0045f5e0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0045e730
add esp, 0x10
test eax, eax
je 0x45f891
pop esi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0x14
push edi
push 0xd0
call fcn.0046ed75
mov edi, eax
add esp, 4
test edi, edi
je 0x45f8ea
push 0x4000
call fcn.0046ed75
mov ecx, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edi + 0x50], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x54], edx
mov edx, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 0x58], ecx
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0xc8], edx
test eax, eax
jne 0x45f902
push edi
call fcn.0046e9c4
add esp, 4
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x48], 0
test ecx, ecx
je 0x45f918
mov eax, dword [esi + 0x8c]
mov dword [ecx], eax
test ebx, ebx
je 0x45f950
mov dword [ebx], 6
mov eax, dword [esi + 0x88]
and eax, 6
sub eax, 2
je 0x45f94a
sub eax, 2
je 0x45f942
sub eax, 2
jne 0x45f950
mov dword [ebx], 1
jmp 0x45f950
mov dword [ebx], 2
jmp 0x45f950
mov dword [ebx], 9
mov eax, dword [esi + 0x94]
mov dword [edi + 0x74], eax
mov dword [edi + 0x70], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov eax, dword [esi + 0x8c]
mov dword [edi + 0xb8], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0xb4], eax
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x88], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x98], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0xa8], xmm0
mov eax, dword [esi + 0x28]
mov dword [edi + 0xb0], eax
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], ecx
mov dword [edi + 0x18], 0
mov eax, dword [esi + 0x8c]
cmp eax, 0xc
jne 0x45fbdc
test edx, edx
jne 0x45f9e4
mov dword [edi + 0xc8], 1
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], ecx
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
mov dword [edi + 0x80], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x84], ecx
xor ecx, ecx
add eax, dword [esi + 0xd8]
adc ecx, dword [esi + 0xdc]
add eax, 0x1e
mov dword [edi + 0x40], eax
adc ecx, 0
mov dword [edi + 8], 0
mov dword [edi + 0x44], ecx
mov dword [esi + 0xe0], edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 0xe4], 0
test edi, edi
je 0x45fbc7
call fcn.00462600
mov dword [esi + 0xf8], eax
mov dword [ebp - 0x14], eax
mov dword [esi + 0xec], 0x12345678
mov dword [esi + 0xf0], 0x23456789
mov dword [esi + 0xf4], 0x34567890
mov al, byte [edi]
test al, al
je 0x45fadc
mov ecx, 0x12345678
mov ebx, 0x23456789
mov edx, 0x34567890
nop
mov edi, dword [ebp - 0x14]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
movzx eax, cl
add eax, ebx
mov dword [esi + 0xec], ecx
imul ebx, eax, 0x8088405
inc ebx
mov eax, ebx
mov dword [esi + 0xf0], ebx
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [edi + eax*4]
mov edi, dword [ebp + 0x18]
inc edi
mov dword [esi + 0xf4], edx
mov dword [ebp + 0x18], edi
mov al, byte [edi]
test al, al
jne 0x45fa90
mov ecx, dword [esi + 0xe0]
push 0
mov edx, dword [ecx + 0xc0]
add edx, dword [ecx + 0x40]
mov eax, dword [ecx + 0xc4]
adc eax, dword [ecx + 0x44]
push eax
push edx
push dword [esi + 0x30]
push esi
call fcn.00462630
add esp, 0x14
test eax, eax
jne 0x45f8ea
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x30]
mov eax, dword [esi + 4]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 0xc
jb 0x45f8ea
mov edi, dword [esi + 0xf8]
xor edx, edx
mov ecx, dword [esi + 0xf4]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, dword [esi + 0xec]
shr eax, 8
xor byte [ebp + edx - 0x10], al
movsx eax, byte [ebp + edx - 0x10]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
movzx eax, cl
add eax, dword [esi + 0xf0]
imul eax, eax, 0x8088405
mov dword [esi + 0xec], ecx
mov ecx, dword [esi + 0xf4]
inc eax
mov dword [esi + 0xf0], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
mov dword [esi + 0xf4], ecx
cmp edx, 0xc
jl 0x45fb31
mov eax, dword [esi + 0xe0]
add dword [eax + 0x40], 0xc
adc dword [eax + 0x44], 0
mov eax, dword [esi + 0xe0]
add dword [eax + 0x78], 0xfffffff4
adc dword [eax + 0x7c], 0xffffffff
mov dword [esi + 0xe4], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 8
jne 0x45f9e4
test edx, edx
jne 0x45f9e4
push 0x38
push 0x49b8bc
lea eax, [edi + 4]
mov dword [edi + 0x24], edx
push 0xfffffffffffffff1
push eax
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], edx
mov dword [eax], edx
mov dword [edi + 8], edx
call fcn.00461fa0
mov ebx, eax
test ebx, ebx
jne 0x45fc1f
mov dword [edi + 0x48], 8
jmp 0x45f9e4
push edi
call fcn.0046e9c4
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
pop esi
xor ecx, ebp
pop ebx
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0x14