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

Disassembly:
mov rax, rsp
push rsi
push r14
sub rsp, 0xa8
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
xor bpl, bpl
mov qword [rax - 0x30], r13
mov r12, rdx
mov qword [rax - 0x38], r15
xor r13b, r13b
mov rax, qword [0x140115978]
mov r15, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rax
movzx eax, word [rbx]
movzx r8d, r9w
mov qword [rsp + 0x38], rcx
mov qword [0x140115978], rcx
mov dword [rsp + 0x40], 0xffffffff
lea r14d, [rcx + 1]
mov word [rsp + 0x30], r9w
mov byte [0x1401157ee], cl
mov byte [0x1401157eb], cl
mov byte [0x1401157ea], cl
mov dword [0x140115a34], ecx
mov byte [rsp + 0xd0], cl
mov byte [rsp + 0xd8], sil
mov byte [rsp + 0x33], cl
mov byte [rsp + 0x34], r13b
mov byte [rsp + 0x32], cl
test ax, ax
je 0x1400614d2
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.0x1400612e3.76
cdqe
movzx eax, byte [rdi + rax + 0x61b58]
mov ecx, dword [rdi + rax*4 + 0x61b30]
add rcx, rdi
jmp rcx
movzx edi, word [rbx + 2]
lea rsi, [rbx + 2]
test edi, 0xffffff80
je 0x1400612f9
xor eax, eax
jmp 0x140061306
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 [0x1401157ee], al
cmovne rsi, rbx
mov rbx, rsi
mov esi, SafeArrayAllocDescriptor
jmp case.0x1400612e3.76
movzx ecx, word [rbx + 2]
test cx, cx
je case.0x1400612e3.76
add rbx, 2
mov word [rsp + 0x30], cx
movzx r8d, cx
jmp 0x1400614b8
movzx edx, word [rbx + 2]
add rbx, 2
cmp dx, 0x20
je case.0x1400612e3.69
cmp dx, 9
je case.0x1400612e3.69
mov rdi, rbx
test dx, dx
je 0x1400613af
nop dword [rax]
lea rcx, [0x1400f6260]
movzx eax, si
nop word [rax + rax]
cmp dx, ax
je 0x1400613d0
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140061390
movzx edx, word [rdi + 2]
add rdi, 2
test dx, dx
jne 0x140061380
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400613c0
lea rdi, [rbx + rax*2]
mov r8, rdi
lea rcx, [0x140118bf0]
sub r8, rbx
xor r9d, r9d
sar r8, 1
mov rdx, rbx
call fcn.14003ad90
mov qword [0x140115978], rax
mov rcx, rax
test rax, rax
je 0x140061ab8
cmp byte [rax + 0x79], 0
jne 0x140061ab8
mov eax, dword [rax + 0x20]
sub eax, 2
cmp eax, r14d
ja 0x140061ab8
mov rax, qword [rcx + 0x18]
cmp word [rax + 8], 0
jne 0x140061ab8
cmp word [rax + 0x20], 0
jne 0x140061ab8
lea rbx, [rdi - 2]
lea rdi, [0x140000000]
jmp case.0x1400612e3.76
mov byte [0x1401157eb], r14b
jmp case.0x1400612e3.76
lea rcx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
cmp eax, r14d
cmovl eax, r14d
dec eax
mov dword [0x140115a34], eax
jmp case.0x1400612e3.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 0x140061491
movzx r13d, r14b
mov byte [rsp + 0x34], r14b
add rbx, 0xa
jmp 0x1400614b8
mov byte [0x1401157ea], r14b
jmp 0x1400614b8
xor eax, eax
mov byte [rsp + 0x32], r14b
mov dword [rsp + 0x40], eax
jmp case.0x1400612e3.76
movzx ebp, r14b
jmp case.0x1400612e3.76
mov byte [rsp + 0x33], r14b
movzx r8d, word [rsp + 0x30]
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x1400612b7
xor sil, sil
mov r9d, 0xa
movzx edx, word [r12]
test dx, dx
je 0x140061ab8
mov r14, qword [0x1401179f0]
mov qword [rsp + 0x58], r14
movzx eax, byte [r14 + 0x23]
test al, al
jne 0x1400614fd
mov rax, qword [r14 + 0x10]
movzx eax, byte [rax + 0x23]
cmp al, 2
ja 0x140061ab2
mov ebx, 1
mov rcx, r12
nop dword [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 0x140061510
mov rdi, rcx
sub rdi, r12
sar rdi, 1
test bpl, bpl
jne 0x140061553
cmp rcx, r12
jbe 0x140061553
cmp word [rcx - 2], r8w
jne 0x140061553
mov byte [rsp + 0xd0], 1
dec rbx
jmp 0x14006158a
cmp r8w, 0xa
jne 0x14006158a
mov edx, r9d
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x14006158a
cmp rax, r12
jbe 0x14006158a
cmp word [rax - 2], 0xd
jne 0x14006158a
mov sil, 1
mov byte [rsp + 0xd8], sil
mov byte [rsp + 0xd0], sil
cmp rbx, 1
jne 0x1400615ad
xor r9d, r9d
mov byte [rsp + 0x20], bl
mov r8, rdi
mov rdx, r12
mov rcx, r14
call fcn.1400c4200
mov r14d, eax
jmp 0x140061ab8
cmp qword [0x140115978], 0
jne 0x1400615bc
test sil, sil
je 0x140061631
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 0x1400615f8
lea r9, [0x1400e0674]
xor r8d, r8d
lea rdx, str.Out_of_memory.
mov rcx, r15
call fcn.14004d7f0
mov r14d, eax
jmp 0x140061abd
lea r8, [rdi*2 + 2]
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
cmp byte [rsp + 0xd8], 0
mov r12, rsi
je 0x140061631
mov eax, dword [0x1400fd978]
mov dword [rsi + rdi*2], eax
movzx eax, word [0x1400fd97c]
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 + 0x60], rax
mov rbp, rax
test rax, rax
jne 0x14006167d
lea r9, [0x1400e0674]
xor r8d, r8d
lea rdx, str.Out_of_memory.
mov rcx, r15
call fcn.14004d7f0
mov r14d, eax
jmp 0x140061ab8
mov r8, qword [0x14011a530]
xor edx, edx
mov qword [rax], r12
mov rbx, rbp
movzx eax, word [r12]
mov r15d, edx
test ax, ax
je 0x14006172d
movzx ecx, word [rsp + 0x30]
cmp ax, cx
jne 0x14006171a
inc r15
mov word [r12], dx
test r13b, r13b
je 0x14006170f
sub dword [0x1401147b0], 1
jne 0x1400616c9
call fcn.140028a70
mov r8, qword [0x14011a530]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x14011a530], 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, [r12 + 2]
mov qword [rbx], rax
movzx eax, word [r12 + 2]
add r12, 2
test ax, ax
jne 0x1400616a2
cmp byte [rsp + 0xd0], 0
jne 0x140061793
inc r15
test r13b, r13b
je 0x140061793
sub dword [0x1401147b0], 1
jne 0x140061754
call fcn.140028a70
mov r8, qword [0x14011a530]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x14011a530], 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
cmp qword [0x140115978], 0
je 0x1400617a6
lea r9, [0x140060fd0]
jmp 0x1400617cb
test r13b, r13b
je 0x1400617b4
lea r9, [0x140060fc0]
jmp 0x1400617cb
cmp byte [rsp + 0x33], 0
lea r9, [0x140060de0]
lea rax, [0x140060f10]
cmovne r9, rax
mov r8, rsi
mov rdx, r15
mov rcx, rbp
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, r14
call fcn.1400c4200
cmp eax, 1
je 0x1400617fe
xor eax, eax
mov r14d, eax
jmp 0x140061ab8
xor eax, eax
lea r12, [r15 - 1]
xor r8d, r8d
mov rcx, r14
mov r13d, eax
mov edi, eax
mov rsi, rbp
lea edx, [rax + 1]
call fcn.140001630
xor r8d, r8d
mov rbx, rax
mov ebp, r8d
test r15, r15
je 0x1400618ee
cmp byte [rsp + 0x34], dil
mov eax, 8
movzx r14d, word [rsp + 0x30]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovne eax, ecx
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x50], rax
nop
cmp byte [rsp + 0x32], 0
je 0x140061895
test rdi, rdi
je 0x140061895
cmp byte [0x1401157eb], 0
je 0x140061931
cmp dword [0x140115a34], 0
jne 0x140061931
mov rcx, qword [rsi]
call fcn.140028e90
mov rcx, rdi
movaps xmm6, xmm0
call fcn.140028e90
ucomisd xmm6, xmm0
jp 0x140061895
je 0x140061986
mov rax, qword [rsi]
movzx ecx, word [rax]
test cx, cx
je 0x1400618b3
mov word [rbx], cx
lea rax, [rax + 2]
movzx ecx, word [rax]
add rbx, 2
test cx, cx
jne 0x1400618a0
cmp rbp, r12
jb 0x1400618c2
cmp byte [rsp + 0xd0], 0
je 0x1400618ca
mov word [rbx], r14w
add rbx, 2
mov rdi, qword [rsi]
add rsi, qword [rsp + 0x50]
inc rbp
mov r8d, 0
cmp rbp, r15
jb 0x140061850
mov r14, qword [rsp + 0x58]
movaps xmm6, xmmword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
lea rdi, [0x14011b1e8]
cmp byte [rsp + 0xd8], al
je 0x140061a0d
cmp word [rbx - 4], 0xd
jne 0x1400619d3
mov word [rbx - 4], ax
cmp byte [r14 + 0x23], al
jne 0x1400619a9
mov rbx, qword [r14 + 0x10]
jmp 0x1400619ac
cmp byte [0x1401157ee], 0
mov rdx, rdi
mov rax, qword [rsi]
jne 0x14006194b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
jmp 0x14006197e
cmp byte [0x1401157ee], 2
jne 0x14006195f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x14006197e
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140061979
add rax, 2
test cx, cx
jne 0x140061962
mov eax, r8d
jmp 0x14006197e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140061895
inc r13d
cmp rbp, r12
jne 0x1400618cd
cmp byte [rsp + 0xd0], 0
jne 0x1400618cd
sub rbx, 2
jmp 0x1400618cd
mov rbx, r14
cmp byte [rbx + 0x23], 1
jne 0x1400619ca
test byte [rbx + 0x21], 8
je 0x1400619c0
mov rcx, rbx
call fcn.1400014d0
add rbx, 0x10
add qword [rbx], 0xfffffffffffffffc
jmp 0x140061a10
mov rbx, rdi
add qword [rbx], 0xfffffffffffffffc
jmp 0x140061a10
mov word [rbx - 2], ax
cmp byte [r14 + 0x23], al
jne 0x1400619e3
mov rbx, qword [r14 + 0x10]
jmp 0x1400619e6
mov rbx, r14
cmp byte [rbx + 0x23], 1
jne 0x140061a04
test byte [rbx + 0x21], 8
je 0x1400619fa
mov rcx, rbx
call fcn.1400014d0
add rbx, 0x10
add qword [rbx], 0xfffffffffffffffe
jmp 0x140061a10
mov rbx, rdi
add qword [rbx], 0xfffffffffffffffe
jmp 0x140061a10
mov word [rbx], ax
cmp byte [rsp + 0x32], 0
je 0x140061a80
test r13d, r13d
je 0x140061a80
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140061a32
cmp byte [r14 + 0x23], 0
mov qword [rsp + 0xd0], rcx
jne 0x140061a51
mov rbx, qword [r14 + 0x10]
jmp 0x140061a54
mov rbx, r14
cmp byte [rbx + 0x23], 1
jne 0x140061a74
test byte [rbx + 0x21], 8
je 0x140061a70
mov rcx, rbx
call fcn.1400014d0
mov rcx, qword [rsp + 0xd0]
lea rdi, [rbx + 0x10]
lea rax, [rcx + rcx]
mov dword [rsp + 0x40], r13d
mov qword [rdi], rax
cmp byte [r14 + 0x23], 0
jne 0x140061a8b
mov r14, qword [r14 + 0x10]
cmp byte [r14 + 0x23], 2
jne 0x140061aad
cmp qword [0x140119888], 0
je 0x140061aad
lea rcx, [0x140119870]
call fcn.140006680
mov r14d, eax
jmp 0x140061ab8
and byte [r14 + 0x21], 0x86
mov r14d, 1
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsp + 0x40]
mov r15, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xc0]
cmp eax, 0xffffffff
je 0x140061b07
mov rcx, qword [0x1401156c0]
mov edx, eax
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001430
test rsi, rsi
je 0x140061b15
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x48]
mov qword [0x140115978], rax
mov eax, r14d
add rsp, 0xa8
pop r14
pop rsi
ret