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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4f7b84]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, 1
mov dword [esp + 0x40], eax
push edi
mov dword [esp + 0x30], ecx
movzx eax, word [esi]
mov dword [esp + 0x3c], 0
mov dword [0x4f7b84], 0
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], 0xa
mov byte [0x4f798e], 0
mov byte [0x4f798b], 0
mov byte [0x4f798a], 0
mov dword [0x4f7b88], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x15], 0
test ax, ax
je 0x44bac5
mov ecx, eax
mov edi, ebx
push ecx
call fcn.004b7561
movzx eax, ax
add esp, 4
add eax, 0xffffffbd
cmp eax, 0x19
ja case.0x44b96f.69
movzx eax, byte [eax + 0x44c10c]
jmp dword [eax*4 + 0x44c0e4]
mov cx, word [esi + 2]
call fcn.0040ba80
cmp ax, 0x4c
jne 0x44b996
mov al, 2
add esi, 2
mov byte [0x4f798e], al
mov edi, ebx
jmp case.0x44b96f.69
mov al, bl
mov edi, ebx
mov byte [0x4f798e], al
jmp case.0x44b96f.69
movzx eax, word [esi + 2]
mov edx, eax
test ax, ax
je case.0x44b96f.69
add esi, 2
mov dword [esp + 0x1c], eax
jmp case.0x44b96f.69
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je case.0x44b96f.70
cmp eax, 9
je case.0x44b96f.70
mov edx, 0x4e2ac4
mov ecx, esi
call fcn.0040bad0
mov edi, eax
test edi, edi
jne 0x44b9f9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b9e7
sub ecx, edx
sar ecx, 1
lea edi, [esi + ecx*2]
mov eax, edi
mov ecx, 0x4f9a70
sub eax, esi
push 0
sar eax, 1
push eax
push esi
call fcn.0042ced0
mov ecx, eax
mov dword [0x4f7b84], ecx
test ecx, ecx
je 0x44c0a5
cmp byte [ecx + 0x51], 0
jne 0x44c0a5
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x44c0a5
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x44c0a5
cmp word [eax + 0x14], 0
jne 0x44c0a5
lea esi, [edi - 2]
mov edi, ebx
jmp case.0x44b96f.69
mov byte [0x4f798b], bl
jmp case.0x44b96f.69
lea eax, [esi + 2]
push eax
call fcn.004b2533
add esp, 4
cmp eax, 1
cmovl eax, edi
dec eax
mov dword [0x4f7b88], eax
jmp case.0x44b96f.69
push 6
push str.Random
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x44ba95
mov byte [esp + 0x13], bl
add esi, 0xa
jmp case.0x44b96f.69
mov byte [0x4f798a], bl
jmp case.0x44b96f.69
xor eax, eax
mov byte [esp + 0x15], bl
mov dword [esp + 0x38], eax
jmp case.0x44b96f.69
mov byte [esp + 0x16], bl
jmp case.0x44b96f.69
mov byte [esp + 0x17], bl
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x44b950
mov esi, dword [ebp + 8]
movzx edx, word [esi]
test dx, dx
je 0x44c0a5
mov ecx, dword [0x4f90f0]
mov dword [esp + 0x20], ecx
mov al, byte [ecx + 0x17]
test al, al
jne 0x44baeb
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x44c0a5
mov edi, ebx
mov ecx, esi
mov ebx, dword [esp + 0x1c]
nop dword [eax + eax]
cmp dx, bx
lea eax, [edi + 1]
cmovne eax, edi
add ecx, 2
mov edi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x44bb00
mov ebx, ecx
sub ebx, esi
sar ebx, 1
mov dword [esp + 0x28], ebx
cmp byte [esp + 0x16], al
jne 0x44bb5a
cmp ecx, esi
jbe 0x44bb5a
mov eax, dword [esp + 0x1c]
cmp word [ecx - 2], ax
jne 0x44bb5a
mov byte [esp + 0x14], 1
dec edi
mov al, byte [esp + 0x12]
cmp edi, 1
jne 0x44bb88
mov ecx, dword [esp + 0x20]
push edi
push 0
push ebx
push esi
call fcn.00495fe0
mov ebx, eax
jmp 0x44c0a5
cmp word [esp + 0x1c], 0xa
jne 0x44bb3c
push 0xa
push esi
call fcn.004ace17
add esp, 8
test eax, eax
je 0x44bb3c
cmp eax, esi
jbe 0x44bb3c
cmp word [eax - 2], 0xd
jne 0x44bb3c
mov al, 1
mov byte [esp + 0x12], al
mov byte [esp + 0x14], al
jmp 0x44bb40
cmp dword [0x4f7b84], 0
jne 0x44bb95
test al, al
je 0x44bc03
lea eax, [ebx*2 + 6]
push eax
call fcn.004af8fa
mov ecx, eax
add esp, 4
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x44bbca
mov ecx, dword [esp + 0x30]
push 0x4cd2cc
push eax
push str.Out_of_memory.
call fcn.0043bc60
mov ebx, eax
jmp 0x44c0a5
lea eax, [ebx*2 + 2]
push eax
push esi
push ecx
call fcn.004aef60
mov ecx, dword [esp + 0x48]
add esp, 0xc
cmp byte [esp + 0x12], 0
mov esi, ecx
je 0x44bc03
mov eax, dword [0x4e983c]
mov dword [ecx + ebx*2], eax
mov ax, word [0x4e9840]
mov word [ecx + ebx*2 + 4], ax
add ebx, 2
mov dword [esp + 0x28], ebx
xor ecx, ecx
lea eax, [edi + 1]
cmp byte [esp + 0x13], cl
setne cl
lea ecx, [ecx*4 + 4]
imul eax, ecx
mov dword [esp + 0x2c], ecx
push eax
call fcn.004af8fa
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
jne 0x44bc49
mov ecx, dword [esp + 0x30]
push 0x4cd2cc
push eax
push str.Out_of_memory.
call fcn.0043bc60
mov ebx, eax
jmp 0x44c0a5
mov edx, dword [0x4fb1cc]
mov edi, eax
mov dword [eax], esi
xor ecx, ecx
movzx eax, word [esi]
mov dword [esp + 0x18], ecx
test ax, ax
je 0x44bced
mov bl, byte [esp + 0x13]
mov ecx, eax
nop dword [eax + eax]
cmp cx, word [esp + 0x1c]
jne 0x44bcd7
inc dword [esp + 0x18]
xor eax, eax
mov word [esi], ax
test bl, bl
je 0x44bcce
sub dword [0x4f62c0], 1
jne 0x44bc98
call fcn.00420680
mov edx, dword [0x4fb1cc]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4fb1cc], 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
add edi, dword [esp + 0x2c]
lea eax, [esi + 2]
mov dword [edi], eax
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x44bc70
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp byte [esp + 0x14], 0
mov al, byte [esp + 0x13]
jne 0x44bd4f
inc ecx
mov dword [esp + 0x18], ecx
test al, al
je 0x44bd4f
sub dword [0x4f62c0], 1
jne 0x44bd15
call fcn.00420680
mov edx, dword [0x4fb1cc]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4fb1cc], 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 + 0x13]
cmp dword [0x4f7b84], 0
je 0x44bd5f
mov eax, 0x44b740
jmp 0x44bd7c
test al, al
je 0x44bd6a
mov eax, 0x44b730
jmp 0x44bd7c
cmp byte [esp + 0x17], 0
mov eax, 0x44b530
mov ecx, 0x44b6a0
cmovne eax, ecx
mov edi, dword [esp + 0x18]
push eax
push dword [esp + 0x30]
push edi
push dword [esp + 0x40]
call fcn.004b11a0
mov esi, dword [esp + 0x30]
add esp, 0x10
mov ecx, esi
push 1
push 0
push ebx
push 0
call fcn.00495fe0
xor ebx, ebx
cmp eax, 1
jne 0x44c0a5
lea eax, [edi - 1]
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x34]
mov ecx, esi
push ebx
push 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], edi
call fcn.00401530
mov esi, eax
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x18], ebx
jbe 0x44beee
nop dword [eax]
cmp byte [esp + 0x15], 0
je 0x44be9b
test ebx, ebx
je 0x44be9b
cmp byte [0x4f798b], 0
je 0x44bf2a
cmp dword [0x4f7b88], 0
jne 0x44bf2a
mov edi, dword [edi]
mov ecx, edi
call fcn.00410ac0
test al, al
je 0x44be36
push 0x10
push 0
push edi
call fcn.004b2a02
add esp, 0xc
mov ecx, eax
call fcn.004c5d50
movsd qword [esp + 0x48], xmm0
jmp 0x44be4f
push edi
call fcn.004b73c4
fstp qword [esp + 0x4c]
movsd xmm0, qword [esp + 0x4c]
add esp, 4
movsd qword [esp + 0x48], xmm0
mov ecx, ebx
call fcn.00410ac0
test al, al
je 0x44be70
push 0x10
push 0
push ebx
call fcn.004b2a02
add esp, 0xc
mov ecx, eax
call fcn.004c5d50
jmp 0x44be83
push ebx
call fcn.004b73c4
fstp qword [esp + 0x54]
movsd xmm0, qword [esp + 0x54]
add esp, 4
movsd xmm1, qword [esp + 0x48]
mov edi, dword [esp + 0x30]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x44bf89
mov ecx, dword [edi]
movzx eax, word [ecx]
test ax, ax
je 0x44beba
mov edx, eax
add ecx, 2
mov word [esi], dx
add esi, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x44bea7
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x40]
jb 0x44becb
cmp byte [esp + 0x14], 0
je 0x44bed5
mov ecx, dword [esp + 0x1c]
mov word [esi], cx
add esi, 2
mov ebx, dword [edi]
add edi, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
cmp eax, dword [esp + 0x18]
jb 0x44bde0
push dword [esp + 0x34]
call fcn.004b113e
mov ebx, dword [esp + 0x24]
xor eax, eax
add esp, 4
cmp byte [esp + 0x12], al
je 0x44c00a
cmp word [esi - 4], 0xd
jne 0x44bfd5
mov word [esi - 4], ax
cmp byte [ebx + 0x17], al
jne 0x44bfae
mov esi, dword [ebx + 0xc]
jmp 0x44bfb0
cmp byte [0x4f798e], 0
mov eax, dword [edi]
jne 0x44bf41
push ebx
push eax
call fcn.004af78f
add esp, 8
jmp 0x44bf81
cmp byte [0x4f798e], 2
jne 0x44bf54
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x44bf81
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44bf7c
test dx, dx
je 0x44bf78
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44bf7c
add eax, 4
add ecx, 4
test dx, dx
jne 0x44bf56
xor eax, eax
jmp 0x44bf81
sbb eax, eax
or eax, 1
test eax, eax
jne 0x44be9b
inc dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x40]
jne 0x44bed7
cmp byte [esp + 0x14], 0
jne 0x44bed7
sub esi, 2
jmp 0x44bed7
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x44bfcb
test byte [esi + 0x15], 8
je 0x44bfc3
mov ecx, esi
call fcn.00401450
add esi, 0xc
add dword [esi], 0xfffffffc
jmp 0x44c00d
mov esi, 0x4fb9c0
add dword [esi], 0xfffffffc
jmp 0x44c00d
mov word [esi - 2], ax
cmp byte [ebx + 0x17], al
jne 0x44bfe3
mov esi, dword [ebx + 0xc]
jmp 0x44bfe5
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x44c000
test byte [esi + 0x15], 8
je 0x44bff8
mov ecx, esi
call fcn.00401450
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x44c00d
mov esi, 0x4fb9c0
add dword [esi], 0xfffffffe
jmp 0x44c00d
mov word [esi], ax
cmp byte [esp + 0x15], 0
je 0x44c075
cmp dword [esp + 0x24], 0
je 0x44c075
push 0
push 1
mov ecx, ebx
call fcn.00401530
mov esi, eax
lea eax, [esi + 2]
nop dword [eax + eax]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x44c030
sub esi, eax
sar esi, 1
cmp byte [ebx + 0x17], cl
jne 0x44c049
mov edi, dword [ebx + 0xc]
jmp 0x44c04b
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x44c063
test byte [edi + 0x15], 8
je 0x44c05e
mov ecx, edi
call fcn.00401450
add edi, 0xc
jmp 0x44c068
mov edi, 0x4fb9c0
lea eax, [esi + esi]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
cmp byte [ebx + 0x17], 0
jne 0x44c07e
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x44c09c
cmp dword [0x4f9a60], 0
je 0x44c09c
push ecx
mov ecx, 0x4f9a54
call fcn.00405900
mov ebx, eax
jmp 0x44c0a5
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
je 0x44c0be
mov ecx, dword [0x4f78d0]
push 0x18
push 0
push eax
call fcn.004013d0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x44c0cf
push eax
call fcn.004b113e
add esp, 4
mov eax, dword [esp + 0x44]
pop edi
mov dword [0x4f7b84], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8