Function at 0x1002006b
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x1006467e
call fcn.10063468
sub esp, 0x88
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
je 0x100200cb
cmp byte [ebp + 8], 0
je 0x100200a2
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x24]
push dword [eax]
call fcn.10010dda
jmp 0x100206d2
mov dword [edx], 0
cmp dword [edx], 4
jge 0x100206d2
mov esi, dword [ebp + 0x34]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 1
inc dword [edx]
cmp dword [edx], 4
jl 0x100200b4
jmp 0x100206d2
cmp byte [ebp + 0x20], 0
je 0x100201e7
mov dword [ebp - 0x24], 0x3445
cmp dword [ebp - 0x24], 0x36cf
jle 0x10020156
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov edi, ebx
mov dword [ebp + 0xc], ebx
lea eax, [edi + esi]
mov edi, 0x1b58
mov dword [ebp - 0x1c], eax
mov esi, eax
mov eax, esi
lea ecx, [ebp - 0x90]
cdq
push edx
push eax
call fcn.10002a87
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10020118
mov eax, dword [eax]
push eax
call fcn.1004e245
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.10011503
dec esi
dec edi
jne 0x100200fe
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x2c]
inc edi
mov dword [ebp + 0xc], edi
cmp edi, 0x52e7
jl 0x100200f1
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, 0x44b2
jl 0x100200ec
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0x30cf
jge 0x1002016a
push str.wuaihq_mcakaqs_vbtbhwohn_moqevyt_eqz_emauh
call fcn.1004e245
pop ecx
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
mov eax, dword [ebp + 0x2c]
mov edi, dword [eax]
mov ecx, dword [esi]
mov eax, dword [edx]
xor edx, edx
cmp eax, ecx
mov eax, dword [esi]
mov esi, dword [ebp + 0x28]
setge dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x30]
setge cl
xor edx, edx
mov eax, dword [eax]
cmp ecx, eax
mov eax, dword [esi]
setle dl
xor ecx, ecx
inc edx
cmp edx, dword [eax + edi*4]
mov eax, dword [ebx]
mov edi, dword [ebp + 0x10]
setg cl
xor edx, edx
cmp eax, ecx
sete dl
xor ecx, ecx
mov eax, dword [edi]
cmp edx, eax
mov eax, dword [esi]
setne cl
xor edx, edx
cmp ecx, dword [eax + 8]
mov eax, dword [ebp + 0x3c]
setg dl
cmp dword [eax], edx
jge 0x100201d7
mov edx, dword [ebp - 0x30]
xor eax, eax
cmp dword [edx], eax
je 0x100201da
xor eax, eax
inc eax
mov ecx, dword [edi]
imul ecx, eax
mov eax, dword [ebp + 0x18]
jmp 0x100206d0
mov eax, dword [0x1009d4d8]
test al, 1
jne 0x1002020a
or dword [0x1009d4d4], 0xffffffff
or eax, 1
push ecx
push 0x1571
mov dword [0x1009d4d8], eax
call fcn.10021017
mov dword [ebp - 0x38], 3
xor ebx, ebx
mov dword [ebp - 0x3c], 0xfffffffe
mov dword [ebp + 0xc], 0x2751c76d
mov dword [ebp - 0x2c], 0x3cee
cmp dword [ebp - 0x2c], 0x3d27
jle 0x1002027e
mov esi, ebx
mov dword [ebp - 0x30], ebx
mov edi, ebx
mov dword [ebp + 0xc], ebx
mov ecx, edi
mov dword [ebp - 0x24], esi
mov edi, esi
mov esi, ebx
shl edi, cl
mov eax, esi
mov ecx, 0x10080838
or eax, edi
cdq
push edx
push eax
call fcn.10010b40
inc esi
cmp esi, 0x65ef
jl 0x10020246
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x30]
inc edi
mov dword [ebp + 0xc], edi
cmp edi, 0x68d3
jl 0x1002023b
inc esi
mov dword [ebp - 0x30], esi
cmp esi, 0xbda
jl 0x10020236
push 2
pop esi
push esi
lea ecx, [ebp - 0x78]
call fcn.10001ed2
mov dword [ebp - 4], esi
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 0x39aa
jge 0x100202ca
mov edx, str.lzowbsjv_vykt_tllo_rnell_itiwerucw_ydxh_kbdqps
mov ecx, 0x10080838
call fcn.10013913
jmp 0x100202ca
mov dword [ebp - 4], esi
lea eax, [ebp - 0x78]
push ebx
mov dword [ebp - 0x40], ebx
lea ecx, [ebp - 0x48]
mov dword [ebp + 0xc], 0xffffffff
push eax
call fcn.1001dcc8
push 0x771c
lea eax, [ebp - 0x38]
mov edx, 0x6ab0
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.1001efe3
add esp, 0x14
lea eax, [ebp - 0x40]
mov edx, 0x3286
lea ecx, [ebp - 0x78]
push 0xf62
push ebx
push 0x7af0
push 0x64a4
push 0x1d15
push 0x4488
push 0x1f83
push eax
push 0x3c3f
push 0x23ec
call fcn.1001f16e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
add esp, 0x28
call fcn.10001f55
mov dword [ebp + 0xc], 0x1a6e
cmp dword [ebp + 0xc], 0x10ca
jge 0x100204ab
lea eax, [ebp - 0x28]
push eax
push 0x1006ca3c
call fcn.1004df5b
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
test eax, eax
je 0x100204a7
dec eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
push 0x1006ca3c
call fcn.1004df5b
pop ecx
pop ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x6c]
call fcn.10020fa6
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x54]
push dword [ebp - 0x20]
call fcn.10020fa6
mov byte [ebp - 4], 6
cmp dword [ebp - 0x20], 0
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0x3b9aca07
mov dword [ebp + 0xc], ebx
jle 0x100203ff
mov eax, dword [ebp - 0x6c]
sub eax, edi
mov esi, eax
lea eax, [ebp - 0x34]
push eax
push 0x1006ca3c
call fcn.1004df5b
mov eax, dword [ebp - 0x34]
mov dword [esi + edi], eax
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
lea edi, [edi + 4]
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
pop ecx
cmovl eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
inc eax
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 0x20]
jl 0x100203c5
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov ecx, edi
mov eax, edx
mov byte [ebp - 0x44], bl
push dword [ebp - 0x44]
sub eax, edi
sar eax, 2
push eax
call fcn.10021112
cmp dword [ebp - 0x20], 0
mov edx, ebx
pop ecx
pop ecx
mov byte [ebp + 0xf], 1
mov dword [ebp - 0x2c], edx
jle 0x10020452
mov ecx, dword [ebp - 0x6c]
mov esi, edi
sub esi, ecx
mov eax, dword [ecx]
cmp eax, dword [esi + ecx]
je 0x10020441
cdq
idiv dword [ebp - 0x30]
test edx, edx
jne 0x1002044f
mov edx, dword [ebp - 0x2c]
inc edx
add ecx, 4
mov dword [ebp - 0x2c], edx
cmp edx, dword [ebp - 0x20]
jl 0x1002042f
jmp 0x10020452
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0xf], 0
mov ecx, 0x1006f70c
mov eax, 0x1006f708
cmove eax, ecx
push eax
call fcn.1004e466
pop ecx
test edi, edi
je 0x1002047e
push edi
call fcn.1004bef4
pop ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x10020499
push eax
call fcn.1004bef4
pop ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10020376
push 2
pop esi
dec eax
mov dword [ebp - 0x28], eax
cmp byte [0x1008197c], 0
jne 0x10020637
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ecx
push eax
call fcn.10021017
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp + 0xc], 0x5f40e13f
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0xc], ebx
jmp 0x100204e9
mov eax, dword [ebp + 0xc]
mov dword [ebp + eax*4 - 0x60], 0xfffffffe
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 3
jl 0x100204db
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], ebx
jl 0x100205cd
push 1
mov dword [ebp - 0x24], 0x46df37d4
mov ecx, 0xbbd
push 0x3ca5
call fcn.1001dcc8
pop ecx
pop ecx
mov dword [ebp - 0x24], ebx
jmp 0x100205bb
mov dword [ebp - 0x30], 0x5664dc9e
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x30], ebx
jl 0x100205b8
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x18], ebx
jmp 0x1002055c
xor eax, eax
mov edx, 0x28f5
inc eax
mov ecx, 0x312f
push eax
push 0x7076
push eax
push ebx
call fcn.1001f902
add esp, 0x10
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jle 0x1002053c
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x18], ebx
jl 0x100205af
mov dword [ebp - 0x2c], 0x45fe46c2
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x2c], ebx
jl 0x100205a1
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0xf], 0
je 0x1002059c
push 1
push 0x30a6
push ebx
push ebx
mov edx, 0x2604
mov ecx, 0x57f0
call fcn.1001f902
add esp, 0x10
dec dword [ebp - 0x2c]
jns 0x10020578
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x60], ebx
jne 0x100205af
dec dword [ebp - 0x18]
jns 0x10020569
dec dword [ebp - 0x30]
jns 0x10020530
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], esi
jle 0x1002051d
dec dword [ebp - 0x1c]
jns 0x100204fb
mov eax, dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x58]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
mov eax, dword [ebp - 0x58]
setg cl
add eax, ecx
je 0x10020609
cmp dword [ebp - 0x1c], ebx
je 0x10020609
xor eax, eax
inc eax
jmp 0x1002060b
mov eax, ebx
xor ecx, ecx
mov edx, 0x1008197c
test eax, eax
push ebx
setle cl
xor eax, eax
cmp ecx, 0x7ae9f903
mov ecx, 0x572c
push 0x897
setl al
mov dword [ebp + 0xc], eax
call fcn.1001f8e5
pop ecx
pop ecx
mov eax, dword [0x1009c150]
cmp eax, 0x270
jne 0x10020683
mov edx, 0x1009c158
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
add edx, 4
cmp edx, 0x1009cb18
jl 0x10020648
jmp 0x1002068f
cmp eax, 0x4e0
jb 0x10020694
call fcn.10021052
mov eax, dword [0x1009c150]
mov edx, dword [eax*4 + 0x1009c154]
inc eax
mov dword [0x1009c150], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x1009d4d4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, dword [ebp + 0x38]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret