Function at 0x1400165e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r13
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r13b, r13b
mov byte [rsp + 0x30], dl
test byte [rcx + 0xf3], 1
mov r14, rcx
jne 0x14001661a
xor eax, eax
jmp 0x14001696f
mov qword [rsp + 0x138], rbx
mov qword [rsp + 0x140], rsi
xor esi, esi
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x108], r12
mov qword [rsp + 0x100], r15
movzx r8d, byte [0x1400f757c]
xor edx, edx
mov rcx, qword [0x1400f8a70]
add r8, 0x38
movzx r12d, byte [r14 + 0x510]
movzx ebx, word [r14 + 0x102]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
lea r15, [rax + 0x38]
test rax, rax
je 0x14001671a
mov qword [rax + 0x20], r14
xorps xmm0, xmm0
movups xmmword [rax + 0x28], xmm0
movzx ecx, byte [0x1400f757c]
mov rsi, r15
mov byte [rax + 0x29], cl
lea rax, [r14 + 0xfc]
test rax, rax
je 0x1400166b8
movzx r8d, byte [0x1400f757b]
mov rdx, rax
mov rcx, r15
call fcn.140081340
jmp 0x1400166d1
movzx r8d, byte [0x1400f757b]
mov r9d, 2
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
movzx eax, byte [0x1400f757b]
add rsi, rax
mov word [rsi], bx
add rsi, 2
test r12b, r12b
je 0x1400166fc
lea rdx, [r14 + 0x512]
mov r8, r12
mov rcx, rsi
call fcn.140081340
add rsi, r12
mov r8d, 7
mov r9d, 2
sub r8d, r12d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor esi, esi
jmp 0x140016723
test rdi, rdi
je 0x1400168cd
mov rcx, qword [r14 + 0x158]
mov rdx, rdi
call fcn.140006940
test al, al
jne 0x140016826
mov rcx, qword [0x1400f8a70]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc r13b
cmp r13b, 8
ja 0x1400167e5
test byte [0x1400f8b3c], 1
je 0x140016644
lea r9, str.CID_collision__trying_again
mov edx, 0x80
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
call fcn.1400015d0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x58], 8
inc rax
cmp byte [rcx + rax], 0
jne 0x1400167a7
inc eax
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x70]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, [0x1400d0190]
call fcn.140001460
jmp 0x140016644
test byte [0x1400f8b3b], 4
je 0x14001692a
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x50], rax
lea rdx, [0x1400cffc0]
lea rax, str.Too_many_CID_collisions
mov qword [rsp + 0x58], 8
mov qword [rsp + 0x68], reloc.OLEAUT32.dll_SafeArrayGetElement
jmp 0x140016910
test byte [0x1400f8b3a], 0x80
je 0x14001684f
movzx eax, byte [rdi + 0x29]
lea rdx, [0x1400d06a8]
mov r9, qword [rdi + 0x30]
mov r8, r14
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], al
call fcn.140013a30
mov rax, qword [r14 + 0x120]
mov qword [rdi + 0x30], rax
inc qword [r14 + 0x120]
cmp qword [rdi + 0x30], 0
jbe 0x14001687d
or byte [rdi + 0x28], 2
lea rcx, [r14 + 0xd58]
mov edx, 0x100
call fcn.140042460
add r14, 0x4f0
cmp byte [rsp + 0x30], 0
je 0x1400168a4
or byte [rdi + 0x28], 1
lea rcx, [rdi + 0x18]
mov rax, qword [r14]
mov qword [rcx], rax
mov rax, rdi
mov qword [r14], rcx
jmp 0x140016947
mov rcx, qword [r14]
test rcx, rcx
je 0x1400168be
nop dword [rax]
mov rax, qword [rcx]
mov r14, rcx
mov rcx, rax
test rax, rax
jne 0x1400168b0
lea rax, [rdi + 0x18]
mov qword [r14], rax
mov qword [rax], rsi
mov rax, rdi
jmp 0x140016947
test byte [0x1400f8b38], 2
je 0x14001692a
movzx eax, byte [0x1400f757c]
lea rdx, [0x1400d0050]
add rax, 0x38
mov qword [rsp + 0x58], SafeArrayLock
mov qword [rsp + 0x38], rax
lea rax, str.new_Src_CID
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], 8
mov qword [rsp + 0x60], rax
mov r9d, 3
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140001460
xor r9d, r9d
mov word [rsp + 0x20], si
mov r8, 0xffffffff80410003
mov rcx, r14
lea edx, [r9 + 0x12]
call fcn.140017410
xor eax, eax
mov r12, qword [rsp + 0x108]
mov rdi, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x140]
mov rbx, qword [rsp + 0x138]
mov r15, qword [rsp + 0x100]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x110
pop r14
pop r13
pop rbp
ret