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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4d9b1c]
xor dh, dh
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
push edi
mov dword [esp + 0x2c], ecx
mov al, byte [esi]
mov dword [esp + 0x34], 0
mov dword [0x4d9b1c], 0
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x13], 0xa
mov byte [0x4d9b80], 0
mov byte [0x4d9b7b], 0
mov byte [0x4d9b7a], 0
mov dword [0x4d9b7c], 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 0x45f151
mov ebx, 1
movsx eax, al
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbctoupper]
add eax, 0xffffffbd
add esp, 4
cmp eax, 0x19
ja case.0x45efc3.69
movzx eax, byte [eax + 0x45f6fc]
jmp dword [eax*4 + 0x45f6d4]
mov bl, byte [esi + 1]
lea edi, [esi + 1]
movzx eax, bl
test eax, 0xffffff80
je 0x45efde
xor edx, edx
jmp 0x45efec
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov edx, eax
mov al, bl
and al, 0xdf
test edx, edx
movzx ecx, al
movzx eax, bl
mov ebx, 1
cmove ecx, eax
cmp cl, 0x4c
sete al
inc al
cmp cl, 0x4c
mov byte [0x4d9b80], al
cmovne edi, esi
mov esi, edi
jmp case.0x45efc3.69
mov cl, byte [esi + 1]
mov dh, byte [esp + 0x11]
test cl, cl
je 0x45f145
inc esi
mov byte [esp + 0x13], cl
jmp 0x45f145
mov dl, byte [esi + 1]
inc esi
cmp dl, 0x20
je case.0x45efc3.70
cmp dl, 9
je case.0x45efc3.70
mov edi, esi
test dl, dl
je 0x45f064
mov ecx, 0x4c98e4
mov al, 0x20
nop
cmp dl, al
je 0x45f07c
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x45f050
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x45f047
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f070
sub ecx, edx
lea edi, [esi + ecx]
push 0
mov eax, edi
mov ecx, 0x4dba98
sub eax, esi
push eax
push esi
call fcn.0043cf60
mov ecx, eax
mov dword [0x4d9b1c], ecx
test ecx, ecx
je 0x45f649
cmp byte [ecx + 0x51], 0
jne 0x45f649
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x45f649
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x45f649
cmp word [eax + 0x14], 0
jne 0x45f649
lea esi, [edi - 1]
jmp case.0x45efc3.69
mov byte [0x4d9b7b], 1
jmp case.0x45efc3.69
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
cmp eax, 1
cmovl eax, ebx
dec eax
mov dword [0x4d9b7c], eax
jmp case.0x45efc3.69
push 6
push str.Random
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
mov dh, byte [esp + 0x1d]
add esp, 0xc
test eax, eax
jne 0x45f11c
mov byte [esp + 0x14], 1
add esi, 5
jmp 0x45f145
mov byte [0x4d9b7a], 1
jmp 0x45f145
mov byte [esp + 0x16], 1
mov dword [esp + 0x30], 0
jmp case.0x45efc3.69
mov dh, 1
mov byte [esp + 0x11], dh
jmp 0x45f145
mov byte [esp + 0x17], 1
mov dh, byte [esp + 0x11]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x45efa3
mov esi, dword [ebp + 8]
mov dl, byte [esi]
test dl, dl
je 0x45f649
mov ebx, dword [0x4db120]
mov dword [esp + 0x28], ebx
mov al, byte [ebx + 0x17]
test al, al
jne 0x45f175
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x45f649
mov edi, 1
mov ecx, esi
cmp dl, byte [esp + 0x13]
lea eax, [edi + 1]
mov dl, byte [ecx + 1]
cmovne eax, edi
inc ecx
mov edi, eax
test dl, dl
jne 0x45f184
mov eax, ecx
sub eax, esi
mov dword [esp + 0x18], eax
test dh, dh
jne 0x45f1b9
cmp ecx, esi
jbe 0x45f1b9
mov dl, byte [esp + 0x13]
cmp byte [ecx - 1], dl
jne 0x45f1b9
mov byte [esp + 0x15], 1
dec edi
jmp 0x45f1ee
cmp byte [esp + 0x13], 0xa
jne 0x45f1ee
push 0xa
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
je 0x45f1ea
cmp eax, esi
jbe 0x45f1ea
cmp byte [eax - 1], 0xd
mov eax, dword [esp + 0x18]
jne 0x45f1ee
mov cl, 1
mov byte [esp + 0x12], cl
mov byte [esp + 0x15], cl
jmp 0x45f1f2
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x12]
cmp edi, 1
jne 0x45f20a
push edi
push 0
push eax
push esi
mov ecx, ebx
call fcn.004b04f0
mov ebx, eax
jmp 0x45f64e
cmp dword [0x4d9b1c], 0
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jne 0x45f21d
test cl, cl
je 0x45f286
add eax, 3
push eax
call ebx
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x45f24b
mov ecx, dword [esp + 0x2c]
push 0x4c3c29
push eax
push str.Out_of_memory.
call fcn.0044d670
mov ebx, eax
jmp 0x45f64e
mov eax, dword [esp + 0x18]
inc eax
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x40]
add esp, 0xc
cmp byte [esp + 0x12], 0
mov esi, edx
je 0x45f286
mov ecx, dword [esp + 0x18]
mov ax, word [0x4cdda4]
mov word [ecx + edx], ax
mov al, byte [0x4cdda6]
mov byte [ecx + edx + 2], al
add ecx, 2
mov dword [esp + 0x18], ecx
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 + 0x1c], ecx
push eax
call ebx
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45f2c9
mov ecx, dword [esp + 0x2c]
push 0x4c3c29
push eax
push str.Out_of_memory.
call fcn.0044d670
mov ebx, eax
jmp 0x45f64e
mov edx, dword [0x4dcd28]
mov edi, eax
mov dword [eax], esi
xor ebx, ebx
mov al, byte [esi]
mov dword [esp + 0x24], ebx
test al, al
je 0x45f355
mov cl, byte [esp + 0x13]
cmp al, cl
jne 0x45f349
inc ebx
mov byte [esi], 0
cmp byte [esp + 0x14], 0
je 0x45f340
sub dword [0x4d8aec], 1
jne 0x45f306
call fcn.00428b10
mov edx, dword [0x4dcd28]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4dcd28], 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 cl, byte [esp + 0x13]
shr eax, 1
mov dword [edi + 4], eax
add edi, dword [esp + 0x1c]
lea eax, [esi + 1]
mov dword [edi], eax
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x45f2e3
mov dword [esp + 0x24], ebx
cmp byte [esp + 0x15], 0
mov al, byte [esp + 0x14]
jne 0x45f3b7
inc ebx
mov dword [esp + 0x24], ebx
test al, al
je 0x45f3b7
sub dword [0x4d8aec], 1
jne 0x45f37d
call fcn.00428b10
mov edx, dword [0x4dcd28]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4dcd28], 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 [0x4d9b1c], 0
je 0x45f3c7
push 0x45ed30
jmp 0x45f3e5
test al, al
je 0x45f3d2
push 0x45ed20
jmp 0x45f3e5
cmp byte [esp + 0x17], 0
mov eax, 0x45ebd0
mov ecx, 0x45ecb0
cmovne eax, ecx
push eax
push dword [esp + 0x20]
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov esi, dword [esp + 0x38]
add esp, 0x10
mov ecx, esi
push 1
push 0
push dword [esp + 0x20]
push 0
call fcn.004b04f0
cmp eax, 1
je 0x45f418
xor ebx, ebx
jmp 0x45f64e
xor edi, edi
mov dword [esp + 0x18], 0
lea eax, [ebx - 1]
mov ecx, esi
mov ebx, dword [esp + 0x20]
push edi
push 1
mov dword [esp + 0x40], eax
call fcn.00401640
mov esi, eax
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x24], edi
jbe 0x45f4d9
cmp byte [esp + 0x16], 0
je 0x45f494
test edi, edi
je 0x45f494
cmp byte [0x4d9b7b], 0
je 0x45f50e
cmp dword [0x4d9b7c], 0
jne 0x45f50e
mov ecx, dword [ebx]
call fcn.00428e40
mov ecx, edi
movsd qword [esp + 0x40], xmm0
call fcn.00428e40
movsd xmm1, qword [esp + 0x40]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x45f542
mov eax, dword [ebx]
mov cl, byte [eax]
test cl, cl
je 0x45f4ac
nop dword [eax]
mov byte [esi], cl
lea eax, [eax + 1]
mov cl, byte [eax]
inc esi
test cl, cl
jne 0x45f4a0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jb 0x45f4bd
cmp byte [esp + 0x15], 0
je 0x45f4c4
mov cl, byte [esp + 0x13]
mov byte [esi], cl
inc esi
mov edi, dword [ebx]
add ebx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x24]
jb 0x45f447
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [esp + 0x2c]
add esp, 4
cmp byte [esp + 0x12], 0
je 0x45f5c0
cmp byte [esi - 2], 0xd
jne 0x45f58c
mov byte [esi - 2], 0
cmp byte [ebx + 0x17], 0
jne 0x45f565
mov esi, dword [ebx + 0xc]
jmp 0x45f567
mov cl, byte [0x4d9b80]
mov eax, dword [ebx]
push edi
push eax
test cl, cl
jne 0x45f524
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
jmp 0x45f537
cmp cl, 2
jne 0x45f531
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x45f53a
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x45f494
inc dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jne 0x45f4c6
cmp byte [esp + 0x15], 0
jne 0x45f4c6
dec esi
jmp 0x45f4c6
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45f582
test byte [esi + 0x15], 8
je 0x45f57a
mov ecx, esi
call fcn.004014a0
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x45f5c3
mov esi, 0x4dd524
add dword [esi], 0xfffffffe
jmp 0x45f5c3
mov byte [esi - 1], 0
cmp byte [ebx + 0x17], 0
jne 0x45f59b
mov esi, dword [ebx + 0xc]
jmp 0x45f59d
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45f5b7
test byte [esi + 0x15], 8
je 0x45f5b0
mov ecx, esi
call fcn.004014a0
add esi, 0xc
dec dword [esi]
jmp 0x45f5c3
mov esi, 0x4dd524
dec dword [esi]
jmp 0x45f5c3
mov byte [esi], 0
cmp byte [esp + 0x16], 0
je 0x45f61d
cmp dword [esp + 0x18], 0
je 0x45f61d
push 0
push 1
mov ecx, ebx
call fcn.00401640
mov esi, eax
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x45f5e1
sub esi, eax
cmp byte [ebx + 0x17], cl
jne 0x45f5f4
mov edi, dword [ebx + 0xc]
jmp 0x45f5f6
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x45f60e
test byte [edi + 0x15], 8
je 0x45f609
mov ecx, edi
call fcn.004014a0
add edi, 0xc
jmp 0x45f613
mov edi, 0x4dd524
mov eax, dword [esp + 0x18]
mov dword [edi], esi
mov dword [esp + 0x30], eax
cmp byte [ebx + 0x17], 0
jne 0x45f626
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x45f645
cmp dword [0x4dba88], 0
je 0x45f645
push 1
mov ecx, 0x4dba7c
call fcn.00406200
mov ebx, eax
jmp 0x45f64e
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
je 0x45f6ac
mov esi, dword [0x4d995c]
cmp byte [esi + 0x17], 0
jne 0x45f666
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x45f67d
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 0x45f69c
mov ecx, esi
call fcn.004014a0
and byte [esi + 0x15], 0x8f
jmp 0x45f6ac
cmp dword [0x4d9984], 0
je 0x45f6ac
mov ecx, esi
call fcn.004014a0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45f6be
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x3c]
pop edi
mov dword [0x4d9b1c], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8