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

Disassembly:
mov eax, 0x10064c95
call fcn.10062d88
sub esp, 0xcc
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x10042865
push 1
lea ecx, [ebp - 0x40]
call fcn.10005c0e
xor ebx, ebx
lea ecx, [ebp - 0xa0]
push 1
mov dword [ebp - 4], ebx
call fcn.10005c0e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x24], 0x6ed55c59
push 2
call fcn.10005c0e
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x28], ebx
jmp 0x100420cb
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x4c], edi
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 3
jl 0x100420c1
push 0x6aa8
lea eax, [ebp - 0x28]
xor cl, cl
push eax
push 0x5a73
lea edx, [ebp - 0x40]
call fcn.10043ea4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10044058
add esp, 0x14
lea eax, [ebp - 0x88]
mov edx, 0x184f
mov cl, 1
push 0x40e5
push eax
lea eax, [ebp - 0x28]
push eax
push 0x5ee0
push ebx
call fcn.10042057
mov ecx, dword [ebp - 0x40]
add esp, 0x14
mov dword [ecx], ebx
mov eax, dword [ecx]
xor edx, edx
mov dword [ebp - 0x18], 0x8112def9
mov dword [ebp - 0x20], 0xddac0faa
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push 0xfffffffffffffffb
mov eax, dword [ebp + eax*4 - 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
pop eax
sub eax, ecx
cmp eax, ecx
mov eax, dword [ebp - 0x20]
setl dl
imul eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, edx
mov eax, dword [ebp - 0xa0]
setge cl
mov dword [eax], ecx
mov ecx, 0xfff6
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x4c]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x4c]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x4c]
mov eax, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x4c]
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x24], eax
jne 0x100421a9
cmp dword [ebp - 0x18], ebx
jne 0x100421a9
mov ecx, ebx
jmp 0x100421ac
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x88]
mov dword [eax + 4], ecx
xor eax, eax
cmp ecx, 0xfffffffc
setle al
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x4c]
cmp eax, 1
setl cl
sub ecx, 0xc7127b1a
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x40]
inc dword [ecx]
cmp dword [ecx], 2
jle 0x10042126
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xa0]
inc ecx
mov edx, dword [eax]
mov eax, dword [ebp - 0x88]
add edx, ecx
xor ecx, ecx
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp edx, eax
sete cl
xor edx, edx
cmp esi, ecx
lea ecx, [ebp - 0x88]
sete dl
sub edx, esi
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x40]
imul edx, dword [eax]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
dec eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x18], eax
call fcn.10005c91
lea ecx, [ebp - 0xa0]
call fcn.10005c91
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.10005c91
mov eax, dword [0x10082f98]
test al, 1
jne 0x10042278
push ecx
or eax, 1
mov dword [0x10082f94], edi
push 0x1571
mov dword [0x10082f98], eax
call fcn.1004424a
mov dword [ebp - 0x1c], 0x68c3
cmp dword [ebp - 0x1c], 0x6952
jle 0x10042316
push 0x1bca
push 0x1f97
push 0x76c
push 0x1939
push 0x1538
push 0x2036
push 0x22f0
push 0x751
push 0x1dae
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x2b5e
mov edi, ebx
mov dword [ebp - 0x20], 0x4123
mov dword [ebp - 0x24], ebx
mov ecx, ebx
mov eax, edi
shl eax, cl
mov ecx, 0x100808b8
cdq
push edx
push eax
call fcn.100059e4
inc ebx
cmp ebx, 0x2b19
jl 0x100422d7
mov eax, dword [ebp - 0x18]
add edi, eax
dec dword [ebp - 0x20]
push 0
pop ebx
jne 0x100422d4
add eax, esi
dec dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jne 0x100422cb
inc esi
cmp esi, 0x67f7
jl 0x100422c1
or edi, 0xffffffff
mov dword [ebp - 4], 3
cmp dword [ebp - 0x1c], 0x65b3
jge 0x10042356
mov edx, str.lhjbnxuh_jrm_hnxs_llngimn_jyluq_oyzqdceh_psn_yzxpuf_ukiao_iprxautpq
mov ecx, 0x100808b8
call fcn.10008020
jmp 0x10042356
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x14], 9
mov dword [ebp - 0x18], 0x78ab
mov dword [ebp - 0x24], 0x1465
push 1
call fcn.10005c0e
push 5
pop eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
mov edx, 0x4349
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x1c], 0x29ac92d1
push eax
push 0x69fe
mov dword [ebp - 0x34], 0xfffffff8
mov dword [ebp - 0x1c], 1
push ebx
call fcn.1004342d
add esp, 0xc
mov dword [ebp - 0x14], ebx
jmp 0x1004249f
push 2
lea ecx, [ebp - 0x94]
call fcn.10005c0e
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x20], 0x2477
lea edx, [ebp - 0x60]
mov dword [ebp - 0x1c], edi
mov ecx, 0x3ff8
push ebx
call fcn.100430c7
pop ecx
pop ecx
cmp dword [ebp - 0x20], ebx
je 0x1004246c
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp eax, 0x7911
mov eax, dword [ebp - 0x94]
setle dl
xor ecx, ecx
imul edx, dword [eax]
mov eax, dword [ebp - 0x24]
neg edx
cmp edx, eax
mov eax, dword [ebp - 0x7c]
setge cl
mov dword [eax], ecx
test ecx, ecx
je 0x1004242c
mov eax, dword [ebp - 0x94]
cmp dword [eax], ebx
je 0x1004242c
xor eax, eax
inc eax
jmp 0x1004242e
mov eax, ebx
cmp eax, dword [ebp - 0x14]
jne 0x1004243f
mov eax, dword [ebp - 0x7c]
cmp dword [eax], ebx
je 0x1004243f
xor eax, eax
inc eax
jmp 0x10042441
mov eax, ebx
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
cmp eax, 4
setl cl
xor eax, eax
cmp ecx, 0x6c8a81d5
setl al
imul eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
neg eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
cmp eax, ecx
lea ecx, [ebp - 0x94]
setne dl
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 5
call fcn.10005c91
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffe7
jge 0x100423bb
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], edi
call fcn.10005c91
cmp byte [0x10081a52], 0
jne 0x100427ae
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
jmp 0x100424d6
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xc0], edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x100424c9
push 0x78f5
push 0x6526
lea eax, [ebp - 0x30]
mov dl, 1
push eax
push 0x45e0
push 0x35b3
push 0x715d
push ebx
push 0x1c
xor cl, cl
call fcn.10043d79
add esp, 0x20
mov dword [ebp - 0x30], 0x19
jmp 0x100425c2
push dword [ebp - 0x60]
movdqa xmm0, xmmword [0x10072c40]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x64], 0x8bfc4f27
push eax
mov dword [ebp - 0x34], 0xb72b21a3
lea ecx, [ebp - 0x70]
push ebx
movdqu xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.10008ab5
mov dword [ebp - 4], 7
mov dword [ebp - 0x14], ebx
jmp 0x1004256e
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xa8], edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x10042561
mov byte [ebp - 0x29], bl
lea ecx, [ebp - 0x29]
push 0x7083
call fcn.1004333e
mov dword [esp], 0x2c55
lea eax, [ebp - 0x70]
push 0x7551
push 0x372e
push 0x3ce0
push eax
push 0x3654
lea eax, [ebp - 0x64]
mov dl, 1
push ebx
push eax
mov cl, dl
call fcn.10043d79
add esp, 0x20
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x70]
call fcn.10005c91
dec dword [ebp - 0x30]
cmp dword [ebp - 0x30], 2
jg 0x10042514
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ecx
push eax
call fcn.1004424a
mov dword [ebp - 0x20], 0xe5b
cmp dword [ebp - 0x20], 0xfa6
jle 0x10042623
mov edi, ebx
mov esi, ebx
mov dword [ebp - 0x34], ebx
lea eax, [esi + edi]
mov ecx, 0x100808b8
xor eax, ebx
cdq
push edx
push eax
call fcn.100059e4
inc ebx
cmp ebx, 0x4a0e
jl 0x100425f0
inc esi
push 0
pop ebx
cmp esi, 0x7e2b
jl 0x100425ed
inc edi
cmp edi, 0x604a
jl 0x100425eb
or edi, 0xffffffff
mov dword [ebp - 0x24], 0x7a18
cmp dword [ebp - 0x24], 0x7c0e
jle 0x100426c7
push 0x1bca
push 0x1f97
push 0x76c
push 0x1939
push 0x1538
push 0x2036
push 0x22f0
push 0x751
push 0x1dae
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, ebx
mov dword [ebp - 0x18], ebx
mov esi, ebx
mov edi, ebx
add eax, esi
lea ecx, [ebp - 0xd8]
or eax, edi
cdq
push edx
push eax
call fcn.10001a6a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004268f
mov eax, dword [eax]
push eax
call fcn.1004da8c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xd8]
call fcn.10006111
mov eax, dword [ebp - 0x18]
inc edi
cmp edi, 0x2f47
jl 0x10042673
inc esi
cmp esi, 0x788f
jl 0x10042671
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x5603
jl 0x1004266f
or edi, 0xffffffff
cmp dword [ebp - 0x24], 0x7794
jge 0x100426db
push str.ptdypcz_ddsadyz_khulhki_sdq_swciw_iec_ldhuodiij_nscdtmo_tajo
call fcn.1004da8c
pop ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], 0x19
cmp dword [ebp - 0x14], edi
jl 0x10042788
mov esi, 0xb999fb0
mov dword [ebp - 0x5c], esi
xor ecx, ecx
mov dword [ebp - 0x58], esi
inc ecx
mov dword [ebp - 0x54], esi
xor edx, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x24], 0xa28c7fff
mov dword [ebp - 0x1c], 0xef7e2919
mov eax, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0x5c]
cmp ecx, eax
setge dl
xor eax, eax
cmp edx, 0xc39d
setg al
xor ecx, ecx
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x58]
cmp eax, 1
mov eax, dword [ebp - 0x24]
setle cl
dec eax
neg eax
sbb eax, eax
inc eax
add eax, ecx
imul eax, eax, 0x6c4f
add eax, dword [ebp - 0x14]
cmp eax, edi
je 0x1004275d
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x58], 0xb2455f99
mov edx, 0x50fb
push 0x7d3d
sbb eax, eax
xor cl, cl
inc eax
mov dword [ebp - 0x1c], eax
call fcn.100430ed
dec dword [ebp - 0x14]
pop ecx
cmp dword [ebp - 0x14], edi
jge 0x100426f6
mov dword [ebp - 4], 0xa
cmp dword [ebp - 0x20], 0xcc5
jge 0x100427a7
mov edx, str.eccc_fqi_bofskn_wqoj_qdxo_xtj_vafic_sggqdok_binfsbkp_wlu
mov ecx, 0x100808b8
call fcn.10008020
mov byte [0x10081a52], 1
mov eax, dword [0x10081c10]
cmp eax, 0x270
jne 0x10042814
mov edx, 0x10081c18
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, 0x100825d8
jl 0x100427bf
jmp 0x10042820
cmp eax, 0x4e0
jb 0x10042825
call fcn.10044285
mov eax, dword [0x10081c10]
mov edx, dword [eax*4 + 0x10081c14]
inc eax
mov dword [0x10081c10], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x10082f94]
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 + 0x18]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
jmp 0x10042882
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [edx], ebx
cmp dword [edx], 2
jge 0x10042882
mov esi, dword [ebp + 0x14]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [edx]
cmp dword [edx], 2
jl 0x10042874
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret