Function at 0x1804a5d2
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1804a5ec
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea ecx, [esi + 0x4c]
call fcn.18006eee
or dword [esi + 0x6c], 0xffffffff
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov ebx, dword [esi + 0xa8]
mov edi, dword [esi + 0xa4]
cmp edi, ebx
je 0x1804a636
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.18004715
add edi, 0x28
cmp edi, ebx
jne 0x1804a61f
mov edi, dword [esi + 0xa4]
xor ebx, ebx
mov dword [esi + 0xa8], edi
mov dword [esp + 0xc], ebx
call fcn.180040b1
push eax
lea ecx, [esp + 0x14]
call fcn.1800717c
push dword [esi + 0x1c]
lea eax, [esi + 0xa0]
mov dword [esp + 0x20], ebx
push str.Url_s_r_n
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.1800f306
mov eax, dword [esi + 0x40]
add esp, 0xc
mov edi, ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov ecx, ebx
mov dword [esi + 0x78], ebx
cmp ecx, dword [esi + 0x38]
jg 0x1804a7e0
cmp eax, 0x186a0
jg 0x1804a7e0
mov ecx, dword [esi + 0x80]
call fcn.1800ed8f
test al, al
jne 0x1804a7e5
mov ecx, esi
call fcn.1804b09c
mov edi, eax
test edi, edi
js 0x1804a821
lea edi, [esi + 0xc]
mov ecx, esi
push edi
call fcn.1804afb0
movzx ecx, byte [0x181d7aa2]
neg ecx
sbb ecx, ecx
and ecx, 0x181d6c50
je 0x1804a722
push 7
pop eax
push 2
pop edx
push edx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.18005e59
mov edx, edi
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
call fcn.18042f8b
push dword [eax]
lea eax, [esp + 0x2c]
push str._detected_configurations___r_n_s_
push eax
call fcn.18004253
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.18004715
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1804a83f
mov edi, eax
mov eax, dword [esp + 0xc]
push 0x64
cdq
pop ecx
idiv ecx
imul eax, eax, 0x64
test edi, edi
jns 0x1804a7e0
cmp edi, 0x80040810
je 0x1804a7e0
cmp eax, 0x190
je 0x1804a7e0
cmp dword [esi + 0x6c], ebx
jg 0x1804a7e0
cmp eax, 0x1f4
jne 0x1804a77b
mov eax, 0x4e20
cmp dword [esi + 0x74], eax
jge 0x1804a77b
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x74]
cmp ecx, 0x3fffffff
jle 0x1804a794
mov dword [esi + 0x74], 0x186a0
mov eax, 0x186a0
jmp 0x1804a7d5
add ecx, ecx
cmp dword [esi + 0x44], 0
mov dword [esi + 0x74], ecx
mov eax, ecx
jle 0x1804a7d5
cmp ecx, dword [esi + 0x44]
jl 0x1804a7d5
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov ebx, dword [esi + 0x44]
test al, al
mov eax, ebx
je 0x1804a7c4
mov eax, dword [esp + 0x14]
xor edx, edx
lea ecx, [ebx + ebx]
div ecx
sub edx, ebx
add dword [esi + 0x74], edx
xor ebx, ebx
mov eax, dword [esi + 0x74]
inc dword [esi + 0x70]
mov ecx, dword [esi + 0x70]
jmp 0x1804a684
cmp dword [esi + 0x7c], ebx
je 0x1804a7ec
mov edi, 0x80040810
jmp 0x1804a821
cmp dword [esi + 0x74], 0x186a0
jle 0x1804a7fc
mov edi, 0x80040892
jmp 0x1804a821
mov eax, dword [esp + 0xc]
lea ecx, [esi + 0x4c]
mov dword [esi + 0x48], eax
lea eax, [esp + 0x10]
push eax
call fcn.18006dec
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1804a821
lea eax, [esp + 0x1c]
push eax
call fcn.18043ddb
lea ecx, [esp + 0x1c]
call fcn.1800b4aa
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.18004715
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret