Function at 0x4e88f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], ecx
mov eax, dword [ecx + 8]
test eax, eax
je 0x4e8b14
cmp eax, 0x7fff0000
ja 0x4e8b14
add eax, 0xffff
and eax, 0xffff0000
mov dword [ebp - 0x50], eax
mov eax, dword [ecx]
test eax, eax
je 0x4e896c
sub esp, 8
mov ebx, 4
cmp dword [eax + 0x14], 0x10
mov edx, esp
jb 0x4e8955
mov ecx, dword [eax]
jmp 0x4e8957
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x44]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004f53b0
add esp, 8
jmp 0x4e897e
push 0x6aa980
lea ecx, [ebp - 0x24]
mov ebx, 8
call fcn.00416b10
lea edi, [esi + 4]
push eax
mov ecx, edi
mov dword [ebp - 0x54], edi
call fcn.00410c90
test bl, 8
je 0x4e899c
lea ecx, [ebp - 0x24]
and ebx, 0xfffffff7
call fcn.004163e0
test bl, 4
je 0x4e89ac
lea ecx, [ebp - 0x44]
and ebx, 0xfffffffb
call fcn.004163e0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
cmp byte [eax + 0xd], 0
je 0x4e8aba
cmp dword [esi + 0x14], 0
jne 0x4e8ac4
lea eax, [ebp - 0x84]
push 2
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x70]
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x4e8b14
push 1
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4e8b14
push 0
lea eax, [ebp - 0x70]
push eax
push 1
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4e8b14
lea eax, [ebp - 0x2c]
mov edi, 0x20
mov dword [ebp - 0x48], eax
or ecx, 0xffffffff
mov esi, edi
cmp edi, ecx
mov dword [ebp - 0x68], ecx
cmova esi, ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x4e8a5c
cmp byte [0x6f5d2c], al
jne 0x4e8b3e
int3
test bl, 0x10
je 0x4e8a6f
lea ecx, [ebp - 0x134]
and ebx, 0xffffffef
call fcn.004ef6d0
mov eax, dword [ebp - 0x48]
add eax, esi
mov dword [ebp - 0x48], eax
sub edi, esi
jne 0x4e8a36
push dword [ebp - 0x10]
lea eax, [ebp - 0x44]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str.CrSharedMem__016llx_016llx_016llx_016llx
push eax
call fcn.004efd40
mov edi, dword [ebp - 0x54]
add esp, 0x28
mov ecx, edi
push eax
call fcn.00410c90
lea ecx, [ebp - 0x44]
call fcn.004163e0
mov esi, dword [ebp - 0x58]
cmp dword [esi + 0x14], 0
jne 0x4e8ac4
xor edi, edi
jmp 0x4e8acc
cmp dword [edi + 0x14], 8
jb 0x4e8acc
mov edi, dword [edi]
push edi
push dword [ebp - 0x50]
lea eax, [ebp - 0x64]
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4e8b14
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx + 8]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e8b29
mov dword [esi + 0x2c], 0
mov byte [esi], 1
cmp byte [ebx + 4], 0
jne 0x4e8b29
mov ecx, esi
call fcn.004e8d00
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret 4
push 1
call fcn.005f375c
int3