Function at 0x4ed980
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x599850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx + 0x508]
mov edi, dword [eax]
mov dword [ebp - 0x28], edi
cmp byte [edi + 0x1da8], 0
je 0x4ed9be
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
test byte [eax + 0x66], 8
jne 0x4ed9ff
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x40]
test ecx, ecx
jg 0x4ed9ff
jl 0x4ed9d8
cmp eax, 0xc
jae 0x4ed9ff
push ecx
push eax
push str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
push 0x2a
push ebx
call fcn.004c2100
add esp, 0x14
mov eax, 0xffffffe2
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
push 0
push 0xc
push ebx
call fcn.004bc4a0
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4eda38
push str.Truncated_ZIP_file_data
push 0x2a
push ebx
call fcn.004c2100
add esp, 0xc
mov eax, 0xffffffe2
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
push ebx
mov dword [ebp - 0x20], esi
call fcn.004f5870
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4edb16
add edi, 0x1d9c
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4eda60
mov dword [edi], 0x12345678
mov dword [edi + 4], 0x23456789
mov dword [edi + 8], 0x34567890
sub esi, ecx
je 0x4edad0
nop
mov al, byte [ebx]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
mov eax, dword [edi]
not eax
push eax
call fcn.004fc8e0
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x15]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.004fc8e0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x4eda80
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0xc
push dword [ebp - 0x24]
push edi
call fcn.004eec50
mov ebx, dword [ebp - 0x28]
add esp, 0x14
mov al, byte [ebp - 5]
mov ecx, dword [ebx + 0x3c]
cmp al, byte [ecx + 0x6b]
je 0x4edb50
mov esi, dword [ebp - 0x20]
cmp esi, 0x2710
jg 0x4edb49
push dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x20], esi
call fcn.004f5870
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4eda57
test esi, esi
mov eax, str.Incorrect_passphrase
mov ecx, str.Passphrase_required_for_this_entry
cmovle eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call fcn.004c2100
add esp, 0xc
mov eax, 0xffffffe7
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret
push str.Too_many_incorrect_passphrases
jmp 0x4edb26
mov esi, dword [ebp - 0x1c]
push 0
push 0xc
push esi
call fcn.004bc4c0
mov eax, dword [ebx + 0x3c]
add esp, 0xc
mov byte [ebx + 0x1da8], 1
test byte [eax + 0x66], 8
jne 0x4edb78
add dword [ebx + 0x40], 0xfffffff4
adc dword [ebx + 0x44], 0xffffffff
add dword [ebx + 0x48], 0xc
push esi
adc dword [ebx + 0x4c], 0
mov dword [ebx + 0x1d94], 0
call fcn.004eece0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.004ff754
mov esp, ebp
pop ebp
ret