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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4e7af4]
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 [0x4e7af4], 0
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x13], bl
mov byte [0x4e7b58], 0
mov byte [0x4e7b53], 0
mov byte [0x4e7b52], 0
mov dword [0x4e7b54], 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 0x455922
mov edi, 1
movsx eax, al
push eax
call fcn.004b9d88
add eax, 0xffffffbd
add esp, 4
cmp eax, 0x19
ja case.0x455793.69
movzx eax, byte [eax + 0x455e88]
jmp dword [eax*4 + 0x455e60]
movzx ebx, byte [esi + 1]
lea edi, [esi + 1]
test ebx, 0xffffff80
je 0x4557ad
xor edx, edx
jmp 0x4557ba
push 2
push ebx
call fcn.004b47c1
add esp, 8
mov edx, eax
mov al, bl
and al, 0xdf
test edx, edx
movzx ecx, al
mov eax, ebx
mov bl, byte [esp + 0x13]
cmove ecx, eax
cmp cl, 0x4c
sete al
add al, 1
cmp cl, 0x4c
mov byte [0x4e7b58], al
cmovne edi, esi
mov esi, edi
mov edi, 1
jmp case.0x455793.69
mov cl, byte [esi + 1]
lea eax, [esi + 1]
mov dh, byte [esp + 0x11]
test cl, cl
je 0x455916
mov bl, cl
mov esi, eax
mov byte [esp + 0x13], bl
jmp 0x455916
mov dl, byte [esi + 1]
inc esi
cmp dl, 0x20
je case.0x455793.70
cmp dl, 9
je case.0x455793.70
mov edi, esi
test dl, dl
je 0x45583b
nop
mov ecx, 0x4d5ff4
mov al, 0x20
cmp dl, al
je 0x45584c
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x455827
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x455820
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x455840
sub ecx, edx
lea edi, [esi + ecx]
push 0
mov eax, edi
mov ecx, 0x4e9a70
sub eax, esi
push eax
push esi
call fcn.004385f0
mov ecx, eax
mov dword [0x4e7af4], ecx
test ecx, ecx
je 0x455e1b
cmp byte [ecx + 0x51], 0
jne 0x455e1b
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x455e1b
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x455e1b
cmp word [eax + 0x14], 0
jne 0x455e1b
lea esi, [edi - 1]
mov edi, 1
jmp case.0x455793.69
mov byte [0x4e7b53], 1
jmp case.0x455793.69
lea eax, [esi + 1]
push eax
call fcn.004b2c14
add esp, 4
cmp eax, 1
cmovl eax, edi
dec eax
mov dword [0x4e7b54], eax
jmp case.0x455793.69
push 6
push str.Random
push esi
call fcn.004b2c54
mov dh, byte [esp + 0x1d]
add esp, 0xc
test eax, eax
jne 0x4558ef
mov byte [esp + 0x14], 1
add esi, 5
jmp 0x455916
mov byte [0x4e7b52], 1
jmp 0x455916
xor eax, eax
mov byte [esp + 0x16], 1
mov dword [esp + 0x30], eax
jmp case.0x455793.69
mov dh, 1
mov byte [esp + 0x11], dh
jmp 0x455916
mov byte [esp + 0x17], 1
mov dh, byte [esp + 0x11]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x455774
mov esi, dword [ebp + 8]
mov dl, byte [esi]
test dl, dl
je 0x455e1b
mov ecx, dword [0x4e90f8]
mov dword [esp + 0x1c], ecx
mov al, byte [ecx + 0x17]
test al, al
jne 0x455946
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x455e1b
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 0x455955
mov ebx, ecx
sub ebx, esi
mov dword [esp + 0x20], ebx
test dh, dh
jne 0x4559a4
cmp ecx, esi
jbe 0x4559a4
mov al, byte [esp + 0x13]
cmp byte [ecx - 1], al
jne 0x4559a4
mov byte [esp + 0x15], 1
dec edi
mov al, byte [esp + 0x12]
cmp edi, 1
jne 0x4559d0
mov ecx, dword [esp + 0x1c]
push edi
push 0
push ebx
push esi
call fcn.0049e6b0
mov ebx, eax
jmp 0x455e20
cmp byte [esp + 0x13], 0xa
jne 0x455986
push 0xa
push esi
call fcn.004b7be9
add esp, 8
test eax, eax
je 0x455986
cmp eax, esi
jbe 0x455986
cmp byte [eax - 1], 0xd
jne 0x455986
mov al, 1
mov byte [esp + 0x12], al
mov byte [esp + 0x15], al
jmp 0x45598a
cmp dword [0x4e7af4], 0
jne 0x4559dd
test al, al
je 0x455a43
lea eax, [ebx + 3]
push eax
call fcn.004b2c3e
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x455a0e
mov ecx, dword [esp + 0x24]
push 0x4d0335
push eax
push str.Out_of_memory.
call fcn.00446d50
mov ebx, eax
jmp 0x455e20
lea eax, [ebx + 1]
push eax
push esi
push ecx
call fcn.004b19e0
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp byte [esp + 0x12], 0
mov esi, ecx
je 0x455a43
mov ax, word [0x4da4d4]
mov word [ebx + ecx], ax
mov al, byte [0x4da4d6]
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.004b2c3e
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x455a89
mov ecx, dword [esp + 0x24]
push 0x4d0335
push eax
push str.Out_of_memory.
call fcn.00446d50
mov ebx, eax
jmp 0x455e20
mov edx, dword [0x4ead00]
mov edi, eax
mov dword [eax], esi
xor ecx, ecx
mov al, byte [esi]
mov dword [esp + 0x18], ecx
test al, al
je 0x455b28
mov ebx, dword [esp + 0x28]
mov ah, byte [esp + 0x13]
nop dword [eax + eax]
cmp al, ah
jne 0x455b1c
inc ecx
mov byte [esi], 0
cmp byte [esp + 0x14], 0
mov dword [esp + 0x18], ecx
je 0x455b11
sub dword [0x4e6384], 1
jne 0x455ad7
call fcn.00427020
mov edx, dword [0x4ead00]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4ead00], 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 0x455ab0
mov ebx, dword [esp + 0x20]
cmp byte [esp + 0x15], 0
mov al, byte [esp + 0x14]
jne 0x455b8a
inc ecx
mov dword [esp + 0x18], ecx
test al, al
je 0x455b8a
sub dword [0x4e6384], 1
jne 0x455b50
call fcn.00427020
mov edx, dword [0x4ead00]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4ead00], 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 [0x4e7af4], 0
je 0x455b9a
mov eax, 0x455550
jmp 0x455bb7
test al, al
je 0x455ba5
mov eax, 0x455540
jmp 0x455bb7
cmp byte [esp + 0x17], 0
mov eax, 0x455400
mov ecx, 0x4554d0
cmovne eax, ecx
mov edi, dword [esp + 0x18]
push eax
push dword [esp + 0x2c]
push edi
push dword [esp + 0x38]
call fcn.004b8310
mov esi, dword [esp + 0x2c]
add esp, 0x10
mov ecx, esi
push 1
push 0
push ebx
push 0
call fcn.0049e6b0
cmp eax, 1
je 0x455beb
xor ebx, ebx
jmp 0x455e20
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.00401680
mov esi, eax
mov dword [esp + 0x24], edi
cmp dword [esp + 0x18], edi
jbe 0x455cae
nop word [eax + eax]
cmp byte [esp + 0x16], 0
je 0x455c6d
test edi, edi
je 0x455c6d
cmp byte [0x4e7b53], 0
je 0x455ce2
cmp dword [0x4e7b54], 0
jne 0x455ce2
mov ecx, dword [ebx]
call fcn.00427480
mov ecx, edi
movsd qword [esp + 0x40], xmm0
call fcn.00427480
movsd xmm1, qword [esp + 0x40]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x455d14
mov eax, dword [ebx]
mov cl, byte [eax]
test cl, cl
je 0x455c81
mov byte [esi], cl
lea eax, [eax + 1]
mov cl, byte [eax]
inc esi
test cl, cl
jne 0x455c75
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x38]
jb 0x455c92
cmp byte [esp + 0x15], 0
je 0x455c99
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 0x455c20
push dword [esp + 0x2c]
call fcn.004b2343
mov ebx, dword [esp + 0x20]
add esp, 4
cmp byte [esp + 0x12], 0
je 0x455d92
cmp byte [esi - 2], 0xd
jne 0x455d5e
mov byte [esi - 2], 0
cmp byte [ebx + 0x17], 0
jne 0x455d37
mov esi, dword [ebx + 0xc]
jmp 0x455d39
mov cl, byte [0x4e7b58]
mov eax, dword [ebx]
push edi
push eax
test cl, cl
jne 0x455cf7
call fcn.004b218a
jmp 0x455d09
cmp cl, 2
jne 0x455d04
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x455d0c
call fcn.004b2360
add esp, 8
test eax, eax
jne 0x455c6d
inc dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x38]
jne 0x455c9b
cmp byte [esp + 0x15], 0
jne 0x455c9b
dec esi
jmp 0x455c9b
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x455d54
test byte [esi + 0x15], 8
je 0x455d4c
mov ecx, esi
call fcn.004015a0
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x455d95
mov esi, 0x4eb4fc
add dword [esi], 0xfffffffe
jmp 0x455d95
mov byte [esi - 1], 0
cmp byte [ebx + 0x17], 0
jne 0x455d6d
mov esi, dword [ebx + 0xc]
jmp 0x455d6f
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x455d89
test byte [esi + 0x15], 8
je 0x455d82
mov ecx, esi
call fcn.004015a0
add esi, 0xc
dec dword [esi]
jmp 0x455d95
mov esi, 0x4eb4fc
dec dword [esi]
jmp 0x455d95
mov byte [esi], 0
cmp byte [esp + 0x16], 0
je 0x455def
cmp dword [esp + 0x20], 0
je 0x455def
push 0
push 1
mov ecx, ebx
call fcn.00401680
mov esi, eax
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x455db3
sub esi, eax
cmp byte [ebx + 0x17], cl
jne 0x455dc6
mov edi, dword [ebx + 0xc]
jmp 0x455dc8
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x455de0
test byte [edi + 0x15], 8
je 0x455ddb
mov ecx, edi
call fcn.004015a0
add edi, 0xc
jmp 0x455de5
mov edi, 0x4eb4fc
mov eax, dword [esp + 0x20]
mov dword [edi], esi
mov dword [esp + 0x30], eax
cmp byte [ebx + 0x17], 0
jne 0x455df8
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x455e17
cmp dword [0x4e9a60], 0
je 0x455e17
push 1
mov ecx, 0x4e9a54
call fcn.00405bc0
mov ebx, eax
jmp 0x455e20
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x455e39
mov ecx, dword [0x4e7934]
push 0x18
push 0
push eax
call fcn.00401520
mov eax, dword [esp + 0x34]
test eax, eax
je 0x455e4a
push eax
call fcn.004b2343
add esp, 4
mov eax, dword [esp + 0x3c]
pop edi
mov dword [0x4e7af4], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8