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

Disassembly:
mov rax, rsp
push rsi
push r13
push r15
sub rsp, 0xa0
mov r13, qword [0x1401020f8]
xor sil, sil
mov qword [rax + 8], rbx
mov r10d, 0xa
mov qword [rax - 0x20], rbp
mov rbx, r8
mov qword [rax - 0x28], rdi
xor bpl, bpl
mov qword [rax - 0x30], r12
movzx r9d, r10w
mov qword [rax - 0x38], r14
mov r12, rcx
xor eax, eax
mov qword [rsp + 0x48], r13
mov ecx, 0xffffffff
mov r14, rdx
mov qword [rsp + 0x38], rax
mov qword [0x1401020f8], rax
lea r15d, [rax + 1]
mov dword [rsp + 0x44], ecx
mov word [rsp + 0x30], r10w
mov byte [0x1401021b6], al
mov byte [0x1401021b5], al
mov byte [0x1401021b4], al
mov dword [0x1401020f4], eax
mov byte [rsp + 0xd0], al
mov byte [rsp + 0xd8], sil
mov byte [rsp + 0x34], al
mov byte [rsp + 0x33], al
mov byte [rsp + 0x32], al
cmp word [r8], ax
je 0x1400494df
lea rdi, [0x140000000]
nop dword [rax]
movzx ecx, word [rbx]
call fcn.1400b1440
movzx eax, ax
add eax, 0xffffffbd
cmp eax, 0x19
ja case.0x1400492fb.76
cdqe
movzx eax, byte [rdi + rax + 0x49ca4]
mov ecx, dword [rdi + rax*4 + 0x49c7c]
add rcx, rdi
jmp rcx
movzx edi, word [rbx + 2]
lea rsi, [rbx + 2]
test edi, 0xffffff80
jne 0x140049320
mov edx, 2
mov ecx, edi
call fcn.1400abc04
test eax, eax
je 0x140049320
and edi, 0xffffffdf
movzx r9d, word [rsp + 0x30]
cmp di, 0x4c
lea rdi, [0x140000000]
jne 0x140049342
mov rbx, rsi
mov byte [0x1401021b6], 2
jmp 0x1400494c8
mov byte [0x1401021b6], r15b
jmp 0x1400494c8
cmp word [rbx + 2], 0
lea rax, [rbx + 2]
je case.0x1400492fb.76
mov rbx, rax
movzx eax, word [rax]
test ax, ax
je case.0x1400492fb.76
movzx r9d, ax
mov word [rsp + 0x30], ax
jmp 0x1400494c8
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x20
je case.0x1400492fb.69
cmp ax, 9
je case.0x1400492fb.69
mov rdi, rbx
movzx edx, ax
test ax, ax
je 0x1400493cf
nop dword [rax]
lea rcx, [0x1400e0a50]
mov eax, SafeArrayAllocDescriptor
nop dword [rax]
cmp dx, ax
je 0x1400493e3
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400493b0
movzx edx, word [rdi + 2]
add rdi, 2
test dx, dx
jne 0x1400493a0
or rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400493d3
lea rdi, [rbx + rax*2]
mov r8, rdi
lea rcx, [0x1401063b0]
sub r8, rbx
xor r9d, r9d
sar r8, 1
mov rdx, rbx
call fcn.140024e10
mov qword [0x1401020f8], rax
mov rcx, rax
test rax, rax
je 0x140049c0b
cmp byte [rax + 0x5d], 0
jne 0x140049c0b
mov eax, dword [rax + 0x20]
sub eax, 2
cmp eax, r15d
ja 0x140049c0b
mov rax, qword [rcx + 0x18]
cmp word [rax + 8], 0
jne 0x140049c0b
cmp word [rax + 0x20], 0
jne 0x140049c0b
lea rbx, [rdi - 2]
lea rdi, [0x140000000]
jmp case.0x1400492fb.76
mov byte [0x1401021b5], r15b
jmp case.0x1400492fb.76
lea rcx, [rbx + 2]
call fcn.1400acc28
cmp eax, r15d
cmovl eax, r15d
dec eax
mov dword [0x1401020f4], eax
jmp case.0x1400492fb.76
mov r8d, 6
lea rdx, str.Random
mov rcx, rbx
call fcn.1400ab648
movzx r9d, word [rsp + 0x30]
test eax, eax
jne 0x1400494a1
movzx eax, r15b
add rbx, 0xa
mov byte [rsp + 0x33], al
jmp 0x1400494c8
mov byte [0x1401021b4], r15b
jmp 0x1400494c8
xor esi, esi
mov byte [rsp + 0x32], r15b
mov dword [rsp + 0x44], esi
jmp case.0x1400492fb.76
movzx ebp, r15b
jmp case.0x1400492fb.76
mov byte [rsp + 0x34], r15b
movzx r9d, word [rsp + 0x30]
add rbx, 2
cmp word [rbx], 0
jne 0x1400492d0
xor sil, sil
mov r10d, 0xa
movzx r8d, word [r14]
test r8w, r8w
je 0x140049c0b
mov r13, qword [0x140106130]
mov qword [rsp + 0x58], r13
movzx eax, byte [r13 + 0x23]
test al, al
jne 0x14004950a
mov rax, qword [r13 + 0x10]
movzx eax, byte [rax + 0x23]
cmp al, 2
ja 0x140049c06
mov rbx, r15
mov rdx, r14
nop dword [rax + rax]
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 0x140049520
mov rdi, rdx
sub rdi, r14
sar rdi, 1
test bpl, bpl
jne 0x140049568
cmp rdx, r14
jbe 0x140049568
cmp word [rdx - 2], r9w
jne 0x140049568
mov byte [rsp + 0xd0], r15b
dec rbx
jmp 0x14004959f
cmp r9w, 0xa
jne 0x14004959f
mov edx, r10d
mov rcx, r14
call fcn.1400a75d8
test rax, rax
je 0x14004959f
cmp rax, r14
jbe 0x14004959f
cmp word [rax - 2], 0xd
jne 0x14004959f
movzx esi, r15b
mov byte [rsp + 0xd8], r15b
mov byte [rsp + 0xd0], r15b
cmp rbx, r15
jne 0x1400495c2
xor r9d, r9d
mov byte [rsp + 0x20], r15b
mov r8, rdi
mov rdx, r14
mov rcx, r13
call fcn.14008c660
mov r15d, eax
jmp 0x140049c06
cmp qword [0x1401020f8], 0
jne 0x1400495d1
test sil, sil
je 0x14004964a
lea rcx, [rdi*2 + 6]
call fcn.1400a91d8
mov qword [rsp + 0x38], rax
mov rsi, rax
test rax, rax
jne 0x140049611
lea r9, [0x1400ccf5c]
xor r8d, r8d
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.1400366e0
mov r13, qword [rsp + 0x48]
mov r15d, eax
jmp 0x140049c10
lea r8, [rdi*2 + 2]
mov rdx, r14
mov rcx, rsi
call fcn.1400a71a0
cmp byte [rsp + 0xd8], 0
mov r14, rsi
je 0x14004964a
mov eax, dword [0x1400e7220]
mov dword [rsi + rdi*2], eax
movzx eax, word [0x1400e7224]
mov word [rsi + rdi*2 + 4], ax
add rdi, 2
movzx ebp, byte [rsp + 0x33]
lea rcx, [rbx + 1]
xor esi, esi
test bpl, bpl
setne sil
inc rsi
shl rsi, 3
imul rcx, rsi
mov qword [rsp + 0x50], rsi
call fcn.1400a91d8
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
jne 0x14004969f
lea r9, [0x1400ccf5c]
xor r8d, r8d
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.1400366e0
mov r15d, eax
jmp 0x140049c06
mov r8, qword [0x140107238]
xor ecx, ecx
mov qword [rax], r14
mov rbx, r15
mov r12d, ecx
cmp word [r14], cx
je 0x140049746
movzx eax, word [rsp + 0x30]
cmp word [r14], ax
jne 0x140049737
inc r12
mov word [r14], cx
test bpl, bpl
je 0x140049728
sub dword [0x1400ff3f4], 1
jne 0x1400496e7
call fcn.140015e60
mov r8, qword [0x140107238]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x140107238], 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, [r14 + 2]
add rbx, rsi
mov qword [rbx], rax
movzx eax, word [rsp + 0x30]
add r14, 2
cmp word [r14], 0
jne 0x1400496c0
cmp byte [rsp + 0xd0], 0
jne 0x1400497ac
inc r12
test bpl, bpl
je 0x1400497ac
sub dword [0x1400ff3f4], 1
jne 0x14004976d
call fcn.140015e60
mov r8, qword [0x140107238]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x140107238], 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 [0x1401020f8], 0
je 0x1400497bf
lea r9, [0x140048fe0]
jmp 0x1400497e4
test bpl, bpl
je 0x1400497cd
lea r9, [0x140048fd0]
jmp 0x1400497e4
cmp byte [rsp + 0x34], 0
lea r9, [0x140048da0]
lea rax, [0x140048f20]
cmovne r9, rax
mov r8, rsi
mov rdx, r12
mov rcx, r15
call fcn.1400ab8d0
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, rdi
xor edx, edx
mov rcx, r13
call fcn.14008c660
cmp eax, 1
je 0x140049816
xor eax, eax
mov r15d, eax
jmp 0x140049c06
xor eax, eax
lea rdi, [r12 - 1]
mov esi, eax
mov dword [rsp + 0x40], eax
mov r14, r15
cmp byte [r13 + 0x23], al
jne 0x140049832
mov rbx, qword [r13 + 0x10]
jmp 0x140049835
mov rbx, r13
test byte [rbx + 0x21], 8
je 0x140049843
mov rcx, rbx
call fcn.140001340
movzx eax, byte [rbx + 0x23]
lea rbp, [0x1400ccf50]
lea r15, [0x1401062b4]
cmp al, 1
jne 0x14004986d
test byte [rbx + 0x21], 4
je 0x140049867
mov rdx, rbx
call fcn.1400374a0
mov rbx, qword [rbx + 8]
jmp 0x1400498c5
cmp al, 2
jne 0x1400498c2
mov rbx, qword [0x140106ff8]
test rbx, rbx
jne 0x1400498c5
lea ecx, [rbx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1400498a2
lea ecx, [rbx + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
lea rbx, [0x1400ccf5c]
cmovne rbx, rbp
jmp 0x1400498c5
xor edx, edx
call fcn.140004b80
mov ecx, 0xffffffff
lea rbx, [0x1400ccf5c]
cmp rax, rcx
cmovne rbx, qword [0x140106ff0]
jmp 0x1400498c5
mov rbx, r15
xor r8d, r8d
mov ebp, r8d
test r12, r12
je 0x1400499ea
movzx r15d, word [rsp + 0x30]
mov r13d, esi
movaps xmmword [rsp + 0x70], xmm6
cmp byte [rsp + 0x32], 0
je 0x140049979
test rsi, rsi
je 0x140049979
cmp byte [0x1401021b5], 0
je 0x140049a21
cmp dword [0x1401020f4], 0
jne 0x140049a21
mov rdi, qword [r14]
mov rcx, rdi
call fcn.14000f750
mov rcx, rdi
test al, al
je 0x140049937
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400ad0cc
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
jmp 0x14004993f
call fcn.1400b1210
movaps xmm6, xmm0
mov rcx, rsi
call fcn.14000f750
mov rcx, rsi
test al, al
je 0x140049963
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400ad0cc
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
jmp 0x140049968
call fcn.1400b1210
ucomisd xmm6, xmm0
jp 0x140049974
je 0x140049a7c
lea rdi, [r12 - 1]
mov rax, qword [r14]
movzx ecx, word [rax]
test cx, cx
je 0x1400499a3
nop dword [rax]
nop dword [rax + rax]
mov word [rbx], cx
lea rax, [rax + 2]
movzx ecx, word [rax]
add rbx, 2
test cx, cx
jne 0x140049990
cmp rbp, rdi
jb 0x1400499b2
cmp byte [rsp + 0xd0], 0
je 0x1400499ba
mov word [rbx], r15w
add rbx, 2
mov rsi, qword [r14]
add r14, qword [rsp + 0x50]
inc rbp
mov r8d, 0
cmp rbp, r12
jb 0x1400498e2
movaps xmm6, xmmword [rsp + 0x70]
lea r15, [0x1401062b4]
mov dword [rsp + 0x40], r13d
mov r13, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400acc80
xor eax, eax
lea rdi, [0x140107c30]
cmp byte [rsp + 0xd8], al
je 0x140049ace
mov word [rbx - 4], ax
cmp byte [r13 + 0x23], al
jne 0x140049aa4
mov rbx, qword [r13 + 0x10]
jmp 0x140049aa7
cmp byte [0x1401021b6], 0
mov rdx, rsi
jne 0x140049a37
mov rcx, qword [r14]
call fcn.1400a9060
jmp 0x140049a6d
cmp byte [0x1401021b6], 2
jne 0x140049a4b
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x140049a6d
mov rax, qword [r14]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140049a68
add rax, 2
test cx, cx
jne 0x140049a51
mov eax, r8d
jmp 0x140049a6d
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
jne 0x140049979
jmp 0x140049a81
lea rdi, [r12 - 1]
inc r13d
cmp rbp, rdi
jne 0x1400499bd
cmp byte [rsp + 0xd0], 0
jne 0x1400499bd
sub rbx, 2
jmp 0x1400499bd
mov rbx, r13
cmp byte [rbx + 0x23], 1
jne 0x140049ac5
test byte [rbx + 0x21], 8
je 0x140049abb
mov rcx, rbx
call fcn.140001340
add rbx, 0x10
add qword [rbx], 0xfffffffffffffffc
jmp 0x140049ad1
mov rbx, rdi
add qword [rbx], 0xfffffffffffffffc
jmp 0x140049ad1
mov word [rbx], ax
cmp byte [rsp + 0x32], 0
je 0x140049bce
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x140049bce
cmp byte [r13 + 0x23], 0
jne 0x140049af5
mov rbx, qword [r13 + 0x10]
jmp 0x140049af8
mov rbx, r13
test byte [rbx + 0x21], 8
je 0x140049b06
mov rcx, rbx
call fcn.140001340
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x140049b22
test byte [rbx + 0x21], 4
je 0x140049b1c
mov rdx, rbx
call fcn.1400374a0
mov r15, qword [rbx + 8]
jmp 0x140049b7d
cmp al, 2
jne 0x140049b7d
mov r15, qword [0x140106ff8]
test r15, r15
jne 0x140049b7d
lea ecx, [r15 + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x140049b5f
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
lea r15, [0x1400ccf5c]
lea rax, [0x1400ccf50]
cmovne r15, rax
jmp 0x140049b7d
xor edx, edx
call fcn.140004b80
mov ecx, 0xffffffff
lea r15, [0x1400ccf5c]
cmp rax, rcx
cmovne r15, qword [0x140106ff0]
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], 0
jne 0x140049b81
cmp byte [r13 + 0x23], 0
mov qword [rsp + 0xd0], rax
jne 0x140049ba1
mov rbx, qword [r13 + 0x10]
jmp 0x140049ba4
mov rbx, r13
cmp byte [rbx + 0x23], 1
jne 0x140049bc4
test byte [rbx + 0x21], 8
je 0x140049bc0
mov rcx, rbx
call fcn.140001340
mov rax, qword [rsp + 0xd0]
lea rdi, [rbx + 0x10]
add rax, rax
mov dword [rsp + 0x44], esi
mov qword [rdi], rax
cmp byte [r13 + 0x23], 0
jne 0x140049bd9
mov r13, qword [r13 + 0x10]
cmp byte [r13 + 0x23], 2
jne 0x140049bfb
cmp qword [0x140106ff8], 0
je 0x140049bfb
lea rcx, [0x140106fe0]
call fcn.140004f50
mov r15d, eax
jmp 0x140049c06
and byte [r13 + 0x21], 0x86
mov r15d, 1
mov r13, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsp + 0x44]
mov ecx, 0xffffffff
mov r14, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xc0]
cmp eax, ecx
je 0x140049c56
mov rcx, qword [0x140101ed0]
mov edx, eax
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400012a0
test rsi, rsi
je 0x140049c63
mov rcx, rsi
call fcn.1400acc80
mov eax, r15d
mov qword [0x1401020f8], r13
add rsp, 0xa0
pop r15
pop r13
pop rsi
ret