Function at 0x140034940
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x170], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov dword [r11 + 0x20], r12d
lea rax, [0x1400b8558]
mov qword [rsp + 0x70], rax
lea rax, [0x1400b9288]
mov qword [r11 - 0x138], rax
mov dword [r11 + 0x20], 2
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [r11 - 0xb0], rax
mov qword [rsp + 0x78], r12
lea rcx, [r11 - 0xb0]
call fcn.1400081c0
lea r11, [rsp + 0x88]
mov qword [rsp + 0x150], r11
mov qword [rsp + 0x158], r12
mov dl, 0x20
lea rcx, [rsp + 0x108]
call fcn.140008380
mov byte [rsp + 0x160], al
cmp qword [rsp + 0x150], r12
jne 0x140034a09
mov edx, dword [rsp + 0x118]
or edx, 4
xor r8d, r8d
lea rcx, [rsp + 0x108]
call fcn.1400032f0
mov qword [rsp + 0x110], r12
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x80], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rax
lea rcx, [rsp + 0x88]
call fcn.140005900
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xf8], r12
mov dword [rsp + 0x100], r12d
mov ecx, 0x118
call fcn.1400830d8
test rax, rax
je 0x140034aa3
mov rdx, qword [r15 + 0x10]
mov rcx, rax
call fcn.140005670
mov rdi, rax
jmp 0x140034aa6
mov rdi, r12
mov ecx, 8
call fcn.1400830d8
test rax, rax
je 0x140034abf
lea rcx, [rsp + 0x20]
mov qword [rax], rcx
jmp 0x140034ac2
mov rax, r12
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea r13, [rdi + 0x108]
mov word [rdi + 0x108], r12w
mov rcx, qword [rdi]
cmp qword [rcx], 0
jne 0x140034afa
mov qword [rdi + 0x110], r12
jmp 0x140034d1b
mov rcx, qword [rcx]
mov r8, rcx
test rcx, rcx
je 0x140034b2c
mov r8, rcx
cmp qword [rcx + 0x18], 0
je 0x140034b23
movsx rax, word [rdi + 0x108]
mov qword [rdi + rax*8 + 8], rcx
inc word [rdi + 0x108]
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140034b05
mov qword [rdi + 0x110], r8
mov r8, qword [r8 + 8]
mov qword [rsp + 0x1d0], r8
nop
mov rsi, qword [rsp + 0x38]
test rsi, rsi
jne 0x140034b4f
mov rdx, r12
jmp 0x140034b5b
mov rdx, qword [rsp + 0x48]
sub rdx, rsi
sar rdx, 3
mov rcx, qword [rsp + 0x40]
mov rax, rcx
sub rax, rsi
sar rax, 3
cmp rax, rdx
jae 0x140034b80
mov qword [rcx], r8
lea rax, [rcx + 8]
mov qword [rsp + 0x40], rax
jmp 0x140034c5b
mov rbp, rcx
cmp rsi, rcx
jbe 0x140034b97
call fcn.1400830b8
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x20]
mov r12, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rbp
mov rax, rcx
sub rax, rsi
test rax, 0xfffffffffffffff8
jne 0x140034bbb
xor ebp, ebp
jmp 0x140034be0
cmp rsi, rcx
jbe 0x140034bca
call fcn.1400830b8
mov rdx, qword [rsp + 0x20]
test r12, r12
je 0x140034bd4
cmp r12, rdx
je 0x140034bd9
call fcn.1400830b8
sub rbp, rsi
sar rbp, 3
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x1d0]
mov r8d, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140015d00
mov r12, qword [rsp + 0x38]
cmp r12, qword [rsp + 0x40]
jbe 0x140034c19
call fcn.1400830b8
mov rsi, qword [rsp + 0x20]
test rsi, rsi
jne 0x140034c2d
call fcn.1400830b8
xor r11d, r11d
jmp 0x140034c30
mov r11, qword [rsi]
lea rcx, [r12 + rbp*8]
cmp rcx, qword [r11 + 0x20]
ja 0x140034c53
test rsi, rsi
je 0x140034c47
mov rax, qword [rsi]
xor r12d, r12d
jmp 0x140034c4d
xor r12d, r12d
mov rax, r12
cmp rcx, qword [rax + 0x18]
jae 0x140034c5b
call fcn.1400830b8
xor r12d, r12d
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x140034d1b
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140034c9d
lea r13, [rdi + 0x108]
nop dword [rax + rax]
movsx rax, word [rdi + 0x108]
mov qword [rdi + rax*8 + 8], rcx
inc word [rdi + 0x108]
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140034c80
movzx ecx, word [r13]
test cx, cx
jle 0x140034d14
dec cx
mov word [r13], cx
movsx rax, cx
mov r8, qword [rdi + rax*8 + 8]
mov rax, qword [r8 + 0x20]
cmp qword [rdi + 0x110], rax
jne 0x140034cf3
test cx, cx
jle 0x140034d0b
dec cx
mov word [r13], cx
movsx rax, cx
mov rcx, qword [rdi + rax*8 + 8]
mov qword [rdi + 0x110], rcx
mov r8, qword [rcx + 8]
mov qword [rsp + 0x1d0], r8
jmp 0x140034b40
mov qword [rdi + 0x110], r8
mov r8, qword [r8 + 8]
mov qword [rsp + 0x1d0], r8
jmp 0x140034b40
mov qword [rdi + 0x110], r12
jmp 0x140034d1b
mov qword [rdi + 0x110], r12
mov rbx, qword [rsp + 0x40]
sub rbx, qword [rsp + 0x38]
sar rbx, 3
test rbx, rbx
je 0x140034f0d
mov rcx, qword [r15 + 8]
lea r8, [rsp + 0x1d0]
mov edx, 4
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx r11d, byte [rsp + 0x1d2]
shl r11, 8
movzx eax, byte [rsp + 0x1d1]
shl rax, 0x10
add r11d, eax
movzx eax, byte [rsp + 0x1d0]
shl rax, 0x18
add r11d, eax
movzx eax, byte [rsp + 0x1d3]
add eax, r11d
xor edx, edx
div ebx
movsxd rbp, edx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
mov rsi, qword [rsp + 0x38]
sub rax, rsi
sar rax, 3
cmp rax, rbp
jbe 0x140034f07
cmp rsi, rcx
jbe 0x140034db0
call fcn.1400830b8
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
test rbx, rbx
jne 0x140034dd9
call fcn.1400830b8
mov r11, r12
jmp 0x140034ddc
mov r11, qword [rbx]
lea rsi, [rsi + rbp*8]
cmp rsi, qword [r11 + 0x20]
ja 0x140034df9
test rbx, rbx
je 0x140034df0
mov rax, qword [rbx]
jmp 0x140034df3
mov rax, r12
cmp rsi, qword [rax + 0x18]
jae 0x140034dfe
call fcn.1400830b8
mov r11, qword [rsp + 0x60]
test r11, r11
jne 0x140034e12
call fcn.1400830b8
mov r11, r12
jmp 0x140034e15
mov r11, qword [r11]
cmp rsi, qword [r11 + 0x20]
jb 0x140034e20
call fcn.1400830b8
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x98], 0xfffff9ff
or dword [rsp + rcx + 0x98], 0x800
mov rdx, qword [rsi]
lea rcx, [rsp + 0x80]
call fcn.140034760
mov rcx, rax
lea rdx, [0x1400b9478]
call fcn.140003690
mov rbx, qword [rsp + 0x38]
cmp rbx, qword [rsp + 0x40]
jbe 0x140034e72
call fcn.1400830b8
mov rsi, qword [rsp + 0x20]
test rsi, rsi
jne 0x140034e86
call fcn.1400830b8
mov r11, r12
jmp 0x140034e89
mov r11, qword [rsi]
lea rbx, [rbx + rbp*8]
cmp rbx, qword [r11 + 0x20]
ja 0x140034ea6
test rsi, rsi
je 0x140034e9d
mov rax, qword [rsi]
jmp 0x140034ea0
mov rax, r12
cmp rbx, qword [rax + 0x18]
jae 0x140034eab
call fcn.1400830b8
lea r8, [rbx + 8]
mov rdx, qword [rsp + 0x40]
sub rdx, r8
sar rdx, 3
test rdx, rdx
jle 0x140034ecf
shl rdx, 3
mov r9, rdx
mov rcx, rbx
call fcn.140082e9c
mov rax, qword [rsp + 0x40]
sub rax, 8
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x38], rbx
ja 0x140034ee9
cmp rbx, rax
jbe 0x140034eee
call fcn.1400830b8
mov rbx, qword [rsp + 0x40]
sub rbx, qword [rsp + 0x38]
sar rbx, 3
test rbx, rbx
jne 0x140034d32
jmp 0x140034f0d
call fcn.140014700
int3
mov rcx, rdi
call fcn.140082dfc
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.1400155b0
mov dword [rsp + 0x1d8], 3
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140034f3c
call fcn.140082dfc
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x20]
call fcn.140082dfc
nop
lea rcx, [rsp + 0x108]
call fcn.1400121e0
lea r11, vtable.std::ios_base.0
mov qword [rsp + 0x108], r11
lea rcx, [rsp + 0x108]
call fcn.140082210
mov rax, r14
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret