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

Disassembly:
mov rax, rsp
push rsi
push r15
sub rsp, 0x98
mov qword [rax + 8], rbx
xor sil, sil
mov qword [rax - 0x18], rbp
mov rbx, r8
mov qword [rax - 0x20], rdi
mov r9d, 0xa
mov qword [rax - 0x28], r12
mov rbp, rdx
mov qword [rax - 0x30], r13
mov r12, rcx
xor ecx, ecx
mov qword [rax - 0x38], r14
mov rax, qword [0x140102a78]
xor r13b, r13b
mov qword [rsp + 0x48], rax
xor r14b, r14b
movzx eax, word [rbx]
movzx r8d, r9w
mov qword [rsp + 0x38], rcx
lea r15d, [rcx + 1]
mov qword [0x140102a78], rcx
mov dword [rsp + 0x44], 0xffffffff
mov word [rsp + 0x30], r9w
mov byte [0x14010288e], cl
mov byte [0x14010288b], cl
mov byte [0x14010288a], cl
mov dword [0x140102a74], ecx
mov byte [rsp + 0xc8], cl
mov byte [rsp + 0x32], sil
mov byte [rsp + 0x34], cl
mov byte [rsp + 0xc0], r13b
mov byte [rsp + 0x33], cl
test ax, ax
je 0x14005b26a
lea rdi, [0x140000000]
lea esi, [rcx + 0x20]
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx eax, ax
add eax, 0xffffffbd
cmp eax, 0x19
ja case.0x14005b073.76
cdqe
movzx eax, byte [rdi + rax + 0x5b970]
mov ecx, dword [rdi + rax*4 + 0x5b948]
add rcx, rdi
jmp rcx
movzx edi, word [rbx + 2]
lea rsi, [rbx + 2]
test edi, 0xffffff80
je 0x14005b089
xor eax, eax
jmp 0x14005b096
mov edx, 2
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
movzx ecx, di
mov edx, 0xffdf
and cx, dx
test eax, eax
cmove cx, di
lea rdi, [0x140000000]
cmp cx, 0x4c
sete al
inc al
cmp cx, 0x4c
mov byte [0x14010288e], al
cmovne rsi, rbx
mov rbx, rsi
mov esi, SafeArrayAllocDescriptor
jmp case.0x14005b073.76
movzx ecx, word [rbx + 2]
lea rax, [rbx + 2]
test cx, cx
je case.0x14005b073.76
mov rbx, rax
mov word [rsp + 0x30], cx
movzx r8d, cx
jmp 0x14005b250
movzx edx, word [rbx + 2]
add rbx, 2
cmp dx, 0x20
je case.0x14005b073.69
cmp dx, 9
je case.0x14005b073.69
mov rdi, rbx
test dx, dx
je 0x14005b13f
lea rcx, [0x1400e2230]
movzx eax, si
nop word [rax + rax]
cmp dx, ax
je 0x14005b160
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14005b120
movzx edx, word [rdi + 2]
add rdi, 2
test dx, dx
jne 0x14005b110
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14005b150
lea rdi, [rbx + rax*2]
mov r8, rdi
lea rcx, [0x140105cf0]
sub r8, rbx
xor r9d, r9d
sar r8, 1
mov rdx, rbx
call fcn.1400372e0
mov qword [0x140102a78], rax
mov rcx, rax
test rax, rax
je 0x14005b8d5
cmp byte [rax + 0x79], 0
jne 0x14005b8d5
mov eax, dword [rax + 0x20]
sub eax, 2
cmp eax, r15d
ja 0x14005b8d5
mov rax, qword [rcx + 0x18]
cmp word [rax + 8], 0
jne 0x14005b8d5
cmp word [rax + 0x20], 0
jne 0x14005b8d5
lea rbx, [rdi - 2]
lea rdi, [0x140000000]
jmp case.0x14005b073.76
mov byte [0x14010288b], r15b
jmp case.0x14005b073.76
lea rcx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
cmp eax, r15d
cmovl eax, r15d
dec eax
mov dword [0x140102a74], eax
jmp case.0x14005b073.76
mov r8d, 6
lea rdx, str.Random
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
movzx r8d, word [rsp + 0x30]
test eax, eax
jne 0x14005b224
movzx r13d, r15b
mov byte [rsp + 0xc0], r15b
add rbx, 0xa
jmp 0x14005b250
mov byte [0x14010288a], r15b
jmp 0x14005b250
xor esi, esi
mov byte [rsp + 0x33], r15b
mov dword [rsp + 0x44], esi
mov esi, SafeArrayAllocDescriptor
jmp case.0x14005b073.76
movzx r14d, r15b
jmp case.0x14005b073.76
mov byte [rsp + 0x34], r15b
movzx r8d, word [rsp + 0x30]
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x14005b047
xor sil, sil
mov r9d, 0xa
movzx edx, word [rbp]
test dx, dx
je 0x14005b8d5
mov r15, qword [0x140104ae0]
mov qword [rsp + 0x50], r15
movzx eax, byte [r15 + 0x23]
test al, al
jne 0x14005b294
mov rax, qword [r15 + 0x10]
movzx eax, byte [rax + 0x23]
cmp al, 2
ja 0x14005b8cf
mov ebx, 1
mov rcx, rbp
nop dword [rax]
nop dword [rax + rax]
cmp dx, r8w
lea rax, [rbx + 1]
movzx edx, word [rcx + 2]
cmovne rax, rbx
add rcx, 2
mov rbx, rax
test dx, dx
jne 0x14005b2b0
mov rdi, rcx
sub rdi, rbp
sar rdi, 1
test r14b, r14b
jne 0x14005b2f3
cmp rcx, rbp
jbe 0x14005b2f3
cmp word [rcx - 2], r8w
jne 0x14005b2f3
mov byte [rsp + 0xc8], 1
dec rbx
jmp 0x14005b327
cmp r8w, 0xa
jne 0x14005b327
mov edx, r9d
mov rcx, rbp
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x14005b327
cmp rax, rbp
jbe 0x14005b327
cmp word [rax - 2], 0xd
jne 0x14005b327
mov sil, 1
mov byte [rsp + 0x32], sil
mov byte [rsp + 0xc8], sil
cmp rbx, 1
jne 0x14005b34a
xor r9d, r9d
mov byte [rsp + 0x20], bl
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call fcn.1400b1f60
mov r15d, eax
jmp 0x14005b8d5
cmp qword [0x140102a78], 0
jne 0x14005b359
test sil, sil
je 0x14005b3cb
lea rcx, [rdi*2 + 6]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x38], rax
mov rsi, rax
test rax, rax
jne 0x14005b395
lea r9, [0x1400cc644]
xor r8d, r8d
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.140047d40
mov r15d, eax
jmp 0x14005b8da
lea r8, [rdi*2 + 2]
mov rdx, rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
cmp byte [rsp + 0x32], 0
mov rbp, rsi
je 0x14005b3cb
mov eax, dword [0x1400e9958]
mov dword [rsi + rdi*2], eax
movzx eax, word [0x1400e995c]
mov word [rsi + rdi*2 + 4], ax
add rdi, 2
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbx + 1]
test r13b, r13b
mov esi, 8
cmovne esi, eax
imul rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
mov r14, rax
test rax, rax
jne 0x14005b417
lea r9, [0x1400cc644]
xor r8d, r8d
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.140047d40
mov r15d, eax
jmp 0x14005b8d5
mov r8, qword [0x140107628]
xor edx, edx
mov qword [rax], rbp
mov rbx, r14
movzx eax, word [rbp]
mov r13d, edx
test ax, ax
je 0x14005b4cb
movzx r12d, byte [rsp + 0xc0]
movzx ecx, word [rsp + 0x30]
cmp ax, cx
jne 0x14005b4ba
inc r13
mov word [rbp], dx
test r12b, r12b
je 0x14005b4b0
sub dword [0x140101850], 1
jne 0x14005b46a
call fcn.1400265b0
mov r8, qword [0x140107628]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x140107628], r8
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr rcx, 0x12
mov eax, edx
xor rcx, rax
shr rcx, 1
mov qword [rbx + 8], rcx
xor edx, edx
movzx ecx, word [rsp + 0x30]
add rbx, rsi
lea rax, [rbp + 2]
mov qword [rbx], rax
movzx eax, word [rbp + 2]
add rbp, 2
test ax, ax
jne 0x14005b444
cmp byte [rsp + 0xc8], 0
movzx eax, byte [rsp + 0xc0]
jne 0x14005b540
inc r13
test al, al
je 0x14005b540
sub dword [0x140101850], 1
jne 0x14005b4f9
call fcn.1400265b0
mov r8, qword [0x140107628]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x140107628], r8
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
mov ecx, edx
shr rcx, 0x12
xor rcx, rax
movzx eax, byte [rsp + 0xc0]
shr rcx, 1
mov qword [rbx + 8], rcx
cmp qword [0x140102a78], 0
je 0x14005b553
lea r9, [0x14005ad50]
jmp 0x14005b577
test al, al
je 0x14005b560
lea r9, [0x14005ad40]
jmp 0x14005b577
cmp byte [rsp + 0x34], 0
lea r9, [0x14005ab10]
lea rax, [0x14005ac90]
cmovne r9, rax
mov r8, rsi
mov rdx, r13
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, rdi
xor edx, edx
mov rcx, r15
call fcn.1400b1f60
cmp eax, 1
je 0x14005b5aa
xor eax, eax
mov r15d, eax
jmp 0x14005b8d5
xor eax, eax
lea r12, [r13 - 1]
xor r8d, r8d
mov dword [rsp + 0x40], eax
mov rcx, r15
mov edi, eax
mov esi, eax
lea edx, [rax + 1]
call fcn.1400016b0
xor r8d, r8d
mov rbx, rax
mov ebp, r8d
test r13, r13
je 0x14005b701
cmp byte [rsp + 0xc0], sil
mov eax, 8
movzx r15d, word [rsp + 0x30]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovne eax, ecx
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0xc0], rax
cmp byte [rsp + 0x33], 0
je 0x14005b69a
test rsi, rsi
je 0x14005b69a
cmp byte [0x14010288b], 0
je 0x14005b741
cmp dword [0x140102a74], 0
jne 0x14005b741
mov rdi, qword [r14]
mov rcx, rdi
call fcn.1400132b0
mov rcx, rdi
test al, al
je 0x14005b656
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
jmp 0x14005b65f
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
movaps xmm6, xmm0
mov rcx, rsi
call fcn.1400132b0
mov rcx, rsi
test al, al
je 0x14005b684
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
jmp 0x14005b68a
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
ucomisd xmm6, xmm0
jp 0x14005b696
je 0x14005b798
mov edi, dword [rsp + 0x40]
mov rax, qword [r14]
movzx ecx, word [rax]
test cx, cx
je 0x14005b6c3
nop word [rax + rax]
mov word [rbx], cx
lea rax, [rax + 2]
movzx ecx, word [rax]
add rbx, 2
test cx, cx
jne 0x14005b6b0
cmp rbp, r12
jb 0x14005b6d2
cmp byte [rsp + 0xc8], 0
je 0x14005b6da
mov word [rbx], r15w
add rbx, 2
mov rsi, qword [r14]
add r14, qword [rsp + 0xc0]
inc rbp
mov r8d, 0
cmp rbp, r13
jb 0x14005b600
mov r15, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
lea rdi, [0x1401082d8]
cmp byte [rsp + 0x32], al
je 0x14005b826
cmp word [rbx - 4], 0xd
jne 0x14005b7ec
mov word [rbx - 4], ax
cmp byte [r15 + 0x23], al
jne 0x14005b7c2
mov rbx, qword [r15 + 0x10]
jmp 0x14005b7c5
cmp byte [0x14010288e], 0
mov rdx, rsi
mov rax, qword [r14]
jne 0x14005b75b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
jmp 0x14005b78e
cmp byte [0x14010288e], 2
jne 0x14005b76f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x14005b78e
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14005b789
add rax, 2
test cx, cx
jne 0x14005b772
mov eax, r8d
jmp 0x14005b78e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14005b69a
jmp 0x14005b79c
mov edi, dword [rsp + 0x40]
inc edi
mov dword [rsp + 0x40], edi
cmp rbp, r12
jne 0x14005b6dd
cmp byte [rsp + 0xc8], 0
jne 0x14005b6dd
sub rbx, 2
jmp 0x14005b6dd
mov rbx, r15
cmp byte [rbx + 0x23], 1
jne 0x14005b7e3
test byte [rbx + 0x21], 8
je 0x14005b7d9
mov rcx, rbx
call fcn.140001560
add rbx, 0x10
add qword [rbx], 0xfffffffffffffffc
jmp 0x14005b829
mov rbx, rdi
add qword [rbx], 0xfffffffffffffffc
jmp 0x14005b829
mov word [rbx - 2], ax
cmp byte [r15 + 0x23], al
jne 0x14005b7fc
mov rbx, qword [r15 + 0x10]
jmp 0x14005b7ff
mov rbx, r15
cmp byte [rbx + 0x23], 1
jne 0x14005b81d
test byte [rbx + 0x21], 8
je 0x14005b813
mov rcx, rbx
call fcn.140001560
add rbx, 0x10
add qword [rbx], 0xfffffffffffffffe
jmp 0x14005b829
mov rbx, rdi
add qword [rbx], 0xfffffffffffffffe
jmp 0x14005b829
mov word [rbx], ax
cmp byte [rsp + 0x33], 0
je 0x14005b89d
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x14005b89d
xor r8d, r8d
mov rcx, r15
lea edx, [r8 + 1]
call fcn.1400016b0
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14005b850
cmp byte [r15 + 0x23], 0
mov qword [rsp + 0xc0], rcx
jne 0x14005b86f
mov rbx, qword [r15 + 0x10]
jmp 0x14005b872
mov rbx, r15
cmp byte [rbx + 0x23], 1
jne 0x14005b892
test byte [rbx + 0x21], 8
je 0x14005b88e
mov rcx, rbx
call fcn.140001560
mov rcx, qword [rsp + 0xc0]
lea rdi, [rbx + 0x10]
lea rax, [rcx + rcx]
mov dword [rsp + 0x44], esi
mov qword [rdi], rax
cmp byte [r15 + 0x23], 0
jne 0x14005b8a8
mov r15, qword [r15 + 0x10]
cmp byte [r15 + 0x23], 2
jne 0x14005b8ca
cmp qword [0x140106988], 0
je 0x14005b8ca
lea rcx, [0x140106970]
call fcn.140006080
mov r15d, eax
jmp 0x14005b8d5
and byte [r15 + 0x21], 0x86
mov r15d, 1
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsp + 0x44]
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
cmp eax, 0xffffffff
je 0x14005b91e
mov rcx, qword [0x140102760]
mov edx, eax
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400014c0
test rsi, rsi
je 0x14005b92c
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x48]
mov qword [0x140102a78], rax
mov eax, r15d
add rsp, 0x98
pop r15
pop rsi
ret