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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5be984]
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 - 0x24], esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x49350c
cmp dword [esi + 0x38], 0
je 0x49350c
cmp dword [esi + 0x9c], 0
je 0x493225
push esi
call fcn.004927a0
add esp, 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00493900
add esp, 0x10
test eax, eax
je 0x493253
pop esi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
push edi
push 0x90
call fcn.0050d832
mov edi, eax
add esp, 4
test edi, edi
je 0x49329f
push 0x4000
call fcn.0050d832
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp + 0x14]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], 0
mov dword [edi + 0x8c], edx
test eax, eax
jne 0x4932b5
push edi
call fcn.004faf71
add esp, 4
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x40], 0
test ecx, ecx
je 0x4932c8
mov eax, dword [esi + 0x54]
mov dword [ecx], eax
test ebx, ebx
je 0x4932fd
mov dword [ebx], 6
mov eax, dword [esi + 0x50]
and eax, 6
sub eax, 2
je 0x4932f7
sub eax, 2
je 0x4932ef
sub eax, 2
jne 0x4932fd
mov dword [ebx], 1
jmp 0x4932fd
mov dword [ebx], 2
jmp 0x4932fd
mov dword [ebx], 9
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], 0
mov eax, dword [esi + 0x54]
mov dword [edi + 0x84], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x80], eax
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x70], xmm0
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x88], eax
mov dword [edi + 0x18], 0
cmp dword [esi + 0x54], 8
jne 0x493379
test edx, edx
jne 0x493379
push 0x38
push str.1.2.3
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.00490d30
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4934f0
mov dword [edi + 0x40], 1
mov eax, dword [esi + 0x60]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x1e
add eax, dword [esi + 0x98]
mov dword [edi + 0x3c], eax
mov dword [edi + 8], 0
mov dword [esi + 0x9c], edi
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4934dd
call fcn.004947b0
lea ebx, [esi + 0xa4]
mov dword [esi + 0xb0], eax
mov dword [ebp - 0x14], eax
mov dword [ebx], 0x12345678
mov dword [ebx + 4], 0x23456789
mov dword [ebx + 8], 0x34567890
mov al, byte [edi]
mov dword [ebp - 0x1c], ebx
test al, al
je 0x49343f
mov ecx, 0x12345678
mov esi, 0x23456789
mov edx, 0x34567890
nop dword [eax]
mov ebx, dword [ebp - 0x14]
lea edi, [edi + 1]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x1c]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebx], eax
movzx eax, al
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [ebx + 4], esi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 8], edx
mov al, byte [edi]
test al, al
jne 0x4933f0
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x9c]
push 0
mov eax, dword [ecx + 0x88]
add eax, dword [ecx + 0x3c]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 0x10]
push dword [esi + 0x1c]
call eax
add esp, 0x10
test eax, eax
jne 0x49329f
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 4]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 0xc
jb 0x49329f
xor edi, edi
nop word [eax + eax]
mov ecx, dword [esi + 0xac]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [ebp + edi - 0x10], al
movsx eax, byte [ebp + edi - 0x10]
push eax
push dword [esi + 0xb0]
push ebx
call fcn.00494030
inc edi
add esp, 0xc
cmp edi, 0xc
jl 0x493490
mov eax, dword [esi + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [esi + 0xa0], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
push edi
call fcn.004faf71
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
pop esi
xor ecx, ebp
pop ebx
call fcn.00484a0d
mov esp, ebp
pop ebp
ret