Function at 0x140041e80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
test rdx, rdx
je 0x1400420c7
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rbp, rdx
mov r12, rcx
xor r13d, r13d
mov r14d, r13d
mov dword [rax + 0x10], r13d
mov eax, 0xffffffff
nop dword [rax]
mov r15d, ebp
cmp rbp, rax
cmova r15d, eax
mov edx, r15d
mov rcx, r12
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14004207f
mov dword [rsp + 0x20], 4
mov r9d, 0x7d
lea r8, str.D:p.bornovalovconan_sentry_crashpad0.5.0___buildd140711d95cc16a85766a8fc3a551dfafe84cf63_source_subfolderexternalcrashpad_third_partymini_chromiummini_chromium_base_rand_util.cc
lea rdx, str.void___cdecl_base::RandBytes_void__unsigned___int64_
lea rcx, [rsp + 0x40]
call fcn.1400406b0
mov rdi, rax
or r14d, 1
mov dword [rsp + 0x178], r14d
mov esi, r13d
mov rdx, qword [rax]
movsxd rcx, dword [rdx + 4]
mov rbx, qword [rcx + rax + 0x28]
cmp rbx, 0x16
jl 0x140041f2d
add rbx, 0xffffffffffffffeb
jmp 0x140041f30
mov rbx, r13
mov qword [rsp + 0x30], rdi
mov rcx, qword [rcx + rax + 0x48]
mov r8, rdx
test rcx, rcx
je 0x140041f4e
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rdi]
mov r8, rdx
movsxd rcx, dword [rdx + 4]
cmp dword [rcx + rdi + 0x10], 0
je 0x140041f5d
xor al, al
jmp 0x140041f88
mov rcx, qword [rcx + rdi + 0x50]
test rcx, rcx
je 0x140041f86
cmp rcx, rdi
je 0x140041f86
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
mov rdx, qword [rdi]
movsxd rax, dword [rdx + 4]
cmp dword [rax + rdi + 0x10], 0
sete al
mov r8, rdx
jmp 0x140041f88
mov al, 1
mov byte [rsp + 0x38], al
test al, al
jne 0x140041f9a
mov esi, 4
jmp 0x14004203a
movsxd rax, dword [rdx + 4]
mov ecx, dword [rax + rdi + 0x18]
and ecx, 0x1c0
cmp ecx, 0x40
je 0x140041fd9
test rbx, rbx
jle 0x140041fd9
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
movzx edx, byte [rcx + rdi + 0x58]
mov rcx, qword [rcx + rdi + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
cmp eax, 0xffffffff
je 0x140042026
dec rbx
test rbx, rbx
jg 0x140041fb2
mov r8, qword [rdi]
movsxd rax, dword [r8 + 4]
mov r8d, 0x15
lea rdx, str.Check_failed:_success
mov rcx, qword [rax + rdi + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputn_char_const____ptr64__long_long___int64_____ptr64]
cmp rax, 0x15
jne 0x140042026
test rbx, rbx
jle 0x14004202b
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
movzx edx, byte [rcx + rdi + 0x58]
mov rcx, qword [rcx + rdi + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
cmp eax, 0xffffffff
je 0x140042026
dec rbx
test rbx, rbx
jg 0x140042000
jmp 0x14004202b
mov esi, 4
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
mov qword [rcx + rdi + 0x28], r13
mov rdx, qword [rdi]
movsxd rcx, dword [rdx + 4]
add rcx, rdi
xor r8d, r8d
mov edx, esi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::_Osfx_void____ptr64]
nop
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rdi + 0x48]
test rcx, rcx
je 0x14004206f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rdx, [0x14004d050]
mov rcx, rdi
call fcn.1400012c0
nop
test r14b, 1
je 0x140042093
and r14d, 0xfffffffe
lea rcx, [rsp + 0x40]
call fcn.1400408c0
mov eax, r15d
add r12, rax
sub rbp, rax
mov eax, 0xffffffff
jne 0x140041ec0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret