Function at 0x1400bf950
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
test rdx, rdx
je 0x1400bfbbc
mov rax, rsp
push rbp
push r12
push r13
push r14
sub rsp, 0x178
mov qword [rax + 8], rbx
xor r13d, r13d
mov qword [rax + 0x20], rdi
mov rbp, rdx
mov qword [rax - 0x28], r15
mov r12, rcx
mov qword [rax + 0x18], rsi
mov r14d, r13d
mov dword [rsp + 0x1a8], r13d
mov eax, 0xffffffff
mov r15d, ebp
cmp rbp, rax
mov rcx, r12
cmova r15d, eax
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1400bfb6b
mov r9d, 0x7d
mov dword [rsp + 0x20], 4
lea r8, str..._.._.._third_party_mini_chromium_mini_chromium_base_rand_util.cc
or r14d, 1
lea rdx, str.void___cdecl_base::RandBytes_void__unsigned___int64_
lea rcx, [rsp + 0x70]
call fcn.140028380
mov rdi, rax
mov esi, r13d
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov rbx, qword [rdx + rax + 0x28]
cmp rbx, 0x16
jl 0x1400bf9f8
add rbx, 0xffffffffffffffeb
jmp 0x1400bf9fb
mov rbx, r13
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140009fd0
cmp byte [rsp + 0x38], sil
jne 0x1400bfa19
mov esi, 4
jmp 0x1400bfb2b
mov rdx, qword [rdi]
movsxd rax, dword [rdx + 4]
mov ecx, dword [rax + rdi + 0x18]
and ecx, 0x1c0
cmp ecx, 0x40
je 0x1400bfa9c
test rbx, rbx
jle 0x1400bfa9c
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
movzx r8d, byte [rcx + rdi + 0x58]
mov rcx, qword [rcx + rdi + 0x48]
mov rax, qword [rcx + 0x40]
cmp qword [rax], rsi
je 0x1400bfa7f
mov rdx, qword [rcx + 0x58]
mov eax, dword [rdx]
test eax, eax
jle 0x1400bfa7f
dec eax
mov dword [rdx], eax
mov rcx, qword [rcx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, r8d
mov byte [rdx], r8b
jmp 0x1400bfa88
mov rax, qword [rcx]
mov edx, r8d
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400bfb1a
dec rbx
test rbx, rbx
jg 0x1400bfa40
mov rdx, qword [rdi]
movsxd rax, dword [rdx + 4]
mov r8d, 0x15
lea rdx, str.Check_failed:_success
mov rcx, qword [rax + rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x48]
cmp rax, 0x15
jne 0x1400bfb1a
test rbx, rbx
jle 0x1400bfb1f
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
movzx r8d, byte [rcx + rdi + 0x58]
mov rcx, qword [rcx + rdi + 0x48]
mov rax, qword [rcx + 0x40]
cmp qword [rax], rsi
je 0x1400bfb02
mov rdx, qword [rcx + 0x58]
mov eax, dword [rdx]
test eax, eax
jle 0x1400bfb02
dec eax
mov dword [rdx], eax
mov rcx, qword [rcx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, r8d
mov byte [rdx], r8b
jmp 0x1400bfb0b
mov rax, qword [rcx]
mov edx, r8d
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400bfb1a
dec rbx
test rbx, rbx
jg 0x1400bfac3
jmp 0x1400bfb1f
mov esi, 4
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
mov qword [rcx + rdi + 0x28], r13
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
mov eax, 4
add rcx, rdi
cmp qword [rcx + 0x48], r13
cmovne eax, r13d
or eax, esi
or eax, dword [rcx + 0x10]
and eax, 0x17
mov dword [rcx + 0x10], eax
and eax, dword [rcx + 0x14]
jne 0x1400bfbbd
lea rcx, [rsp + 0x30]
call fcn.14000a580
lea rdx, [0x1400ca83c]
mov rcx, rdi
call fcn.140007ed0
test r14b, 1
je 0x1400bfb7f
and r14d, 0xfffffffe
lea rcx, [rsp + 0x70]
call fcn.140028580
mov eax, r15d
add r12, rax
sub rbp, rax
jne 0x1400bf98e
mov rsi, qword [rsp + 0x1b0]
mov rdi, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1a0]
mov r15, qword [rsp + 0x170]
add rsp, 0x178
pop r14
pop r13
pop r12
pop rbp
ret
test al, 4
je 0x1400bfbca
lea rbx, str.ios_base::badbit_set
jmp 0x1400bfbde
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1400103c0
mov r8, rax
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.140009f00
mov rcx, rax
call fcn.140007380
int3