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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x582904]
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 0x49bb40
cmp dword [esi + 0x38], 0
je 0x49bb40
cmp dword [esi + 0x9c], 0
je 0x49b875
push esi
call fcn.0049b260
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.0049bda0
add esp, 0x10
test eax, eax
je 0x49b8a3
pop esi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b540
mov esp, ebp
pop ebp
ret
push edi
push 0x90
call fcn.0051269a
mov edi, eax
add esp, 4
test edi, edi
je 0x49b8ef
push 0x8000
call fcn.0051269a
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 0x49b905
push edi
call fcn.0051267d
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b540
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x40], 0
test ecx, ecx
je 0x49b918
mov eax, dword [esi + 0x54]
mov dword [ecx], eax
test ebx, ebx
je 0x49b94d
mov dword [ebx], 6
mov eax, dword [esi + 0x50]
and eax, 6
sub eax, 2
je 0x49b947
sub eax, 2
je 0x49b93f
sub eax, 2
jne 0x49b94d
mov dword [ebx], 1
jmp 0x49b94d
mov dword [ebx], 2
jmp 0x49b94d
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 0x49b9c7
test edx, edx
jne 0x49b9c7
push 0x38
push str.1.2.5
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.004a9fc0
add esp, 0x10
test eax, eax
jne 0x49b8f4
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 0x49bb2d
call fcn.004aa670
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 0x49ba8f
mov ecx, 0x12345678
mov esi, 0x23456789
mov edx, 0x34567890
nop word [eax + 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 0x49ba40
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 0x49b8ef
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 0x49b8ef
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.0049c4b0
inc edi
add esp, 0xc
cmp edi, 0xc
jl 0x49bae0
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.0050b540
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b540
mov esp, ebp
pop ebp
ret