Function at 0x4506e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4eb8dc]
xor dh, dh
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bl, 0xa
mov dword [esp + 0x38], eax
push edi
mov dword [esp + 0x24], ecx
mov al, byte [esi]
mov dword [esp + 0x34], 0
mov dword [0x4eb8dc], 0
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x13], bl
mov byte [0x4eb93a], 0
mov byte [0x4eb8cb], 0
mov byte [0x4eb8ca], 0
mov dword [0x4eb93c], 0
mov byte [esp + 0x11], dh
mov byte [esp + 0x15], dh
mov byte [esp + 0x12], dh
mov byte [esp + 0x17], dh
mov byte [esp + 0x14], dh
mov byte [esp + 0x16], dh
test al, al
je 0x450914
mov edi, 1
movsx eax, al
push eax
call fcn.004be0e9
add eax, 0xffffffbd
add esp, 4
cmp eax, 0x19
ja case.0x450783.69
movzx eax, byte [eax + 0x450ebc]
jmp dword [eax*4 + 0x450e94]
mov bl, byte [esi + 1]
lea edi, [esi + 1]
movzx eax, bl
test eax, 0xffffff80
je 0x45079e
xor edx, edx
jmp 0x4507ab
push 2
push eax
call fcn.004b8e5e
add esp, 8
mov edx, eax
mov al, bl
and al, 0xdf
test edx, edx
movzx ecx, al
movzx eax, bl
mov bl, byte [esp + 0x13]
cmove ecx, eax
cmp cl, 0x4c
sete al
inc al
cmp cl, 0x4c
mov byte [0x4eb93a], al
cmovne edi, esi
mov esi, edi
mov edi, 1
jmp case.0x450783.69
mov cl, byte [esi + 1]
mov dh, byte [esp + 0x11]
test cl, cl
je 0x450908
mov bl, cl
inc esi
mov byte [esp + 0x13], bl
jmp 0x450908
mov dl, byte [esi + 1]
inc esi
cmp dl, 0x20
je case.0x450783.70
cmp dl, 9
je case.0x450783.70
mov edi, esi
test dl, dl
je 0x45082b
nop dword [eax]
mov ecx, 0x4d9e7c
mov al, 0x20
cmp dl, al
je 0x45083c
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x450817
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x450810
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450830
sub ecx, edx
lea edi, [esi + ecx]
push 0
mov eax, edi
mov ecx, 0x4ed830
sub eax, esi
push eax
push esi
call fcn.0042e730
mov ecx, eax
mov dword [0x4eb8dc], ecx
test ecx, ecx
je 0x450e0b
cmp byte [ecx + 0x51], 0
jne 0x450e0b
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x450e0b
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x450e0b
cmp word [eax + 0x14], 0
jne 0x450e0b
lea esi, [edi - 1]
mov edi, 1
jmp case.0x450783.69
mov byte [0x4eb8cb], 1
jmp case.0x450783.69
lea eax, [esi + 1]
push eax
call fcn.004b9548
add esp, 4
cmp eax, 1
cmovl eax, edi
dec eax
mov dword [0x4eb93c], eax
jmp case.0x450783.69
push 6
push str.Random
push esi
call fcn.004b653e
mov dh, byte [esp + 0x1d]
add esp, 0xc
test eax, eax
jne 0x4508df
mov byte [esp + 0x14], 1
add esi, 5
jmp 0x450908
mov byte [0x4eb8ca], 1
jmp 0x450908
mov byte [esp + 0x16], 1
mov dword [esp + 0x30], 0
jmp case.0x450783.69
mov dh, 1
mov byte [esp + 0x11], dh
jmp 0x450908
mov byte [esp + 0x17], 1
mov dh, byte [esp + 0x11]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x450764
mov esi, dword [ebp + 8]
mov dl, byte [esi]
test dl, dl
je 0x450e0b
mov ecx, dword [0x4eceb0]
mov dword [esp + 0x1c], ecx
mov al, byte [ecx + 0x17]
test al, al
jne 0x450938
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x450e0b
mov edi, 1
mov ecx, esi
cmp dl, bl
lea eax, [edi + 1]
mov dl, byte [ecx + 1]
cmovne eax, edi
inc ecx
mov edi, eax
test dl, dl
jne 0x450947
mov ebx, ecx
sub ebx, esi
mov dword [esp + 0x20], ebx
test dh, dh
jne 0x450996
cmp ecx, esi
jbe 0x450996
mov al, byte [esp + 0x13]
cmp byte [ecx - 1], al
jne 0x450996
mov byte [esp + 0x15], 1
dec edi
mov al, byte [esp + 0x12]
cmp edi, 1
jne 0x4509c2
mov ecx, dword [esp + 0x1c]
push edi
push 0
push ebx
push esi
call fcn.004a2730
mov ebx, eax
jmp 0x450e10
cmp byte [esp + 0x13], 0xa
jne 0x450978
push 0xa
push esi
call fcn.004b87b6
add esp, 8
test eax, eax
je 0x450978
cmp eax, esi
jbe 0x450978
cmp byte [eax - 1], 0xd
jne 0x450978
mov al, 1
mov byte [esp + 0x12], al
mov byte [esp + 0x15], al
jmp 0x45097c
cmp dword [0x4eb8dc], 0
jne 0x4509cf
test al, al
je 0x450a35
lea eax, [ebx + 3]
push eax
call fcn.004b6720
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x450a00
mov ecx, dword [esp + 0x24]
push 0x4d5231
push eax
push str.Out_of_memory.
call fcn.0043ea30
mov ebx, eax
jmp 0x450e10
lea eax, [ebx + 1]
push eax
push esi
push ecx
call fcn.004b4620
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp byte [esp + 0x12], 0
mov esi, ecx
je 0x450a35
mov ax, word [0x4deca8]
mov word [ebx + ecx], ax
mov al, byte [0x4decaa]
mov byte [ebx + ecx + 2], al
add ebx, 2
mov dword [esp + 0x20], ebx
xor ecx, ecx
lea eax, [edi + 1]
cmp byte [esp + 0x14], cl
setne cl
lea ecx, [ecx*4 + 4]
imul eax, ecx
mov dword [esp + 0x28], ecx
push eax
call fcn.004b6720
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x450a7b
mov ecx, dword [esp + 0x24]
push 0x4d5231
push eax
push str.Out_of_memory.
call fcn.0043ea30
mov ebx, eax
jmp 0x450e10
mov edx, dword [0x4eeab8]
mov edi, eax
mov dword [eax], esi
xor ecx, ecx
mov al, byte [esi]
mov dword [esp + 0x18], ecx
test al, al
je 0x450b18
mov ebx, dword [esp + 0x28]
mov ah, byte [esp + 0x13]
nop dword [eax]
cmp al, ah
jne 0x450b0c
inc ecx
mov byte [esi], 0
cmp byte [esp + 0x14], 0
mov dword [esp + 0x18], ecx
je 0x450b01
sub dword [0x4ea248], 1
jne 0x450ac7
call fcn.00420d20
mov edx, dword [0x4eeab8]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4eeab8], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ecx, dword [esp + 0x18]
shr eax, 1
mov dword [edi + 4], eax
add edi, ebx
lea eax, [esi + 1]
mov dword [edi], eax
mov ah, byte [esp + 0x13]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x450aa0
mov ebx, dword [esp + 0x20]
cmp byte [esp + 0x15], 0
mov al, byte [esp + 0x14]
jne 0x450b7a
inc ecx
mov dword [esp + 0x18], ecx
test al, al
je 0x450b7a
sub dword [0x4ea248], 1
jne 0x450b40
call fcn.00420d20
mov edx, dword [0x4eeab8]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4eeab8], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
mov dword [edi + 4], eax
mov al, byte [esp + 0x14]
cmp dword [0x4eb8dc], 0
je 0x450b8a
mov eax, 0x450520
jmp 0x450ba7
test al, al
je 0x450b95
mov eax, 0x450510
jmp 0x450ba7
cmp byte [esp + 0x17], 0
mov eax, 0x4503d0
mov ecx, 0x4504a0
cmovne eax, ecx
mov edi, dword [esp + 0x18]
push eax
push dword [esp + 0x2c]
push edi
push dword [esp + 0x38]
call fcn.004b8970
mov esi, dword [esp + 0x2c]
add esp, 0x10
mov ecx, esi
push 1
push 0
push ebx
push 0
call fcn.004a2730
cmp eax, 1
je 0x450bdb
xor ebx, ebx
jmp 0x450e10
mov ebx, dword [esp + 0x2c]
lea eax, [edi - 1]
xor edi, edi
mov dword [esp + 0x38], eax
push edi
push 1
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.00401550
mov esi, eax
mov dword [esp + 0x24], edi
cmp dword [esp + 0x18], edi
jbe 0x450c9e
nop word [eax + eax]
cmp byte [esp + 0x16], 0
je 0x450c5d
test edi, edi
je 0x450c5d
cmp byte [0x4eb8cb], 0
je 0x450cd2
cmp dword [0x4eb93c], 0
jne 0x450cd2
mov ecx, dword [ebx]
call fcn.00421050
mov ecx, edi
movsd qword [esp + 0x40], xmm0
call fcn.00421050
movsd xmm1, qword [esp + 0x40]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x450d04
mov eax, dword [ebx]
mov cl, byte [eax]
test cl, cl
je 0x450c71
lea eax, [eax + 1]
mov byte [esi], cl
mov cl, byte [eax]
inc esi
test cl, cl
jne 0x450c65
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x38]
jb 0x450c82
cmp byte [esp + 0x15], 0
je 0x450c89
mov cl, byte [esp + 0x13]
mov byte [esi], cl
inc esi
mov edi, dword [ebx]
add ebx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x18]
jb 0x450c10
push dword [esp + 0x2c]
call fcn.004b6427
mov ebx, dword [esp + 0x20]
add esp, 4
cmp byte [esp + 0x12], 0
je 0x450d82
cmp byte [esi - 2], 0xd
jne 0x450d4e
mov byte [esi - 2], 0
cmp byte [ebx + 0x17], 0
jne 0x450d27
mov esi, dword [ebx + 0xc]
jmp 0x450d29
mov cl, byte [0x4eb93a]
mov eax, dword [ebx]
push edi
push eax
test cl, cl
jne 0x450ce7
call fcn.004b626e
jmp 0x450cf9
cmp cl, 2
jne 0x450cf4
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x450cfc
call fcn.004b6442
add esp, 8
test eax, eax
jne 0x450c5d
inc dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x38]
jne 0x450c8b
cmp byte [esp + 0x15], 0
jne 0x450c8b
dec esi
jmp 0x450c8b
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x450d44
test byte [esi + 0x15], 8
je 0x450d3c
mov ecx, esi
call fcn.004013b0
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x450d85
mov esi, 0x4ef2a8
add dword [esi], 0xfffffffe
jmp 0x450d85
mov byte [esi - 1], 0
cmp byte [ebx + 0x17], 0
jne 0x450d5d
mov esi, dword [ebx + 0xc]
jmp 0x450d5f
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x450d79
test byte [esi + 0x15], 8
je 0x450d72
mov ecx, esi
call fcn.004013b0
add esi, 0xc
dec dword [esi]
jmp 0x450d85
mov esi, 0x4ef2a8
dec dword [esi]
jmp 0x450d85
mov byte [esi], 0
cmp byte [esp + 0x16], 0
je 0x450ddf
cmp dword [esp + 0x20], 0
je 0x450ddf
push 0
push 1
mov ecx, ebx
call fcn.00401550
mov esi, eax
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x450da3
sub esi, eax
cmp byte [ebx + 0x17], cl
jne 0x450db6
mov edi, dword [ebx + 0xc]
jmp 0x450db8
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x450dd0
test byte [edi + 0x15], 8
je 0x450dcb
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x450dd5
mov edi, 0x4ef2a8
mov eax, dword [esp + 0x20]
mov dword [edi], esi
mov dword [esp + 0x30], eax
cmp byte [ebx + 0x17], 0
jne 0x450de8
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x450e07
cmp dword [0x4ed820], 0
je 0x450e07
push 1
mov ecx, 0x4ed814
call fcn.004056b0
mov ebx, eax
jmp 0x450e10
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
je 0x450e6e
mov esi, dword [0x4eb720]
cmp byte [esi + 0x17], 0
jne 0x450e28
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x450e3f
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x8b
mov dword [esi], edi
or al, 0x18
mov dword [esi + 4], 0
mov byte [esi + 0x15], al
jge 0x450e5e
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x450e6e
cmp dword [0x4eb748], 0
je 0x450e6e
mov ecx, esi
call fcn.004013b0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x450e7f
push eax
call fcn.004b6427
add esp, 4
mov eax, dword [esp + 0x3c]
pop edi
mov dword [0x4eb8dc], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8