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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4fbc8c]
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 [0x4fbc8c], 0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x1c], 0xa
mov byte [0x4fba9a], 0
mov byte [0x4fba97], 0
mov byte [0x4fba96], 0
mov dword [0x4fbc90], 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 0x45ea2f
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.0x45e870.69
movzx eax, byte [eax + 0x45f024]
jmp dword [eax*4 + 0x45effc]
movzx eax, word [esi + 2]
lea edi, [esi + 2]
mov ebx, eax
test eax, 0xffffff80
je 0x45e88b
xor edx, edx
jmp 0x45e899
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 [0x4fba9a], al
cmovne edi, esi
mov esi, edi
jmp case.0x45e870.69
movzx eax, word [esi + 2]
mov edx, eax
test ax, ax
je case.0x45e870.69
add esi, 2
mov dword [esp + 0x1c], eax
jmp case.0x45e870.69
lea edi, [esi + 2]
nop word [eax + eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x45e8fd
cmp eax, 9
jne 0x45e902
add edi, 2
jmp 0x45e8f0
mov ebx, edi
test ax, ax
je 0x45e941
mov esi, eax
nop dword [eax + eax]
mov ecx, 0x4e6614
mov edx, 0x20
nop word [eax + eax]
cmp si, dx
je 0x45e958
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x45e920
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x45e910
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45e946
sub ecx, edx
sar ecx, 1
lea ebx, [edi + ecx*2]
mov eax, ebx
mov ecx, 0x4fdb90
sub eax, edi
push 0
sar eax, 1
push eax
push edi
call fcn.0043e520
mov ecx, eax
mov dword [0x4fbc8c], ecx
test ecx, ecx
je 0x45efb5
cmp byte [ecx + 0x51], 0
jne 0x45efb5
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x45efb5
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x45efb5
cmp word [eax + 0x14], 0
jne 0x45efb5
lea esi, [ebx - 2]
mov ebx, 1
jmp case.0x45e870.69
mov byte [0x4fba97], 1
jmp case.0x45e870.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 [0x4fbc90], eax
jmp case.0x45e870.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 0x45e9fb
mov byte [esp + 0xf], 1
add esi, 0xa
jmp case.0x45e870.69
mov byte [0x4fba96], 1
jmp case.0x45e870.69
xor eax, eax
mov byte [esp + 0x11], 1
mov dword [esp + 0x30], eax
jmp case.0x45e870.69
mov byte [esp + 0x12], 1
jmp case.0x45e870.69
mov byte [esp + 0x13], 1
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x45e850
mov esi, dword [ebp + 8]
movzx edx, word [esi]
test dx, dx
je 0x45efb5
mov ecx, dword [0x4fd228]
mov dword [esp + 0x28], ecx
mov al, byte [ecx + 0x17]
test al, al
jne 0x45ea55
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x45efb5
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 0x45ea64
mov eax, ecx
sub eax, esi
sar eax, 1
cmp byte [esp + 0x12], 0
mov dword [esp + 0x14], eax
jne 0x45eaa6
cmp ecx, esi
jbe 0x45eaa6
mov ecx, dword [esp + 0x1c]
cmp word [ebx], cx
jne 0x45eaa6
mov byte [esp + 0x10], 1
dec edi
jmp 0x45eadd
cmp word [esp + 0x1c], 0xa
jne 0x45eadd
push 0xa
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x45ead9
cmp eax, esi
jbe 0x45ead9
cmp word [eax - 2], 0xd
mov eax, dword [esp + 0x14]
jne 0x45eadd
mov cl, 1
mov byte [esp + 0xe], cl
mov byte [esp + 0x10], cl
jmp 0x45eae1
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0xe]
cmp edi, 1
jne 0x45eafb
mov ecx, dword [esp + 0x28]
push edi
push 0
push eax
push esi
call fcn.004b55f0
mov ebx, eax
jmp 0x45efba
cmp dword [0x4fbc8c], 0
jne 0x45eb08
test cl, cl
je 0x45eb7d
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 0x45eb3e
mov ecx, dword [esp + 0x2c]
push 0x4cfc30
push eax
push 0x4e3be8
call fcn.0044e550
mov ebx, eax
jmp 0x45efba
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 0x45eb81
mov eax, dword [0x4ee4ec]
mov dword [ecx + ebx*2], eax
mov ax, word [0x4ee4f0]
mov word [ecx + ebx*2 + 4], ax
add ebx, 2
mov dword [esp + 0x14], ebx
jmp 0x45eb81
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 0x45ebc8
mov ecx, dword [esp + 0x2c]
push 0x4cfc30
push eax
push 0x4e3be8
call fcn.0044e550
mov ebx, eax
jmp 0x45efba
mov edx, dword [0x4ff30c]
mov edi, eax
mov dword [eax], esi
movzx eax, word [esi]
mov dword [esp + 0x18], 0
test ax, ax
je 0x45ec6d
mov ecx, eax
xor ebx, ebx
nop word [eax + eax]
cmp cx, word [esp + 0x1c]
jne 0x45ec58
xor eax, eax
inc ebx
mov word [esi], ax
cmp byte [esp + 0xf], al
je 0x45ec4d
sub dword [0x4fab64], 1
jne 0x45ec17
call fcn.0042a860
mov edx, dword [0x4ff30c]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4ff30c], 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 0x45ec5b
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x45ebf0
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 0x45ecd3
inc esi
mov dword [esp + 0x18], esi
test al, al
je 0x45ecd3
sub dword [0x4fab64], 1
jne 0x45ec99
call fcn.0042a860
mov edx, dword [0x4ff30c]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4ff30c], 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 [0x4fbc8c], 0
je 0x45ece3
push 0x45e5c0
jmp 0x45ed01
test al, al
je 0x45ecee
push 0x45e5b0
jmp 0x45ed01
cmp byte [esp + 0x13], 0
mov eax, 0x45e400
mov ecx, 0x45e510
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.004b55f0
cmp eax, 1
je 0x45ed31
xor ebx, ebx
jmp 0x45efba
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.00401690
mov esi, eax
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x18], edi
jbe 0x45ee03
cmp byte [esp + 0x11], 0
je 0x45edaf
test edi, edi
je 0x45edaf
cmp byte [0x4fba97], 0
je 0x45ee40
cmp dword [0x4fbc90], 0
jne 0x45ee40
mov ecx, dword [ebx]
call fcn.0042acb0
mov ecx, edi
movsd qword [esp + 0x40], xmm0
call fcn.0042acb0
movsd xmm1, qword [esp + 0x40]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x45eea3
mov ecx, dword [ebx]
movzx eax, word [ecx]
test ax, ax
je 0x45edd3
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 0x45edc0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jb 0x45ede4
cmp byte [esp + 0x10], 0
je 0x45edee
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 0x45ed62
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 0x45ef24
cmp word [esi - 4], 0xd
jne 0x45eeef
mov word [esi - 4], ax
cmp byte [ebx + 0x17], al
jne 0x45eec8
mov esi, dword [ebx + 0xc]
jmp 0x45eeca
cmp byte [0x4fba9a], 0
mov eax, dword [ebx]
jne 0x45ee58
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
jmp 0x45ee9b
cmp byte [0x4fba9a], 2
jne 0x45ee6b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x45ee9b
mov ecx, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45ee96
test dx, dx
je 0x45ee92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45ee96
add eax, 4
add ecx, 4
test dx, dx
jne 0x45ee70
xor eax, eax
jmp 0x45ee9b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45edaf
inc dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jne 0x45edf0
cmp byte [esp + 0x10], 0
jne 0x45edf0
sub esi, 2
jmp 0x45edf0
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45eee5
test byte [esi + 0x15], 8
je 0x45eedd
mov ecx, esi
call fcn.004014f0
add esi, 0xc
add dword [esi], 0xfffffffc
jmp 0x45ef27
mov esi, 0x4ffb08
add dword [esi], 0xfffffffc
jmp 0x45ef27
mov word [esi - 2], ax
cmp byte [ebx + 0x17], al
jne 0x45eefd
mov esi, dword [ebx + 0xc]
jmp 0x45eeff
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45ef1a
test byte [esi + 0x15], 8
je 0x45ef12
mov ecx, esi
call fcn.004014f0
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x45ef27
mov esi, 0x4ffb08
add dword [esi], 0xfffffffe
jmp 0x45ef27
mov word [esi], ax
cmp byte [esp + 0x11], 0
je 0x45ef8a
cmp dword [esp + 0x14], 0
je 0x45ef8a
push 0
push 1
mov ecx, ebx
call fcn.00401690
mov esi, eax
lea eax, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x45ef45
sub esi, eax
sar esi, 1
cmp byte [ebx + 0x17], cl
jne 0x45ef5e
mov edi, dword [ebx + 0xc]
jmp 0x45ef60
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x45ef78
test byte [edi + 0x15], 8
je 0x45ef73
mov ecx, edi
call fcn.004014f0
add edi, 0xc
jmp 0x45ef7d
mov edi, 0x4ffb08
lea eax, [esi + esi]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
cmp byte [ebx + 0x17], 0
jne 0x45ef93
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x45efb1
cmp dword [0x4fe6fc], 0
je 0x45efb1
push ecx
mov ecx, 0x4fe6f0
call fcn.00406b50
mov ebx, eax
jmp 0x45efba
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x45efd3
mov ecx, dword [0x4fb9e4]
push 0x18
push 0
push eax
call fcn.00401470
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45efe5
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 [0x4fbc8c], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8