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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4fbc7c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
push edi
mov dword [esp + 0x2c], ecx
movzx eax, word [esi]
mov dword [esp + 0x34], 0
mov dword [0x4fbc7c], 0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x1c], 0xa
mov byte [0x4fba8e], 0
mov byte [0x4fba8b], 0
mov byte [0x4fba8a], 0
mov dword [0x4fbc80], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0xf], 0
mov byte [esp + 0x11], 0
test ax, ax
je 0x45edcf
mov ecx, eax
mov ebx, 1
nop
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.0x45ec10.69
movzx eax, byte [eax + 0x45f3c4]
jmp dword [eax*4 + 0x45f39c]
movzx eax, word [esi + 2]
lea edi, [esi + 2]
mov ebx, eax
test eax, 0xffffff80
je 0x45ec2b
xor edx, edx
jmp 0x45ec39
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 eax, ebx
and eax, 0xffdf
test edx, edx
movzx ecx, ax
mov eax, ebx
cmove ecx, eax
mov ebx, 1
movzx ecx, cx
cmp ecx, 0x4c
sete al
inc al
cmp ecx, 0x4c
mov byte [0x4fba8e], al
cmovne edi, esi
mov esi, edi
jmp case.0x45ec10.69
movzx eax, word [esi + 2]
mov edx, eax
test ax, ax
je case.0x45ec10.69
add esi, 2
mov dword [esp + 0x1c], eax
jmp case.0x45ec10.69
lea edi, [esi + 2]
nop word [eax + eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x45ec9d
cmp eax, 9
jne 0x45eca2
add edi, 2
jmp 0x45ec90
mov ebx, edi
test ax, ax
je 0x45ece1
mov esi, eax
nop dword [eax + eax]
mov ecx, 0x4e6614
mov edx, 0x20
nop word [eax + eax]
cmp si, dx
je 0x45ecf8
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x45ecc0
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x45ecb0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ece6
sub ecx, edx
sar ecx, 1
lea ebx, [edi + ecx*2]
mov eax, ebx
mov ecx, 0x4fdb78
sub eax, edi
push 0
sar eax, 1
push eax
push edi
call fcn.0043e7d0
mov ecx, eax
mov dword [0x4fbc7c], ecx
test ecx, ecx
je 0x45f355
cmp byte [ecx + 0x51], 0
jne 0x45f355
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x45f355
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x45f355
cmp word [eax + 0x14], 0
jne 0x45f355
lea esi, [ebx - 2]
mov ebx, 1
jmp case.0x45ec10.69
mov byte [0x4fba8b], 1
jmp case.0x45ec10.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, ebx
dec eax
mov dword [0x4fbc80], eax
jmp case.0x45ec10.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 0x45ed9b
mov byte [esp + 0xf], 1
add esi, 0xa
jmp case.0x45ec10.69
mov byte [0x4fba8a], 1
jmp case.0x45ec10.69
xor eax, eax
mov byte [esp + 0x11], 1
mov dword [esp + 0x30], eax
jmp case.0x45ec10.69
mov byte [esp + 0x12], 1
jmp case.0x45ec10.69
mov byte [esp + 0x13], 1
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x45ebf0
mov esi, dword [ebp + 8]
movzx edx, word [esi]
test dx, dx
je 0x45f355
mov ecx, dword [0x4fd218]
mov dword [esp + 0x28], ecx
mov al, byte [ecx + 0x17]
test al, al
jne 0x45edf5
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x45f355
mov edi, 1
mov ecx, esi
cmp dx, word [esp + 0x1c]
lea eax, [edi + 1]
mov ebx, ecx
cmovne eax, edi
add ecx, 2
mov edi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x45ee04
mov eax, ecx
sub eax, esi
sar eax, 1
cmp byte [esp + 0x12], 0
mov dword [esp + 0x14], eax
jne 0x45ee46
cmp ecx, esi
jbe 0x45ee46
mov ecx, dword [esp + 0x1c]
cmp word [ebx], cx
jne 0x45ee46
mov byte [esp + 0x10], 1
dec edi
jmp 0x45ee7d
cmp word [esp + 0x1c], 0xa
jne 0x45ee7d
push 0xa
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x45ee79
cmp eax, esi
jbe 0x45ee79
cmp word [eax - 2], 0xd
mov eax, dword [esp + 0x14]
jne 0x45ee7d
mov cl, 1
mov byte [esp + 0xe], cl
mov byte [esp + 0x10], cl
jmp 0x45ee81
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0xe]
cmp edi, 1
jne 0x45ee9b
mov ecx, dword [esp + 0x28]
push edi
push 0
push eax
push esi
call fcn.004b5b70
mov ebx, eax
jmp 0x45f35a
cmp dword [0x4fbc7c], 0
jne 0x45eea8
test cl, cl
je 0x45ef1d
lea eax, [eax*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 + 0x34], ecx
test ecx, ecx
jne 0x45eede
mov ecx, dword [esp + 0x2c]
push 0x4cfc40
push eax
push 0x4e3bcc
call fcn.0044e880
mov ebx, eax
jmp 0x45f35a
mov ebx, dword [esp + 0x14]
lea eax, [ebx*2 + 2]
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp byte [esp + 0xe], 0
mov esi, ecx
je 0x45ef21
mov eax, dword [0x4ee534]
mov dword [ecx + ebx*2], eax
mov ax, word [0x4ee538]
mov word [ecx + ebx*2 + 4], ax
add ebx, 2
mov dword [esp + 0x14], ebx
jmp 0x45ef21
mov ebx, dword [esp + 0x14]
xor ecx, ecx
lea eax, [edi + 1]
cmp byte [esp + 0xf], 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 + 0x24], eax
test eax, eax
jne 0x45ef68
mov ecx, dword [esp + 0x2c]
push 0x4cfc40
push eax
push 0x4e3bcc
call fcn.0044e880
mov ebx, eax
jmp 0x45f35a
mov edx, dword [0x4ff2f8]
mov edi, eax
mov dword [eax], esi
movzx eax, word [esi]
mov dword [esp + 0x18], 0
test ax, ax
je 0x45f00d
mov ecx, eax
xor ebx, ebx
nop word [eax + eax]
cmp cx, word [esp + 0x1c]
jne 0x45eff8
xor eax, eax
inc ebx
mov word [esi], ax
cmp byte [esp + 0xf], al
je 0x45efed
sub dword [0x4fab5c], 1
jne 0x45efb7
call fcn.0042a930
mov edx, dword [0x4ff2f8]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4ff2f8], 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]
add esi, 2
mov dword [edi], esi
jmp 0x45effb
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x45ef90
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x14]
cmp byte [esp + 0x10], 0
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0xf]
jne 0x45f073
inc esi
mov dword [esp + 0x18], esi
test al, al
je 0x45f073
sub dword [0x4fab5c], 1
jne 0x45f039
call fcn.0042a930
mov edx, dword [0x4ff2f8]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4ff2f8], 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 + 0xf]
cmp dword [0x4fbc7c], 0
je 0x45f083
push 0x45e960
jmp 0x45f0a1
test al, al
je 0x45f08e
push 0x45e950
jmp 0x45f0a1
cmp byte [esp + 0x13], 0
mov eax, 0x45e7a0
mov ecx, 0x45e8b0
cmovne eax, ecx
push eax
push dword [esp + 0x24]
push esi
push dword [esp + 0x30]
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 ebx
push 0
call fcn.004b5b70
cmp eax, 1
je 0x45f0d1
xor ebx, ebx
jmp 0x45f35a
mov eax, dword [esp + 0x18]
xor edi, edi
mov ebx, dword [esp + 0x24]
dec eax
push edi
push 1
mov ecx, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], 0
call fcn.004016b0
mov esi, eax
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x18], edi
jbe 0x45f1a3
cmp byte [esp + 0x11], 0
je 0x45f14f
test edi, edi
je 0x45f14f
cmp byte [0x4fba8b], 0
je 0x45f1e0
cmp dword [0x4fbc80], 0
jne 0x45f1e0
mov ecx, dword [ebx]
call fcn.0042ad80
mov ecx, edi
movsd qword [esp + 0x40], xmm0
call fcn.0042ad80
movsd xmm1, qword [esp + 0x40]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x45f243
mov ecx, dword [ebx]
movzx eax, word [ecx]
test ax, ax
je 0x45f173
mov edx, eax
nop dword [eax + eax]
add ecx, 2
mov word [esi], dx
add esi, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x45f160
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jb 0x45f184
cmp byte [esp + 0x10], 0
je 0x45f18e
mov ecx, dword [esp + 0x1c]
mov word [esi], cx
add esi, 2
mov edi, dword [ebx]
add ebx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x18]
jb 0x45f102
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [esp + 0x2c]
xor eax, eax
add esp, 4
cmp byte [esp + 0xe], al
je 0x45f2c4
cmp word [esi - 4], 0xd
jne 0x45f28f
mov word [esi - 4], ax
cmp byte [ebx + 0x17], al
jne 0x45f268
mov esi, dword [ebx + 0xc]
jmp 0x45f26a
cmp byte [0x4fba8e], 0
mov eax, dword [ebx]
jne 0x45f1f8
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
jmp 0x45f23b
cmp byte [0x4fba8e], 2
jne 0x45f20b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x45f23b
mov ecx, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45f236
test dx, dx
je 0x45f232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45f236
add eax, 4
add ecx, 4
test dx, dx
jne 0x45f210
xor eax, eax
jmp 0x45f23b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f14f
inc dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jne 0x45f190
cmp byte [esp + 0x10], 0
jne 0x45f190
sub esi, 2
jmp 0x45f190
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45f285
test byte [esi + 0x15], 8
je 0x45f27d
mov ecx, esi
call fcn.00401510
add esi, 0xc
add dword [esi], 0xfffffffc
jmp 0x45f2c7
mov esi, 0x4ffaf8
add dword [esi], 0xfffffffc
jmp 0x45f2c7
mov word [esi - 2], ax
cmp byte [ebx + 0x17], al
jne 0x45f29d
mov esi, dword [ebx + 0xc]
jmp 0x45f29f
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45f2ba
test byte [esi + 0x15], 8
je 0x45f2b2
mov ecx, esi
call fcn.00401510
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x45f2c7
mov esi, 0x4ffaf8
add dword [esi], 0xfffffffe
jmp 0x45f2c7
mov word [esi], ax
cmp byte [esp + 0x11], 0
je 0x45f32a
cmp dword [esp + 0x14], 0
je 0x45f32a
push 0
push 1
mov ecx, ebx
call fcn.004016b0
mov esi, eax
lea eax, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x45f2e5
sub esi, eax
sar esi, 1
cmp byte [ebx + 0x17], cl
jne 0x45f2fe
mov edi, dword [ebx + 0xc]
jmp 0x45f300
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x45f318
test byte [edi + 0x15], 8
je 0x45f313
mov ecx, edi
call fcn.00401510
add edi, 0xc
jmp 0x45f31d
mov edi, 0x4ffaf8
lea eax, [esi + esi]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
cmp byte [ebx + 0x17], 0
jne 0x45f333
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x45f351
cmp dword [0x4fe6e4], 0
je 0x45f351
push ecx
mov ecx, 0x4fe6d8
call fcn.00406bd0
mov ebx, eax
jmp 0x45f35a
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x45f373
mov ecx, dword [0x4fb9cc]
push 0x18
push 0
push eax
call fcn.00401490
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45f385
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 [0x4fbc7c], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8