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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4fad0c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
push edi
mov dword [esp + 0x28], ecx
movzx eax, word [esi]
mov dword [esp + 0x30], 0
mov dword [0x4fad0c], 0
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x1c], 0xa
mov byte [0x4fab1a], 0
mov byte [0x4fab17], 0
mov byte [0x4fab16], 0
mov dword [0x4fad10], 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 0x45dc0f
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.0x45da70.69
movzx eax, byte [eax + 0x45e204]
jmp dword [eax*4 + 0x45e1dc]
movzx edi, word [esi + 2]
lea ebx, [esi + 2]
test edi, 0xffffff80
jne 0x45da99
push 2
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x45da99
and edi, 0xffffffdf
movzx eax, di
cmp eax, 0x4c
cmove esi, ebx
sete al
inc al
mov ebx, 1
mov byte [0x4fab1a], al
jmp case.0x45da70.69
movzx eax, word [esi + 2]
mov edx, eax
test ax, ax
je case.0x45da70.69
add esi, 2
mov dword [esp + 0x1c], eax
jmp case.0x45da70.69
lea edi, [esi + 2]
movzx eax, word [edi]
cmp eax, 0x20
je 0x45dae1
cmp eax, 9
jne 0x45dae6
add edi, 2
jmp 0x45dad4
mov ebx, edi
test ax, ax
je 0x45db21
mov esi, eax
nop
mov ecx, 0x4e5614
mov edx, 0x20
nop word [eax + eax]
cmp si, dx
je 0x45db38
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x45db00
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x45daf0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45db26
sub ecx, edx
sar ecx, 1
lea ebx, [edi + ecx*2]
mov eax, ebx
mov ecx, 0x4fcc10
sub eax, edi
push 0
sar eax, 1
push eax
push edi
call fcn.0043dcb0
mov ecx, eax
mov dword [0x4fad0c], ecx
test ecx, ecx
je 0x45e195
cmp byte [ecx + 0x51], 0
jne 0x45e195
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x45e195
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x45e195
cmp word [eax + 0x14], 0
jne 0x45e195
lea esi, [ebx - 2]
mov ebx, 1
jmp case.0x45da70.69
mov byte [0x4fab17], 1
jmp case.0x45da70.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 [0x4fad10], eax
jmp case.0x45da70.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 0x45dbdb
mov byte [esp + 0xf], 1
add esi, 0xa
jmp case.0x45da70.69
mov byte [0x4fab16], 1
jmp case.0x45da70.69
xor eax, eax
mov byte [esp + 0x11], 1
mov dword [esp + 0x2c], eax
jmp case.0x45da70.69
mov byte [esp + 0x12], 1
jmp case.0x45da70.69
mov byte [esp + 0x13], 1
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x45da50
mov esi, dword [ebp + 8]
movzx edx, word [esi]
test dx, dx
je 0x45e195
mov ecx, dword [0x4fc2a8]
mov dword [esp + 0x20], ecx
mov al, byte [ecx + 0x17]
test al, al
jne 0x45dc35
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x45e195
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 0x45dc44
mov eax, ecx
sub eax, esi
sar eax, 1
cmp byte [esp + 0x12], 0
mov dword [esp + 0x18], eax
jne 0x45dc86
cmp ecx, esi
jbe 0x45dc86
mov ecx, dword [esp + 0x1c]
cmp word [ebx], cx
jne 0x45dc86
mov byte [esp + 0x10], 1
dec edi
jmp 0x45dcbd
cmp word [esp + 0x1c], 0xa
jne 0x45dcbd
push 0xa
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x45dcb9
cmp eax, esi
jbe 0x45dcb9
cmp word [eax - 2], 0xd
mov eax, dword [esp + 0x18]
jne 0x45dcbd
mov cl, 1
mov byte [esp + 0xe], cl
mov byte [esp + 0x10], cl
jmp 0x45dcc1
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0xe]
cmp edi, 1
jne 0x45dcdb
mov ecx, dword [esp + 0x20]
push edi
push 0
push eax
push esi
call fcn.004b4bf0
mov ebx, eax
jmp 0x45e19a
cmp dword [0x4fad0c], 0
jne 0x45dce8
test cl, cl
je 0x45dd5b
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 + 0x30], ecx
test ecx, ecx
jne 0x45dd1e
mov ecx, dword [esp + 0x28]
push 0x4cec30
push eax
push 0x4e2be8
call fcn.0044dae0
mov ebx, eax
jmp 0x45e19a
mov ebx, dword [esp + 0x18]
lea eax, [ebx*2 + 2]
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp byte [esp + 0xe], 0
mov esi, ecx
je 0x45dd5b
mov eax, dword [0x4ed4b4]
mov dword [ecx + ebx*2], eax
mov ax, word [0x4ed4b8]
mov word [ecx + ebx*2 + 4], ax
add ebx, 2
mov dword [esp + 0x18], ebx
xor ebx, ebx
lea eax, [edi + 1]
cmp byte [esp + 0xf], bl
setne bl
lea ebx, [ebx*4 + 4]
imul eax, ebx
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 0x45dd9e
mov ecx, dword [esp + 0x28]
push 0x4cec30
push eax
push 0x4e2be8
call fcn.0044dae0
mov ebx, eax
jmp 0x45e19a
mov edx, dword [0x4fe38c]
mov edi, eax
mov dword [eax], esi
movzx eax, word [esi]
mov dword [esp + 0x14], 0
test ax, ax
je 0x45de36
mov ecx, eax
nop word [eax + eax]
cmp cx, word [esp + 0x1c]
jne 0x45de29
inc dword [esp + 0x14]
xor eax, eax
mov word [esi], ax
cmp byte [esp + 0xf], al
je 0x45de20
sub dword [0x4f9be4], 1
jne 0x45ddea
call fcn.0042a2f0
mov edx, dword [0x4fe38c]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4fe38c], 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, ebx
add esi, 2
mov dword [edi], esi
jmp 0x45de2c
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x45ddc0
cmp byte [esp + 0x10], 0
mov esi, dword [esp + 0x14]
mov al, byte [esp + 0xf]
jne 0x45de9c
inc esi
mov dword [esp + 0x14], esi
test al, al
je 0x45de9c
sub dword [0x4f9be4], 1
jne 0x45de62
call fcn.0042a2f0
mov edx, dword [0x4fe38c]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4fe38c], 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 [0x4fad0c], 0
je 0x45deac
push 0x45d7c0
jmp 0x45deca
test al, al
je 0x45deb7
push 0x45d7b0
jmp 0x45deca
cmp byte [esp + 0x13], 0
mov eax, 0x45d600
mov ecx, 0x45d710
cmovne eax, ecx
push eax
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov esi, dword [esp + 0x30]
add esp, 0x10
mov ecx, esi
push 1
push 0
push dword [esp + 0x20]
push 0
call fcn.004b4bf0
cmp eax, 1
je 0x45defb
xor ebx, ebx
jmp 0x45e19a
mov eax, dword [esp + 0x14]
xor edi, edi
push edi
dec eax
mov dword [esp + 0x1c], 0
push 1
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.00401690
mov esi, eax
mov dword [esp + 0x28], edi
cmp dword [esp + 0x14], edi
jbe 0x45dfe3
xor eax, eax
cmp byte [esp + 0xf], al
setne al
lea eax, [eax*4 + 4]
mov dword [esp + 0x3c], eax
nop dword [eax]
cmp byte [esp + 0x11], 0
je 0x45df8d
test edi, edi
je 0x45df8d
cmp byte [0x4fab17], 0
je 0x45e020
cmp dword [0x4fad10], 0
jne 0x45e020
mov ecx, dword [ebx]
call fcn.0042a740
mov ecx, edi
movsd qword [esp + 0x40], xmm0
call fcn.0042a740
movsd xmm1, qword [esp + 0x40]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x45e083
mov ecx, dword [ebx]
movzx eax, word [ecx]
test ax, ax
je 0x45dfb3
mov edx, eax
nop dword [eax]
add ecx, 2
mov word [esi], dx
add esi, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x45dfa0
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x34]
jb 0x45dfc4
cmp byte [esp + 0x10], 0
je 0x45dfce
mov ecx, dword [esp + 0x1c]
mov word [esi], cx
add esi, 2
mov edi, dword [ebx]
add ebx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x14]
jb 0x45df40
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [esp + 0x24]
xor eax, eax
add esp, 4
cmp byte [esp + 0xe], al
je 0x45e104
cmp word [esi - 4], 0xd
jne 0x45e0cf
mov word [esi - 4], ax
cmp byte [ebx + 0x17], al
jne 0x45e0a8
mov esi, dword [ebx + 0xc]
jmp 0x45e0aa
cmp byte [0x4fab1a], 0
mov eax, dword [ebx]
jne 0x45e038
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
jmp 0x45e07b
cmp byte [0x4fab1a], 2
jne 0x45e04b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x45e07b
mov ecx, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45e076
test dx, dx
je 0x45e072
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45e076
add eax, 4
add ecx, 4
test dx, dx
jne 0x45e050
xor eax, eax
jmp 0x45e07b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45df8d
inc dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x34]
jne 0x45dfd0
cmp byte [esp + 0x10], 0
jne 0x45dfd0
sub esi, 2
jmp 0x45dfd0
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45e0c5
test byte [esi + 0x15], 8
je 0x45e0bd
mov ecx, esi
call fcn.004014f0
add esi, 0xc
add dword [esi], 0xfffffffc
jmp 0x45e107
mov esi, 0x4feb88
add dword [esi], 0xfffffffc
jmp 0x45e107
mov word [esi - 2], ax
cmp byte [ebx + 0x17], al
jne 0x45e0dd
mov esi, dword [ebx + 0xc]
jmp 0x45e0df
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x45e0fa
test byte [esi + 0x15], 8
je 0x45e0f2
mov ecx, esi
call fcn.004014f0
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x45e107
mov esi, 0x4feb88
add dword [esi], 0xfffffffe
jmp 0x45e107
mov word [esi], ax
cmp byte [esp + 0x11], 0
je 0x45e16a
cmp dword [esp + 0x18], 0
je 0x45e16a
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 0x45e125
sub esi, eax
sar esi, 1
cmp byte [ebx + 0x17], cl
jne 0x45e13e
mov edi, dword [ebx + 0xc]
jmp 0x45e140
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x45e158
test byte [edi + 0x15], 8
je 0x45e153
mov ecx, edi
call fcn.004014f0
add edi, 0xc
jmp 0x45e15d
mov edi, 0x4feb88
lea eax, [esi + esi]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
cmp byte [ebx + 0x17], 0
jne 0x45e173
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x45e191
cmp dword [0x4fd77c], 0
je 0x45e191
push ecx
mov ecx, 0x4fd770
call fcn.004068a0
mov ebx, eax
jmp 0x45e19a
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x45e1b3
mov ecx, dword [0x4faa64]
push 0x18
push 0
push eax
call fcn.00401470
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45e1c5
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x38]
pop edi
mov dword [0x4fad0c], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8