Function at 0x18054d83
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x18054d9a
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea ecx, [esi + 0x4c]
call fcn.18007010
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 + 0xe0]
mov edi, dword [esi + 0xdc]
cmp edi, ebx
je 0x18054de1
mov ecx, edi
call fcn.1803400d
add edi, 0x30
cmp edi, ebx
jne 0x18054dcd
mov edi, dword [esi + 0xdc]
xor ebx, ebx
mov dword [esi + 0xe0], edi
mov dword [ebp - 4], ebx
call fcn.18006a78
push eax
lea ecx, [ebp - 8]
call fcn.18007187
push dword [esi + 0x1c]
lea eax, [esi + 0xa0]
mov dword [ebp - 0x1c], ebx
push str.Url_s_r_n
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.18012ade
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 0x18054f78
cmp eax, 0x186a0
jg 0x18054f78
mov ecx, dword [esi + 0x80]
call fcn.18011fc7
test al, al
jne 0x18054f7d
mov ecx, esi
call fcn.18055868
mov edi, eax
test edi, edi
js 0x18054fb6
lea edi, [esi + 0xc]
mov ecx, esi
push edi
call fcn.1805577c
movzx ecx, byte [0x1827e6e4]
neg ecx
sbb ecx, ecx
and ecx, 0x1827e000
je 0x18054ec1
push 7
pop eax
push 2
pop edx
push edx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.18008c56
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x10]
call fcn.1804b473
push dword [eax]
lea eax, [ebp - 0x2c]
push str._detected_configurations___r_n_s_
push eax
call fcn.18006ca0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.18006a60
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.18054fd0
mov edi, eax
mov eax, dword [ebp - 4]
push 0x64
cdq
pop ecx
idiv ecx
imul eax, eax, 0x64
test edi, edi
jns 0x18054f78
cmp edi, 0x80040810
je 0x18054f78
cmp eax, 0x190
je 0x18054f78
cmp dword [esi + 0x6c], ebx
jg 0x18054f78
cmp eax, 0x1f4
jne 0x18054f16
mov eax, 0x4e20
cmp dword [esi + 0x74], eax
jge 0x18054f16
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x74]
cmp ecx, 0x3fffffff
jle 0x18054f2f
mov dword [esi + 0x74], 0x186a0
mov eax, 0x186a0
jmp 0x18054f6d
add ecx, ecx
cmp dword [esi + 0x44], 0
mov dword [esi + 0x74], ecx
mov eax, ecx
jle 0x18054f6d
cmp ecx, dword [esi + 0x44]
jl 0x18054f6d
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov ebx, dword [esi + 0x44]
test al, al
mov eax, ebx
je 0x18054f5c
mov eax, dword [ebp - 0xc]
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 0x18054e2a
cmp dword [esi + 0x7c], ebx
je 0x18054f84
mov edi, 0x80040810
jmp 0x18054fb6
cmp dword [esi + 0x74], 0x186a0
jle 0x18054f94
mov edi, 0x80040892
jmp 0x18054fb6
mov eax, dword [ebp - 4]
lea ecx, [esi + 0x4c]
mov dword [esi + 0x48], eax
lea eax, [ebp - 8]
push eax
call fcn.18009d7d
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x18054fb6
lea eax, [ebp - 0x1c]
push eax
call fcn.1804c37e
lea ecx, [ebp - 0x1c]
call fcn.1800e398
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006a60
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret