Function at 0x499200
Capabilities:
Generate random numbers via rtlgenrandom
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
lea esi, [ebp + 0xc]
push 0x1a0
call fcn.005283f4
add esp, 4
mov edi, eax
mov ecx, eax
push esi
call fcn.004ca280
push 0x1f0
call fcn.005283f4
add esp, 4
mov esi, eax
mov dword [esp + 0x10], esp
movzx eax, byte [ebp + 0x10]
mov byte [esp + 0x3c], al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x14], 0
movzx edx, byte [ebp + 0x18]
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
mov ebx, dword [ebp + 0x1c]
mov dword [esi], 0x57b060
mov dword [esi + 4], 0x57b0e0
mov dword [esi + 8], 0x57b100
mov dword [esi + 0xc], 0x57b108
mov eax, dword [edi + 8]
mov dword [esi + 0x10], eax
test eax, eax
je 0x4992bb
mov dword [esp + 0xc], ebx
mov ebx, edx
mov edx, ecx
mov ecx, 1
lock xadd dword [eax], ecx
cmp ecx, 0x7fffffff
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0xc]
je 0x49983b
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 2
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x38]
mov dword [esi + 0x24], eax
movzx eax, byte [esp + 0x3c]
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], dl
mov ecx, dword [esp]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x34], ebx
xorps xmm0, xmm0
test al, al
je 0x49937c
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x30]
push 8
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x49983e
mov eax, 0x1fffff
and eax, dword [esp + 0x34]
movd xmm0, dword [esp + 0x30]
movd xmm1, eax
punpckldq xmm0, xmm1
movq qword [esp + 0x28], xmm0
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
sub esp, 0xc
movsd qword [esp], xmm0
mov dword [esp + 8], 0xffffffcb
call fcn.005410bb
add esp, 0xc
fstp qword [esp + 0x18]
movsd xmm0, qword [0x587638]
xor eax, eax
ucomisd xmm0, qword [esp + 0x18]
seta al
movsd xmm0, qword [eax*8 + 0x587640]
movsd qword [esp], xmm0
call fcn.00457a60
movsd xmm0, qword [esp]
test al, al
jne 0x499392
xorps xmm0, xmm0
movsd qword [esi + 0x40], xmm0
movzx eax, byte [esi + 0x30]
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4993be
mov eax, 1
lock xadd dword [ecx], eax
cmp eax, 0x7fffffff
je 0x499841
mov eax, dword [esi + 0x10]
jmp 0x4993c0
xor eax, eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov ebx, dword [esi + 0x2c]
xorps xmm0, xmm0
movups xmmword [esi + 0x58], xmm0
movups xmmword [esi + 0x68], xmm0
movups xmmword [esi + 0x78], xmm0
movups xmmword [esi + 0x88], xmm0
movups xmmword [esi + 0x98], xmm0
movups xmmword [esi + 0xa8], xmm0
mov byte [esi + 0xb8], 0
test eax, eax
je 0x499418
mov ecx, 1
lock xadd dword [eax], ecx
cmp ecx, 0x7fffffff
je 0x499844
lea edx, [esi + 0x24]
lea edi, [esi + 0xd8]
mov ecx, edi
push edx
push eax
call fcn.004bea60
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
lea eax, [esi + 0x12c]
mov dword [esi + 0x12c], eax
mov dword [esi + 0x130], eax
lea eax, [esi + 0x148]
xorps xmm0, xmm0
movups xmmword [esi + 0x134], xmm0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x4994b5
push ebx
call fcn.0042f0b8
add esp, 4
jmp 0x4994c1
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], 0
push 0x20
call fcn.005283f4
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4994f9
mov ecx, 1
lock xadd dword [eax], ecx
cmp ecx, 0x7fffffff
je 0x499847
xorps xmm0, xmm0
movups xmmword [ebx + 8], xmm0
mov dword [ebx + 0x18], eax
mov dword [ebx], 0x57b530
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x49952a
push esi
call fcn.0042f0b8
add esp, 4
jmp 0x499536
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov dword [ebx + 0x1c], esi
mov dword [esi + 0x160], ebx
push 0x1c
call fcn.005283f4
add esp, 4
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x499565
mov edx, 1
lock xadd dword [ecx], edx
cmp edx, 0x7fffffff
je 0x49984a
xorps xmm0, xmm0
movups xmmword [eax + 8], xmm0
mov dword [eax + 0x18], ecx
mov dword [eax], 0x57b540
mov dword [esi + 0x164], eax
mov byte [esi + 0x168], 0
mov dword [esi + 0x174], 0
mov dword [esi + 0x170], 0
lea eax, [esi + 0x17c]
mov dword [esi + 0x17c], 0
mov dword [esi + 0x180], 0
mov dword [esi + 0x178], eax
lea eax, [esi + 0x188]
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], 0
mov dword [esi + 0x184], eax
lea eax, [esi + 0x194]
mov dword [esi + 0x194], 0
mov dword [esi + 0x198], 0
mov dword [esi + 0x190], eax
mov word [esi + 0x19c], 0
lea eax, [esi + 0x1c8]
movups xmmword [esi + 0x1a0], xmm0
movups xmmword [esi + 0x1b0], xmm0
mov dword [esi + 0x1c4], 0
mov dword [esi + 0x1c0], 0
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1cc], eax
mov dword [esi + 0x1d0], 0
mov dword [esi + 0x1d4], 0
mov dword [esi + 0x1d8], 0
cmp byte [esi + 0x28], 0
je 0x4996e1
mov dword [esp], edi
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x30]
push 8
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x49984d
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
push 8
lea eax, [esp + 0x34]
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x499850
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp byte [esi + 0xb8], 0
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xcc], ecx
mov dword [esi + 0xc8], eax
mov edi, dword [esp]
jne 0x4996e1
mov byte [esi + 0xb8], 1
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x1e0], eax
push 8
call fcn.005283f4
add esp, 4
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [esi + 0x1e4], eax
test eax, eax
je 0x49971d
mov ecx, 1
lock xadd dword [eax], ecx
cmp ecx, 0x7fffffff
je 0x499853
lea eax, [esi + 4]
mov dword [esp], eax
mov ebx, esi
add ebx, 8
mov dword [esi + 0x1e8], esi
test byte [0x5994f4], 0x19
jne 0x4997f0
mov ecx, edi
push ebx
call fcn.004bf010
mov eax, dword [esi + 0x1e0]
mov ecx, dword [0x599b40]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
add esp, 4
mov eax, dword [esp + 0x34]
mov ecx, 0x1c9c380
add ecx, dword [esp + 0x30]
adc eax, 0
seto dl
mov edi, eax
sar edi, 0x1f
test dl, dl
cmovne ecx, edi
add edi, 0x80000000
test dl, dl
cmove edi, eax
mov dword [esi + 0x170], ecx
mov dword [esi + 0x174], edi
mov edi, dword [esi + 0x20]
mov eax, dword [edi]
mov ebx, dword [eax + 0x14]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [esp]
call ebx
mov esp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [eax], esi
lea esi, [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4997d9
push eax
call fcn.0042f1aa
add esp, 4
mov esi, dword [esi]
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x599b1c]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x800
push 0
lea ecx, [esp + 0x38]
push ecx
push eax
push 0
push 0
push 0
push esi
push 0
push str.SequenceManager
push 0x5994f4
push 0x4e
call fcn.004531e0
add esp, 0x30
jmp 0x49973b
int3
int3
int3
int3
int3
int3
int3
int3
int3