Function at 0x140148d14
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x140388d70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3d0
lea rdi, [rsp + 0x20]
mov ecx, 0xec
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e0]
mov rax, qword [0x1404bf098]
xor rax, rsp
mov qword [rsp + 0x3c8], rax
mov eax, 0x104
mov eax, eax
mov ecx, dword [0x1404d78a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x1404d7774], eax
jle 0x140388e11
lea rcx, [0x1404d7774]
call fcn.14014a59c
cmp dword [0x1404d7774], 0xffffffff
jne 0x140388e11
lea rcx, [0x1404d7768]
call fcn.140145b5a
lea rcx, [0x1403e6490]
call fcn.140145245
nop
lea rcx, [0x1404d7774]
call fcn.14014a9d9
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x3f0]
call fcn.14014b271
movzx eax, al
test eax, eax
jne 0x140388f24
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14014130c
nop
lea rdx, [0x140458618]
lea rcx, [rsp + 0x50]
call fcn.140142153
lea rdx, [0x1404585b0]
mov rcx, rax
call fcn.140142153
lea rdx, [0x1404585ac]
mov rcx, rax
call fcn.140142153
mov edx, 0xcb
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1404585a8]
mov rcx, rax
call fcn.140142153
lea rdx, [0x140458580]
mov rcx, rax
call fcn.140142153
lea rdx, [0x140141659]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x140146e24]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x50]
call fcn.140146d57
mov qword [rsp + 0x3a8], rax
mov rax, qword [rsp + 0x3a8]
mov qword [rsp + 0x3b0], rax
mov rdx, qword [rsp + 0x3b0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14014a3cb
nop
lea rcx, [rsp + 0x148]
call fcn.140142ecd
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140388f1a
call qword [sym.imp.KERNEL32.dll_DebugBreak]
nop
lea rcx, [rsp + 0x50]
call fcn.14014a6dc
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x3f0]
call fcn.14014b271
movzx eax, al
test eax, eax
jne 0x140388f95
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x170]
call fcn.140145cf4
nop
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x300]
call fcn.1401435d5
lea rdx, [0x1404be4f8]
lea rcx, [rsp + 0x300]
call fcn.14014c685
nop
lea rcx, [rsp + 0x170]
call fcn.140142ecd
nop
lea rcx, [0x1404d7768]
call fcn.14014485e
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x3e8]
mov rcx, rax
call fcn.140141cb7
mov dword [rsp + 0x198], eax
cmp dword [rsp + 0x198], 0
jge 0x1403890d0
mov edx, 1
lea rcx, [rsp + 0x1b0]
call fcn.14014130c
nop
lea rdx, [0x1404586e8]
lea rcx, [rsp + 0x1b0]
call fcn.140142153
lea rdx, str.C:UsersSnoopDesktopVCPKG_vcpkg_buildtreescryptopp_srcTOPP_8_9_0_d4af216c8d.cleanosrng.cpp
mov rcx, rax
call fcn.140142153
lea rdx, [0x140458674]
mov rcx, rax
call fcn.140142153
mov edx, 0xd2
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140458670]
mov rcx, rax
call fcn.140142153
lea rdx, str.CryptoPP::NonblockingRng::GenerateBlock
mov rcx, rax
call fcn.140142153
lea rdx, [0x140141659]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x140146e24]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x2a8]
lea rcx, [rsp + 0x1b0]
call fcn.140146d57
mov qword [rsp + 0x3b8], rax
mov rax, qword [rsp + 0x3b8]
mov qword [rsp + 0x3c0], rax
mov rdx, qword [rsp + 0x3c0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14014a3cb
nop
lea rcx, [rsp + 0x2a8]
call fcn.140142ecd
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1403890c3
call qword [sym.imp.KERNEL32.dll_DebugBreak]
nop
lea rcx, [rsp + 0x1b0]
call fcn.14014a6dc
cmp dword [rsp + 0x198], 0
jge 0x14038913b
mov ecx, dword [rsp + 0x198]
call fcn.1401473ab
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.BCryptGenRandom
lea rcx, [rsp + 0x2d0]
call fcn.140145cf4
nop
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x350]
call fcn.1401435d5
lea rdx, [0x1404be4f8]
lea rcx, [rsp + 0x350]
call fcn.14014c685
nop
lea rcx, [rsp + 0x2d0]
call fcn.140142ecd
nop
mov rcx, rsp
lea rdx, [0x140458a70]
call fcn.140149aed
mov rcx, qword [rsp + 0x3c8]
xor rcx, rsp
call fcn.1401461fe
add rsp, 0x3d0
pop rdi
ret