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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp byte [ebp + 0xc], 0
mov eax, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov ecx, dword [ebx]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x48a1fb
cmp byte [esi + 0x37], 0
je 0x48a9e5
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
test edi, edi
jle 0x48a9e5
cmp dword [esi + 0x1f], 0
jg 0x48a9e5
nop dword [eax + eax]
mov eax, dword [esi + 0x41]
cmp eax, dword [esi + 0x49]
jl 0x48a9e5
mov dword [ebp - 8], ecx
mov edx, ecx
cmp edi, ecx
jg 0x48a261
mov cl, byte [ebp + 0xc]
test cl, cl
je 0x48a240
mov byte [esi + 0x3c], 1
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xc], 0
je 0x48a9b4
xor edx, edx
mov dword [ebx], 0
mov dword [ebp - 8], edx
cmp dword [ebp - 0x24], edx
je 0x48a9e5
mov al, byte [esi + 0x15]
mov dword [ebp - 0x18], eax
mov al, byte [esi + 0x16]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx]
cmp edx, 0x29
ja case.0x48a285.25
movzx eax, byte [edx + 0x48aa44]
jmp dword [eax*4 + 0x48a9ec]
cmp edx, 0xa
ja case.default.0x48a295
jmp dword [edx*4 + 0x48aa70]
mov byte [esi + 0x15], 4
jmp case.default.0x48a295
mov byte [esi + 0x15], 5
jmp case.default.0x48a295
mov byte [esi + 0x15], 6
jmp case.default.0x48a295
mov byte [esi + 0x15], 7
jmp case.default.0x48a295
imul eax, dword [0x563db0], 0x8088405
mov ecx, 4
inc eax
mov dword [0x563db0], eax
mul ecx
mov dword [ebp - 0x30], eax
cmp edx, 3
ja case.0x48a295.2
jmp dword [edx*4 + 0x48aa9c]
mov byte [esi + 0x15], 0
jmp case.default.0x48a295
push dword [0x560539]
mov edx, dword [0x560535]
mov ecx, esi
call fcn.00489400
add esp, 4
jmp case.default.0x48a295
push dword [0x560539]
mov edx, dword [0x560535]
mov ecx, esi
call fcn.00489400
movzx eax, byte [esi + 0x15]
add esp, 4
cmp eax, 3
ja case.0x48a295.2
jmp dword [eax*4 + 0x48aaac]
mov byte [esi + 0x15], 3
jmp case.default.0x48a295
mov byte [esi + 0x15], 1
jmp case.default.0x48a295
mov byte [esi + 0x15], 2
mov ecx, dword [esi]
movzx eax, byte [esi + 0x15]
push eax
push esi
mov eax, dword [ecx]
call eax
mov eax, dword [esi + 0x1f]
add esp, 8
mov ecx, dword [ebp - 0x10]
test eax, eax
jg 0x48a356
cmp byte [ecx + 0xd], 0
je 0x48a35b
inc dword [ebx]
mov eax, dword [esi + 0x1f]
test eax, eax
jne 0x48a370
cmp byte [ecx + 0xd], al
je 0x48a370
mov ecx, dword [ebp - 0x18]
mov byte [esi + 0x15], cl
mov dl, byte [ebp - 1]
mov byte [esi + 0x16], dl
mov eax, dword [esi + 0x23]
mov eax, dword [eax*4 + 0x53d558]
mov dword [esi + 0x49], eax
jmp 0x48a7a2
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
push ecx
push esi
mov eax, dword [eax]
call eax
mov eax, dword [esi + 0x1f]
add esp, 8
mov ecx, dword [ebp - 0x10]
test eax, eax
jg 0x48a3a0
cmp byte [ecx + 0xd], 0
je 0x48a3a5
inc dword [ebx]
mov eax, dword [esi + 0x1f]
test eax, eax
jne 0x48a36a
cmp byte [ecx + 0xd], al
je 0x48a36a
mov eax, dword [ebp - 0x18]
mov byte [esi + 0x15], al
jmp 0x48a36a
mov dl, byte [ebp - 1]
mov byte [esi + 0x15], dl
mov eax, dword [ecx]
add eax, 0xfffffff4
cmp eax, 0xa
ja case.default.0x48a3ca
jmp dword [eax*4 + 0x48aabc]
movzx eax, dl
cmp eax, 3
ja case.0x48a3ca.14
jmp dword [eax*4 + 0x48aae8]
mov byte [esi + 0x15], 1
jmp case.default.0x48a3ca
movzx eax, dl
cmp eax, 3
ja case.0x48a3ca.14
jmp dword [eax*4 + 0x48aaf8]
movzx eax, dl
cmp eax, 3
ja case.0x48a3ca.14
jmp dword [eax*4 + 0x48ab08]
mov ecx, esi
call fcn.00489510
jmp case.default.0x48a3ca
imul eax, dword [0x563db0], 0x8088405
mov ecx, 4
inc eax
mov dword [0x563db0], eax
mul ecx
mov dword [ebp - 0x30], eax
cmp edx, 3
ja case.0x48a3ca.14
jmp dword [edx*4 + 0x48ab18]
mov byte [esi + 0x15], 0
jmp case.default.0x48a3ca
push dword [0x560539]
mov edx, dword [0x560535]
mov ecx, esi
call fcn.00489400
add esp, 4
jmp case.default.0x48a3ca
push dword [0x560539]
mov edx, dword [0x560535]
mov ecx, esi
call fcn.00489400
movzx eax, byte [esi + 0x15]
add esp, 4
cmp eax, 3
ja case.0x48a3ca.14
jmp dword [eax*4 + 0x48ab28]
mov byte [esi + 0x15], 3
jmp case.default.0x48a3ca
mov byte [esi + 0x15], 2
mov al, byte [esi + 0x15]
mov byte [esi + 0x16], al
inc dword [ebx]
mov eax, dword [esi + 0x23]
mov dword [esi + 0x41], 0
mov eax, dword [eax*4 + 0x53d558]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x49], eax
jmp 0x48a7a2
mov eax, dword [ebp - 8]
inc eax
mov dword [ebx], eax
mov eax, dword [esi + 0x23]
mov dword [esi + 0x41], 0
mov eax, dword [eax*4 + 0x53d558]
cdq
sub eax, edx
sar eax, 1
add eax, 0x14
mov dword [esi + 0x49], eax
jmp 0x48a7a2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
inc ecx
mov dword [ebx], ecx
mov ebx, dword [esi + 0xd]
mov edi, dword [esi + 0x11]
mov dword [ebp - 0xc], ebx
nop
cmp dword [ebp - 0x14], ecx
jle 0x48a9e5
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
cmp eax, 0x19
je 0x48a6ce
cmp eax, 0x16
ja case.0x48a516.11
jmp dword [eax*4 + 0x48ab38]
mov byte [esi + 0x15], 4
jmp case.0x48a516.11
mov byte [esi + 0x15], 5
jmp case.0x48a516.11
mov byte [esi + 0x15], 6
jmp case.0x48a516.11
mov byte [esi + 0x15], 7
jmp case.0x48a516.11
imul eax, dword [0x563db0], 0x8088405
mov ecx, 4
inc eax
mov dword [0x563db0], eax
mul ecx
mov dword [ebp - 0x38], eax
cmp edx, 3
ja case.0x48a516.2
jmp dword [edx*4 + 0x48ab94]
mov byte [esi + 0x15], 0
jmp case.0x48a516.11
push dword [0x560539]
mov edx, dword [0x560535]
mov ecx, esi
call fcn.00489400
add esp, 4
jmp case.0x48a516.11
push dword [0x560539]
mov edx, dword [0x560535]
mov ecx, esi
call fcn.00489400
movzx eax, byte [esi + 0x15]
add esp, 4
cmp eax, 3
ja case.0x48a516.2
jmp dword [eax*4 + 0x48aba4]
movzx eax, byte [esi + 0x15]
cmp eax, 3
ja case.0x48a516.2
jmp dword [eax*4 + 0x48abb4]
mov byte [esi + 0x15], 1
jmp case.0x48a516.11
movzx eax, byte [esi + 0x15]
cmp eax, 3
ja case.0x48a516.2
jmp dword [eax*4 + 0x48abc4]
movzx eax, byte [esi + 0x15]
cmp eax, 3
ja case.0x48a516.2
jmp dword [eax*4 + 0x48abd4]
mov ecx, esi
call fcn.00489510
jmp case.0x48a516.11
imul eax, dword [0x563db0], 0x8088405
mov ecx, 4
inc eax
mov dword [0x563db0], eax
mul ecx
mov dword [ebp - 0x38], eax
cmp edx, 3
ja case.0x48a516.2
jmp dword [edx*4 + 0x48abe4]
push dword [0x560539]
mov edx, dword [0x560535]
mov ecx, esi
call fcn.00489400
movzx eax, byte [esi + 0x15]
add esp, 4
cmp eax, 3
ja case.0x48a516.2
jmp dword [eax*4 + 0x48abf4]
mov byte [esi + 0x15], 3
jmp case.0x48a516.11
mov byte [esi + 0x15], 2
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0xc
jge case.default.0x48a663
movzx eax, byte [esi + 0x15]
cmp eax, 7
ja case.default.0x48a663
jmp dword [eax*4 + 0x48ac04]
mov edx, dword [ebp + 8]
inc ebx
mov dword [ebp - 0xc], ebx
inc dword [edx]
mov ecx, dword [edx]
jmp 0x48a4f0
mov edx, dword [ebp + 8]
dec ebx
mov dword [ebp - 0xc], ebx
inc dword [edx]
mov ecx, dword [edx]
jmp 0x48a4f0
mov edx, dword [ebp + 8]
inc ebx
dec edi
mov dword [ebp - 0xc], ebx
inc dword [edx]
mov ecx, dword [edx]
jmp 0x48a4f0
inc ebx
mov dword [ebp - 0xc], ebx
mov edx, dword [ebp + 8]
inc edi
inc dword [edx]
mov ecx, dword [edx]
jmp 0x48a4f0
mov edx, dword [ebp + 8]
dec ebx
inc edi
mov dword [ebp - 0xc], ebx
inc dword [edx]
mov ecx, dword [edx]
jmp 0x48a4f0
dec ebx
mov dword [ebp - 0xc], ebx
dec edi
mov edx, dword [ebp + 8]
inc dword [edx]
mov ecx, dword [edx]
jmp 0x48a4f0
lea eax, [ecx + 1]
mov ecx, esi
mov dword [edx], eax
mov edx, ebx
mov eax, dword [esi + 0x23]
push edi
mov eax, dword [eax*4 + 0x53d558]
mov dword [esi + 0x49], eax
call fcn.00489400
add esp, 4
cmp ebx, dword [esi + 0xd]
jne 0x48a6f7
cmp edi, dword [esi + 0x11]
je 0x48a727
cmp byte [esi + 0x2e], 0
mov al, byte [esi + 0x15]
jne 0x48a703
mov byte [esi + 0x16], al
cmp al, 3
ja 0x48a7c7
mov eax, dword [esi]
push edi
push ebx
push 0
mov eax, dword [eax + 4]
push DirectSoundCreate
push esi
call eax
add esp, 0x14
test al, al
je 0x48a7c7
mov edx, ebx
mov bl, byte [0x563cb6]
test bl, 2
jne 0x48a739
mov edx, dword [ebp - 0xc]
jmp 0x48a756
cmp dword [ebp - 0xc], 0
mov eax, dword [0x563cae]
jge 0x48a748
add edx, eax
js 0x48a744
cmp edx, eax
jl 0x48a756
nop dword [eax]
sub edx, eax
cmp edx, eax
jge 0x48a750
mov ecx, edi
test bl, 1
jne 0x48a75f
jmp 0x48a776
mov eax, dword [0x563cb2]
test edi, edi
jns 0x48a76c
add ecx, eax
js 0x48a768
cmp ecx, eax
jl 0x48a776
sub ecx, eax
cmp ecx, eax
jge 0x48a770
mov eax, dword [esi + 0xd]
sub eax, dword [ebp - 0xc]
add eax, edx
mov byte [esi + 0x4d], 1
mov dword [esi + 0x4e], eax
mov eax, ecx
sub eax, edi
mov dword [esi + 0x1f], 0x100
add eax, dword [esi + 0x11]
mov dword [esi + 0x52], eax
mov dword [esi + 0xd], edx
mov dword [esi + 0x11], ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebx]
cmp ecx, dword [ebp - 8]
je 0x48a9e5
cmp ecx, dword [ebp - 0x24]
je 0x48a9e5
cmp dword [esi + 0x1f], 0
jle 0x48a220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1f], 0
jne 0x48a79c
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
je 0x48a9dd
mov dl, byte [ebp - 1]
mov eax, dword [ebp - 0x18]
mov byte [esi + 0x15], al
mov byte [esi + 0x16], dl
jmp 0x48a79c
mov byte [esi + 0x2e], 1
inc dword [ebx]
jmp 0x48a7a2
cmp byte [esi + 0x2d], 4
mov eax, dword [ebp - 8]
jae 0x48a7ff
mov byte [esi + 0x2e], 0
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
jmp 0x48a7a2
mov ecx, dword [esi + 0x2f]
mov eax, dword [ebp - 8]
cmp ecx, 6
jge 0x48a817
lea eax, [ecx + 1]
mov dword [esi + 0x2f], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
jmp 0x48a7a2
mov ecx, dword [esi + 0x2f]
mov eax, dword [ebp - 8]
cmp ecx, 1
jle 0x48a82f
lea eax, [ecx - 1]
mov dword [esi + 0x2f], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
jmp 0x48a7a2
mov ecx, dword [esi + 0x23]
mov eax, dword [ebp - 8]
cmp ecx, 8
jge 0x48a84a
lea eax, [ecx + 1]
mov dword [esi + 0x23], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
jmp 0x48a7a2
mov ecx, dword [esi + 0x23]
mov eax, dword [ebp - 8]
cmp ecx, 1
jle 0x48a865
lea eax, [ecx - 1]
mov dword [esi + 0x23], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
jmp 0x48a7a2
mov ecx, dword [ecx + 4]
mov dl, 1
call fcn.00491e80
inc dword [ebx]
xor edi, edi
mov eax, dword [0x5603c4]
mov ecx, dword [ebx]
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
test ebx, ebx
jle 0x48a8a7
mov esi, eax
mov ecx, dword [esi + edi*4]
call fcn.00459340
inc edi
cmp edi, ebx
jl 0x48a890
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebx]
jmp 0x48a8aa
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x48a9e5
jmp 0x48a79f
mov ecx, dword [ecx + 4]
xor dl, dl
call fcn.00491e80
inc dword [ebx]
xor edi, edi
mov eax, dword [0x5603c4]
mov ecx, dword [ebx]
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
test ebx, ebx
jle 0x48a8a7
mov esi, eax
nop word [eax + eax]
mov ecx, dword [esi + edi*4]
call fcn.00459340
inc edi
cmp edi, ebx
jl 0x48a8e0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebx]
jmp 0x48a8aa
push dword [ecx + 0xc]
mov eax, dword [esi]
push dword [ecx + 8]
push esi
mov eax, dword [eax + 0x1c]
call eax
add esp, 0xc
inc dword [ebx]
jmp 0x48a7a2
mov eax, dword [ecx + 0x10]
mov dword [0x563878], eax
mov eax, dword [ecx + 0x14]
mov dword [0x56387c], eax
mov eax, dword [ecx + 0x18]
mov dword [0x563880], eax
mov eax, dword [ecx + 0x1c]
mov ecx, 0x563874
mov dword [0x563884], eax
call fcn.00492480
inc dword [ebx]
jmp 0x48a7a2
mov byte [esi + 0x3e], 1
mov byte [esi + 0x40], 1
inc dword [ebx]
jmp 0x48a7a2
mov byte [esi + 0x3e], 0
mov byte [esi + 0x40], 0
inc dword [ebx]
jmp 0x48a7a2
mov byte [esi + 0x3f], 1
inc dword [ebx]
jmp 0x48a7a2
mov byte [esi + 0x3f], 0
inc dword [ebx]
jmp 0x48a7a2
mov ecx, dword [esi + 0x1b]
mov eax, dword [ebp - 8]
cmp ecx, 7
jge 0x48a987
lea eax, [ecx + 1]
mov dword [esi + 0x1b], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
jmp 0x48a7a2
mov ecx, dword [esi + 0x1b]
mov eax, dword [ebp - 8]
test ecx, ecx
jle 0x48a9a1
lea eax, [ecx - 1]
mov dword [esi + 0x1b], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
jmp 0x48a7a2
mov eax, dword [ebp - 8]
inc eax
mov dword [ebx], eax
jmp 0x48a7a2
test cl, cl
je 0x48a9e5
cmp byte [esi + 0x37], 0
je 0x48a9ce
mov eax, dword [esi + 0x27]
mov dword [esi + 0x23], eax
mov eax, dword [eax*4 + 0x53d558]
mov dword [esi + 0x49], eax
mov byte [esi + 0x37], 0
mov byte [esi + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret