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

Disassembly:
mov rax, rsp
push rsi
push r15
sub rsp, 0xa8
mov qword [rax + 8], rbx
xor sil, sil
mov qword [rax - 0x18], rbp
mov r10d, 0xa
mov qword [rax - 0x20], rdi
mov rbx, r8
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 [0x140105f68]
xor r13b, r13b
xor r14b, r14b
mov qword [rsp + 0x38], rcx
movzx r9d, r10w
mov qword [rsp + 0x48], rax
lea r15d, [rcx + 1]
mov qword [0x140105f68], rcx
mov dword [rsp + 0x40], 0xffffffff
mov word [rsp + 0x30], r10w
mov byte [0x14010602a], cl
mov byte [0x140106029], cl
mov byte [0x140106028], cl
mov dword [0x140106024], ecx
mov byte [rsp + 0xd0], cl
mov byte [rsp + 0x32], sil
mov byte [rsp + 0x34], cl
mov byte [rsp + 0xd8], r13b
mov byte [rsp + 0x33], cl
cmp word [r8], cx
je 0x14004bae3
lea rdi, [0x140000000]
movzx ecx, word [rbx]
call fcn.1400b37e0
movzx eax, ax
add eax, 0xffffffbd
cmp eax, 0x19
ja case.0x14004b8fd.76
cdqe
movzx eax, byte [rdi + rax + 0x4c164]
mov ecx, dword [rdi + rax*4 + 0x4c13c]
add rcx, rdi
jmp rcx
movzx edi, word [rbx + 2]
lea rsi, [rbx + 2]
test edi, 0xffffff80
jne 0x14004b922
mov edx, 2
mov ecx, edi
call fcn.1400adfa4
test eax, eax
je 0x14004b922
and edi, 0xffffffdf
movzx r9d, word [rsp + 0x30]
cmp di, 0x4c
lea rdi, [0x140000000]
jne 0x14004b944
mov rbx, rsi
mov byte [0x14010602a], 2
jmp 0x14004bacc
mov byte [0x14010602a], r15b
jmp 0x14004bacc
cmp word [rbx + 2], 0
lea rax, [rbx + 2]
je case.0x14004b8fd.76
mov rbx, rax
movzx eax, word [rax]
test ax, ax
je case.0x14004b8fd.76
movzx r9d, ax
mov word [rsp + 0x30], ax
jmp 0x14004bacc
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x20
je case.0x14004b8fd.69
cmp ax, 9
je case.0x14004b8fd.69
mov rdi, rbx
movzx edx, ax
test ax, ax
je 0x14004b9cf
nop dword [rax + rax]
lea rcx, [0x1400e3a50]
mov eax, SafeArrayAllocDescriptor
nop dword [rax]
cmp dx, ax
je 0x14004b9e3
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14004b9b0
movzx edx, word [rdi + 2]
add rdi, 2
test dx, dx
jne 0x14004b9a0
or rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14004b9d3
lea rdi, [rbx + rax*2]
mov r8, rdi
lea rcx, [0x1401082b0]
sub r8, rbx
xor r9d, r9d
sar r8, 1
mov rdx, rbx
call fcn.140026ec0
mov qword [0x140105f68], rax
mov rcx, rax
test rax, rax
je 0x14004c0c6
cmp byte [rax + 0x5d], 0
jne 0x14004c0c6
mov eax, dword [rax + 0x20]
sub eax, 2
cmp eax, r15d
ja 0x14004c0c6
mov rax, qword [rcx + 0x18]
cmp word [rax + 8], 0
jne 0x14004c0c6
cmp word [rax + 0x20], 0
jne 0x14004c0c6
lea rbx, [rdi - 2]
lea rdi, [0x140000000]
jmp case.0x14004b8fd.76
mov byte [0x140106029], r15b
jmp case.0x14004b8fd.76
lea rcx, [rbx + 2]
call fcn.1400aefc8
cmp eax, r15d
cmovl eax, r15d
dec eax
mov dword [0x140106024], eax
jmp case.0x14004b8fd.76
mov r8d, 6
lea rdx, [0x1400d0d38]
mov rcx, rbx
call fcn.1400ad9d8
movzx r9d, word [rsp + 0x30]
test eax, eax
jne 0x14004baa5
movzx r13d, r15b
mov byte [rsp + 0xd8], r15b
add rbx, 0xa
jmp 0x14004bacc
mov byte [0x140106028], r15b
jmp 0x14004bacc
xor eax, eax
mov byte [rsp + 0x33], r15b
mov dword [rsp + 0x40], eax
jmp case.0x14004b8fd.76
movzx r14d, r15b
jmp case.0x14004b8fd.76
mov byte [rsp + 0x34], r15b
movzx r9d, word [rsp + 0x30]
add rbx, 2
cmp word [rbx], 0
jne 0x14004b8d2
xor sil, sil
mov r10d, 0xa
movzx r8d, word [rbp]
test r8w, r8w
je 0x14004c0c6
mov r15, qword [0x1401080a0]
mov qword [rsp + 0x58], r15
movzx eax, byte [r15 + 0x23]
test al, al
jne 0x14004bb0f
mov rax, qword [r15 + 0x10]
movzx eax, byte [rax + 0x23]
cmp al, 2
ja 0x14004c0c0
mov ebx, 1
mov rdx, rbp
nop
add rdx, 2
lea rax, [rbx + 1]
movzx ecx, r8w
cmp cx, r9w
movzx r8d, word [rdx]
cmovne rax, rbx
mov rbx, rax
test r8w, r8w
jne 0x14004bb20
mov rdi, rdx
sub rdi, rbp
sar rdi, 1
test r14b, r14b
jne 0x14004bb68
cmp rdx, rbp
jbe 0x14004bb68
cmp word [rdx - 2], r9w
jne 0x14004bb68
mov byte [rsp + 0xd0], 1
dec rbx
jmp 0x14004bb9b
cmp r9w, 0xa
jne 0x14004bb9b
mov edx, r10d
mov rcx, rbp
call fcn.1400a9968
test rax, rax
je 0x14004bb9b
cmp rax, rbp
jbe 0x14004bb9b
cmp word [rax - 2], 0xd
jne 0x14004bb9b
mov sil, 1
mov byte [rsp + 0x32], sil
mov byte [rsp + 0xd0], sil
cmp rbx, 1
jne 0x14004bbbe
xor r9d, r9d
mov byte [rsp + 0x20], bl
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call fcn.14008ec90
mov r15d, eax
jmp 0x14004c0c6
cmp qword [0x140105f68], 0
jne 0x14004bbcd
test sil, sil
je 0x14004bc3e
lea rcx, [rdi*2 + 6]
call fcn.1400ab568
mov qword [rsp + 0x38], rax
mov rsi, rax
test rax, rax
jne 0x14004bc08
lea r9, [0x1400cffcc]
xor r8d, r8d
lea rdx, [0x1400e3900]
mov rcx, r12
call fcn.140038ea0
mov r15d, eax
jmp 0x14004c0cb
lea r8, [rdi*2 + 2]
mov rdx, rbp
mov rcx, rsi
call fcn.1400a9530
cmp byte [rsp + 0x32], 0
mov rbp, rsi
je 0x14004bc3e
mov eax, dword [0x1400eaae0]
mov dword [rsi + rdi*2], eax
movzx eax, word [0x1400eaae4]
mov word [rsi + rdi*2 + 4], ax
add rdi, 2
xor esi, esi
lea rcx, [rbx + 1]
test r13b, r13b
setne sil
inc rsi
shl rsi, 3
imul rcx, rsi
mov qword [rsp + 0x50], rsi
call fcn.1400ab568
mov qword [rsp + 0x60], rax
mov r14, rax
test rax, rax
jne 0x14004bc8e
lea r9, [0x1400cffcc]
xor r8d, r8d
lea rdx, [0x1400e3900]
mov rcx, r12
call fcn.140038ea0
mov r15d, eax
jmp 0x14004c0c6
mov r8, qword [0x140109af0]
xor ecx, ecx
movzx r12d, byte [rsp + 0xd8]
mov rbx, r14
mov qword [rax], rbp
mov r13d, ecx
cmp word [rbp], cx
je 0x14004bd3e
movzx eax, word [rsp + 0x30]
cmp word [rbp], ax
jne 0x14004bd2f
inc r13
mov word [rbp], cx
test r12b, r12b
je 0x14004bd20
sub dword [0x140103420], 1
jne 0x14004bcdf
call fcn.140017200
mov r8, qword [0x140109af0]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x140109af0], 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 ecx, ecx
lea rax, [rbp + 2]
add rbx, rsi
mov qword [rbx], rax
movzx eax, word [rsp + 0x30]
add rbp, 2
cmp word [rbp], 0
jne 0x14004bcb8
cmp byte [rsp + 0xd0], 0
jne 0x14004bda4
inc r13
test r12b, r12b
je 0x14004bda4
sub dword [0x140103420], 1
jne 0x14004bd65
call fcn.140017200
mov r8, qword [0x140109af0]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x140109af0], 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 [0x140105f68], 0
je 0x14004bdb7
lea r9, [0x14004b5e0]
jmp 0x14004bddc
test r12b, r12b
je 0x14004bdc5
lea r9, [0x14004b5d0]
jmp 0x14004bddc
cmp byte [rsp + 0x34], 0
lea r9, [0x14004b3a0]
lea rax, [0x14004b520]
cmovne r9, rax
mov r8, rsi
mov rdx, r13
mov rcx, r14
call fcn.1400adc70
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, rdi
xor edx, edx
mov rcx, r15
call fcn.14008ec90
cmp eax, 1
je 0x14004be0e
xor eax, eax
mov r15d, eax
jmp 0x14004c0c6
xor eax, eax
lea rdi, [r13 - 1]
xor r8d, r8d
mov rcx, r15
mov r12d, eax
mov esi, eax
lea edx, [rax + 1]
call fcn.140001450
xor r8d, r8d
mov rbx, rax
mov ebp, r8d
test r13, r13
je 0x14004bf3e
movzx r15d, word [rsp + 0x30]
movaps xmmword [rsp + 0x70], xmm6
cmp byte [rsp + 0x33], 0
je 0x14004beda
test rsi, rsi
je 0x14004beda
cmp byte [0x140106029], 0
je 0x14004bf72
cmp dword [0x140106024], 0
jne 0x14004bf72
mov rdi, qword [r14]
mov rcx, rdi
call fcn.140010ae0
mov rcx, rdi
test al, al
je 0x14004be99
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400af464
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
jmp 0x14004bea1
call fcn.1400b35b0
movaps xmm6, xmm0
mov rcx, rsi
call fcn.140010ae0
mov rcx, rsi
test al, al
je 0x14004bec5
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400af464
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
jmp 0x14004beca
call fcn.1400b35b0
ucomisd xmm6, xmm0
jp 0x14004bed6
je 0x14004bfcd
lea rdi, [r13 - 1]
mov rax, qword [r14]
movzx ecx, word [rax]
test cx, cx
je 0x14004bf03
nop word [rax + rax]
mov word [rbx], cx
lea rax, [rax + 2]
movzx ecx, word [rax]
add rbx, 2
test cx, cx
jne 0x14004bef0
cmp rbp, rdi
jb 0x14004bf12
cmp byte [rsp + 0xd0], 0
je 0x14004bf1a
mov word [rbx], r15w
add rbx, 2
mov rsi, qword [r14]
add r14, qword [rsp + 0x50]
inc rbp
mov r8d, 0
cmp rbp, r13
jb 0x14004be44
mov r15, qword [rsp + 0x58]
movaps xmm6, xmmword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.1400adb8c
xor eax, eax
lea rdi, [0x140109b28]
cmp byte [rsp + 0x32], al
je 0x14004c01e
mov word [rbx - 4], ax
cmp byte [r15 + 0x23], al
jne 0x14004bff4
mov rbx, qword [r15 + 0x10]
jmp 0x14004bff7
cmp byte [0x14010602a], 0
mov rdx, rsi
jne 0x14004bf88
mov rcx, qword [r14]
call fcn.1400ab3f0
jmp 0x14004bfbe
cmp byte [0x14010602a], 2
jne 0x14004bf9c
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x14004bfbe
mov rax, qword [r14]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14004bfb9
add rax, 2
test cx, cx
jne 0x14004bfa2
mov eax, r8d
jmp 0x14004bfbe
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
jne 0x14004beda
jmp 0x14004bfd1
lea rdi, [r13 - 1]
inc r12d
cmp rbp, rdi
jne 0x14004bf1d
cmp byte [rsp + 0xd0], 0
jne 0x14004bf1d
sub rbx, 2
jmp 0x14004bf1d
mov rbx, r15
cmp byte [rbx + 0x23], 1
jne 0x14004c015
test byte [rbx + 0x21], 8
je 0x14004c00b
mov rcx, rbx
call fcn.140001320
add rbx, 0x10
add qword [rbx], 0xfffffffffffffffc
jmp 0x14004c021
mov rbx, rdi
add qword [rbx], 0xfffffffffffffffc
jmp 0x14004c021
mov word [rbx], ax
cmp byte [rsp + 0x33], 0
je 0x14004c08e
test r12d, r12d
je 0x14004c08e
xor r8d, r8d
mov rcx, r15
lea edx, [r8 + 1]
call fcn.140001450
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14004c040
cmp byte [r15 + 0x23], 0
mov qword [rsp + 0xd0], rcx
jne 0x14004c05f
mov rbx, qword [r15 + 0x10]
jmp 0x14004c062
mov rbx, r15
cmp byte [rbx + 0x23], 1
jne 0x14004c082
test byte [rbx + 0x21], 8
je 0x14004c07e
mov rcx, rbx
call fcn.140001320
mov rcx, qword [rsp + 0xd0]
lea rdi, [rbx + 0x10]
lea rax, [rcx + rcx]
mov dword [rsp + 0x40], r12d
mov qword [rdi], rax
cmp byte [r15 + 0x23], 0
jne 0x14004c099
mov r15, qword [r15 + 0x10]
cmp byte [r15 + 0x23], 2
jne 0x14004c0bb
cmp qword [0x140108f18], 0
je 0x14004c0bb
lea rcx, [0x140108f00]
call fcn.140005340
mov r15d, eax
jmp 0x14004c0c6
and byte [r15 + 0x21], 0x86
mov r15d, 1
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsp + 0x40]
mov r14, 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 0x14004c115
mov rcx, qword [0x140105d40]
mov edx, eax
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001280
test rsi, rsi
je 0x14004c122
mov rcx, rsi
call fcn.1400adb8c
mov rax, qword [rsp + 0x48]
mov qword [0x140105f68], rax
mov eax, r15d
add rsp, 0xa8
pop r15
pop rsi
ret