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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4e4e1c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, 1
mov dword [esp + 0x40], eax
push edi
mov dword [esp + 0x34], ecx
movzx eax, word [esi]
mov dword [esp + 0x3c], 0
mov dword [0x4e4e1c], 0
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], 0xa
mov byte [0x4e4c2e], 0
mov byte [0x4e4c2b], 0
mov byte [0x4e4c2a], 0
mov dword [0x4e4e20], 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 0x456e30
mov ecx, eax
mov edi, ebx
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx eax, ax
add esp, 4
add eax, 0xffffffbd
cmp eax, 0x19
ja case.0x456cd0.69
movzx eax, byte [eax + 0x457474]
jmp dword [eax*4 + 0x45744c]
mov cx, word [esi + 2]
call fcn.00413070
cmp ax, 0x4c
jne 0x456cf7
mov al, 2
add esi, 2
mov byte [0x4e4c2e], al
mov edi, ebx
jmp case.0x456cd0.69
mov al, bl
mov edi, ebx
mov byte [0x4e4c2e], al
jmp case.0x456cd0.69
movzx eax, word [esi + 2]
mov edx, eax
test ax, ax
je case.0x456cd0.69
add esi, 2
mov dword [esp + 0x1c], eax
jmp case.0x456cd0.69
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je case.0x456cd0.70
cmp eax, 9
je case.0x456cd0.70
mov edx, 0x4cf49c
mov ecx, esi
call fcn.00406460
mov edi, eax
test edi, edi
jne 0x456d62
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456d50
sub ecx, edx
sar ecx, 1
lea edi, [esi + ecx*2]
mov eax, edi
mov ecx, 0x4e6d58
sub eax, esi
push 0
sar eax, 1
push eax
push esi
call fcn.004393e0
mov ecx, eax
mov dword [0x4e4e1c], ecx
test ecx, ecx
je 0x45740b
cmp byte [ecx + 0x51], 0
jne 0x45740b
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x45740b
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x45740b
cmp word [eax + 0x14], 0
jne 0x45740b
lea esi, [edi - 2]
mov edi, ebx
jmp case.0x456cd0.69
mov byte [0x4e4c2b], bl
jmp case.0x456cd0.69
lea eax, [esi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
cmp eax, 1
cmovl eax, edi
dec eax
mov dword [0x4e4e20], eax
jmp case.0x456cd0.69
push 6
push str.Random
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x456e00
mov byte [esp + 0x13], bl
add esi, 0xa
jmp case.0x456cd0.69
mov byte [0x4e4c2a], bl
jmp case.0x456cd0.69
xor eax, eax
mov byte [esp + 0x15], bl
mov dword [esp + 0x38], eax
jmp case.0x456cd0.69
mov byte [esp + 0x16], bl
jmp case.0x456cd0.69
mov byte [esp + 0x17], bl
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x456cb0
mov esi, dword [ebp + 8]
movzx edx, word [esi]
test dx, dx
je 0x45740b
mov ecx, dword [0x4e6390]
mov dword [esp + 0x24], ecx
mov al, byte [ecx + 0x17]
test al, al
jne 0x456e56
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x45740b
mov edi, ebx
mov ecx, esi
mov ebx, dword [esp + 0x1c]
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 0x456e66
mov ebx, ecx
sub ebx, esi
sar ebx, 1
mov dword [esp + 0x30], ebx
cmp byte [esp + 0x16], al
jne 0x456ec0
cmp ecx, esi
jbe 0x456ec0
mov eax, dword [esp + 0x1c]
cmp word [ecx - 2], ax
jne 0x456ec0
mov byte [esp + 0x14], 1
dec edi
mov cl, byte [esp + 0x12]
cmp edi, 1
jne 0x456eef
mov ecx, dword [esp + 0x24]
push edi
push 0
push ebx
push esi
call fcn.004a0110
mov ebx, eax
jmp 0x45740b
cmp word [esp + 0x1c], 0xa
jne 0x456ea2
push 0xa
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x456ea2
cmp eax, esi
jbe 0x456ea2
cmp word [eax - 2], 0xd
jne 0x456ea2
mov cl, 1
mov byte [esp + 0x12], cl
mov byte [esp + 0x14], cl
jmp 0x456ea6
cmp dword [0x4e4e1c], 0
jne 0x456efc
test cl, cl
je 0x456f6b
lea eax, [ebx*2 + 6]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x456f32
mov ecx, dword [esp + 0x34]
push 0x4b8c14
push eax
push 0x4ccaa4
call fcn.00447650
mov ebx, eax
jmp 0x45740b
lea eax, [ebx*2 + 2]
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x48]
add esp, 0xc
cmp byte [esp + 0x12], 0
mov esi, ecx
je 0x456f6b
mov eax, dword [0x4d6f24]
mov dword [ecx + ebx*2], eax
mov ax, word [0x4d6f28]
mov word [ecx + ebx*2 + 4], ax
add ebx, 2
mov dword [esp + 0x30], 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 + 0x20], ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x456fb2
mov ecx, dword [esp + 0x34]
push 0x4b8c14
push eax
push 0x4ccaa4
call fcn.00447650
mov ebx, eax
jmp 0x45740b
mov edx, dword [0x4e84e4]
mov edi, eax
mov dword [eax], esi
movzx eax, word [esi]
mov dword [esp + 0x18], 0
test ax, ax
je 0x45704b
mov bl, byte [esp + 0x13]
mov ecx, eax
cmp cx, word [esp + 0x1c]
jne 0x457039
inc dword [esp + 0x18]
xor eax, eax
mov word [esi], ax
test bl, bl
je 0x457030
sub dword [0x4e3b4c], 1
jne 0x456ffa
call fcn.00425e60
mov edx, dword [0x4e84e4]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4e84e4], 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 + 0x20]
lea eax, [esi + 2]
mov dword [edi], eax
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x456fd2
mov ebx, dword [esp + 0x30]
cmp byte [esp + 0x14], 0
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0x13]
jne 0x4570b1
inc esi
mov dword [esp + 0x18], esi
test al, al
je 0x4570b1
sub dword [0x4e3b4c], 1
jne 0x457077
call fcn.00425e60
mov edx, dword [0x4e84e4]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4e84e4], 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 [0x4e4e1c], 0
je 0x4570c1
push 0x456a80
jmp 0x4570df
test al, al
je 0x4570cc
push 0x456a70
jmp 0x4570df
cmp byte [esp + 0x17], 0
mov eax, 0x456860
mov ecx, 0x4569d0
cmovne eax, ecx
push eax
push dword [esp + 0x24]
mov edi, dword [esp + 0x30]
push esi
push edi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov esi, dword [esp + 0x34]
add esp, 0x10
mov ecx, esi
push 1
push 0
push ebx
push 0
call fcn.004a0110
xor ebx, ebx
cmp eax, 1
jne 0x45740b
mov eax, dword [esp + 0x18]
mov ecx, esi
push ebx
dec eax
mov dword [esp + 0x30], ebx
push 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edi
call fcn.004016c0
mov esi, eax
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x18], ebx
jbe 0x457257
nop word [eax + eax]
cmp byte [esp + 0x15], 0
je 0x457203
test ebx, ebx
je 0x457203
cmp byte [0x4e4c2b], 0
je 0x457294
cmp dword [0x4e4e20], 0
jne 0x457294
mov edi, dword [edi]
mov ecx, edi
call fcn.00404a50
test al, al
je 0x457199
push 0x10
push 0
push edi
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
call edi
add esp, 0xc
mov ecx, eax
call fcn.004b76c0
movsd qword [esp + 0x48], xmm0
jmp 0x4571b9
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
add esp, 4
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 0x48], xmm0
mov ecx, ebx
call fcn.00404a50
test al, al
je 0x4571d7
push 0x10
push 0
push ebx
call edi
add esp, 0xc
mov ecx, eax
call fcn.004b76c0
jmp 0x4571eb
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
fstp qword [esp + 0x54]
movsd xmm0, qword [esp + 0x54]
add esp, 4
movsd xmm1, qword [esp + 0x48]
mov edi, dword [esp + 0x34]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x4572f4
mov ecx, dword [edi]
movzx eax, word [ecx]
test ax, ax
je 0x457223
mov edx, eax
nop
add ecx, 2
mov word [esi], dx
add esi, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x457210
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x40]
jb 0x457234
cmp byte [esp + 0x14], 0
je 0x45723e
mov ecx, dword [esp + 0x1c]
mov word [esi], cx
add esi, 2
mov ebx, dword [edi]
add edi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
cmp eax, dword [esp + 0x18]
jb 0x457140
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [esp + 0x28]
xor eax, eax
add esp, 4
cmp byte [esp + 0x12], al
je 0x457375
cmp word [esi - 4], 0xd
jne 0x457340
mov word [esi - 4], ax
cmp byte [ebx + 0x17], al
jne 0x457319
mov esi, dword [ebx + 0xc]
jmp 0x45731b
cmp byte [0x4e4c2e], 0
mov eax, dword [edi]
jne 0x4572ac
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
jmp 0x4572ec
cmp byte [0x4e4c2e], 2
jne 0x4572bf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x4572ec
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4572e7
test dx, dx
je 0x4572e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4572e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4572c1
xor eax, eax
jmp 0x4572ec
sbb eax, eax
or eax, 1
test eax, eax
jne 0x457203
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x40]
jne 0x457240
cmp byte [esp + 0x14], 0
jne 0x457240
sub esi, 2
jmp 0x457240
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x457336
test byte [esi + 0x15], 8
je 0x45732e
mov ecx, esi
call fcn.004015e0
add esi, 0xc
add dword [esi], 0xfffffffc
jmp 0x457378
mov esi, 0x4e8ce8
add dword [esi], 0xfffffffc
jmp 0x457378
mov word [esi - 2], ax
cmp byte [ebx + 0x17], al
jne 0x45734e
mov esi, dword [ebx + 0xc]
jmp 0x457350
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45736b
test byte [esi + 0x15], 8
je 0x457363
mov ecx, esi
call fcn.004015e0
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x457378
mov esi, 0x4e8ce8
add dword [esi], 0xfffffffe
jmp 0x457378
mov word [esi], ax
cmp byte [esp + 0x15], 0
je 0x4573db
cmp dword [esp + 0x2c], 0
je 0x4573db
push 0
push 1
mov ecx, ebx
call fcn.004016c0
mov esi, eax
lea eax, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x457396
sub esi, eax
sar esi, 1
cmp byte [ebx + 0x17], cl
jne 0x4573af
mov edi, dword [ebx + 0xc]
jmp 0x4573b1
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x4573c9
test byte [edi + 0x15], 8
je 0x4573c4
mov ecx, edi
call fcn.004015e0
add edi, 0xc
jmp 0x4573ce
mov edi, 0x4e8ce8
lea eax, [esi + esi]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
cmp byte [ebx + 0x17], 0
jne 0x4573e4
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x457402
cmp dword [0x4e6d08], 0
je 0x457402
push ecx
mov ecx, 0x4e6cfc
call fcn.00405e80
mov ebx, eax
jmp 0x45740b
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
je 0x457424
mov ecx, dword [0x4e4b80]
push 0x18
push 0
push eax
call fcn.00401560
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x457436
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x44]
pop edi
mov dword [0x4e4e1c], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8