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

Disassembly:
mov eax, 0x1005cfd2
call fcn.1005c418
sub esp, 0xf4
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0xb8], edx
je 0x100160a8
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x40], 0xd6c05baf
inc esi
mov dword [ebp - 0x5c], 0x5ef13550
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x40], 0xffffffed
cmp dword [ebp - 0x40], 0xffffffe5
jg 0x10015b37
push esi
lea ecx, [ebp - 0x8c]
call fcn.1000f820
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x78], 0xfffffff9
mov dword [ebp - 0x14], ebx
jmp 0x100158e3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x8c]
mov dword [eax + ecx*4], 0xfffffffd
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x100158d0
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x3c], ebx
jl 0x10015b20
mov dword [ebp - 0x44], 0x34bf8f0a
mov dword [ebp - 0x14], 0x2c5
cmp dword [ebp - 0x14], 0x65d
jle 0x10015975
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov eax, ebx
mov dword [ebp - 0x18], ebx
mov edi, ebx
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
add ecx, edi
shl eax, cl
lea ecx, [ebp - 0xe4]
cdq
push edx
push eax
call fcn.10001a5f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1001593b
mov eax, dword [eax]
push eax
call fcn.10044793
pop ecx
push ebx
push esi
lea ecx, [ebp - 0xe4]
call fcn.1001017e
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x2d53
jl 0x1001591f
inc edi
cmp edi, 0x4331
jl 0x1001591a
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x2fe
jl 0x10015918
mov dword [ebp - 0x54], esi
cmp dword [ebp - 0x14], 0x195
jge 0x1001598c
push str.bxhgosix_ifvcnsb_rxbrrdbi_svceddnof_qpdk_qlhh_juhpb
call fcn.10044793
pop ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], ebx
cmp dword [ebp - 0x44], ebx
jl 0x10015b07
mov dword [ebp - 0x34], 0x7c1188e1
mov dword [ebp - 0x28], 0x1c84132d
mov dword [ebp - 0x1c], 0x3194
cmp dword [ebp - 0x1c], 0x3335
jle 0x100159e1
mov edi, ebx
mov esi, edi
mov ebx, 0x1185
mov eax, esi
mov ecx, 0x10078798
cdq
push edx
push eax
call fcn.1000f531
dec esi
dec ebx
jne 0x100159c2
inc edi
cmp edi, 0x72f3
jl 0x100159bb
xor esi, esi
inc esi
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x34], ebx
jl 0x10015a7e
push 2
lea ecx, [ebp - 0xb4]
call fcn.1000f820
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0xb4]
xor cl, cl
call fcn.10013ec4
mov dword [esp], 0x7342
lea eax, [ebp - 0x5c]
push ebx
push 0xf7a
push eax
push esi
push 0x723c
lea eax, [ebp - 0x40]
mov edx, 0x3909
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
lea eax, [ebp - 0x54]
push eax
push 0x768c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x3f89
lea ecx, [ebp - 0xb4]
call fcn.10013aab
add esp, 0x44
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xb4]
call fcn.1000f8a3
dec dword [ebp - 0x34]
jns 0x100159ed
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 0x2de2
jge 0x10015ac1
mov edx, str.emcvrutup_dyzeiuk_mbca
mov ecx, 0x10078798
call fcn.10012752
jmp 0x10015ac1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
jmp 0x10015afa
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x8c]
cmp dword [eax + ecx*4], ebx
jne 0x10015aff
lea eax, [ebp - 0x34]
push eax
push ebx
push ecx
lea eax, [ebp - 0x28]
push 0x36f
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x8c]
call fcn.1001395c
add esp, 0x14
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], ebx
jle 0x10015ac9
dec dword [ebp - 0x44]
jmp 0x10015992
push ecx
mov edx, 0x1554
mov ecx, 0x7dec
call fcn.100141a6
dec dword [ebp - 0x3c]
pop ecx
jmp 0x100158eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.1000f8a3
dec dword [ebp - 0x40]
jmp 0x100158a8
mov eax, dword [0x1008194c]
test al, 1
jne 0x10015b81
or eax, esi
mov edx, 0x1571
or dword [0x10081944], 0xffffffff
mov ecx, esi
mov dword [0x1008194c], eax
mov edi, 0x270
mov dword [0x100805c4], edx
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ecx*4 + 0x100805c4], edx
inc ecx
cmp ecx, edi
jl 0x10015b60
mov dword [0x100805c0], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x38], 0xffffffef
jmp 0x10015bf4
push ecx
lea eax, [ebp - 0x74]
mov dword [ebp - 0x68], 0x51cd
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x9c], 0x71f09a2b
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0xfffffffd
push eax
push ecx
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], 0xa07c
push eax
lea eax, [ebp - 0x9c]
push eax
lea edx, [ebp - 0x38]
call fcn.10014311
add esp, 0x20
mov edx, 0x2473
push 0xb29
push ecx
push 0x418
mov ecx, 0x165
call fcn.10013ea9
add esp, 0xc
dec dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0xffffffe5
jle 0x10015b90
push 0x2061
push esi
push ecx
lea eax, [ebp - 0x2a]
mov dword [ebp - 0x14], 0x1928c176
push eax
mov byte [ebp - 0x2a], bl
mov edx, 0x38ad
push 0x7330
mov ecx, 0x8be
call fcn.1001395c
add esp, 0x14
mov dword [ebp - 0x14], ebx
jmp 0x10015c3d
push ecx
push ebx
push 0x4840
call fcn.10013bdc
add esp, 0xc
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffe2
jle 0x10015c2b
cmp byte [0x100804ec], 0
jne 0x10015dd7
mov dword [ebp - 0x50], 0xb90d
mov dword [ebp - 0x20], 0x154f
cmp dword [ebp - 0x20], 0x1827
jle 0x10015cd0
mov eax, ebx
mov dword [ebp - 0x18], ebx
mov edi, ebx
mov dword [ebp - 0x14], ebx
add eax, edi
mov dword [ebp - 0x1c], 0x155a
mov dword [ebp - 0x30], eax
mov edi, eax
mov eax, edi
lea ecx, [ebp - 0xfc]
cdq
push edx
push eax
call fcn.10001a5f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10015c99
mov eax, dword [eax]
push eax
call fcn.10044793
pop ecx
push ebx
push esi
lea ecx, [ebp - 0xfc]
call fcn.1001017e
dec edi
dec dword [ebp - 0x1c]
jne 0x10015c7f
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x57d3
jl 0x10015c71
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x1128
jl 0x10015c6c
mov dword [ebp - 0x60], 0xfffffff7
cmp dword [ebp - 0x20], 0x12fc
jge 0x10015ceb
push str.jxnrdhyo_opcizkunf_upryovk_fkxny
call fcn.10044793
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x6c21
cmp dword [ebp - 0x50], ebx
je 0x10015d5b
push 0x3534
push esi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x64], 0x2eac4530
push eax
push 0xcbb
push esi
push 0x2f3
push 0x572e
push 0x614f
push 0x1f5c
push 0x6953
push ebx
push 0x145d
push 0x1294
push 0x7622
push 0x286f
lea eax, [ebp - 0x60]
mov ecx, 0x217b
push 0x3a48
push eax
lea edx, [ebp - 0x64]
call fcn.10013aab
add esp, 0x44
jmp 0x10015d9f
mov dword [ebp - 0x20], 0x576c5165
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
dec eax
je 0x10015d8e
mov dword [ebp - 0x14], ebx
jmp 0x10015d86
mov byte [ebp - 0x29], bl
lea edx, [ebp - 0x29]
push ecx
call fcn.10013e51
inc dword [ebp - 0x14]
pop ecx
cmp dword [ebp - 0x14], 9
jne 0x10015d76
jmp 0x10015d9f
push ecx
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x2b], bl
push esi
push eax
call fcn.10013bdc
add esp, 0xc
push 0x7daf
push 0x100805c0
push 0xc8c
push 0x3f3e
xor dl, dl
mov ecx, 0x127
call fcn.10014fe2
push 0x5a21
push ebx
mov edx, 0x100804ec
mov ecx, 0x1c9f
call fcn.10013d44
add esp, 0x18
push dword [ebp - 0x7c]
movdqa xmm0, xmmword [0x1006b940]
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x18], 0x70ade216
push eax
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], ebx
movdqu xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
call fcn.10013128
mov dword [ebp - 4], 8
xor ecx, ecx
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x30], 0x35c0de45
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x14], 0x83800955
mov dword [ebp - 0x4c], 0xfff8
mov dword [ebp - 0x24], 0xfffffff7
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x58], 0x1d1a932d
mov dword [ebp - 0x30], 0xfffffff6
mov dword [ebp - 0x30], 0x795b
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov dword [edi + 4], esi
setl cl
xor edx, edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
mov eax, dword [ebp - 0x1c]
setl dl
imul eax, edx
cmp eax, dword [ebp - 0x20]
je 0x10015f63
push 3
lea ecx, [ebp - 0xa8]
call fcn.1000f820
push 0xa4c
push ebx
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 9
push eax
push 0x4dd7
push ebx
mov edx, 0x51ee
lea ecx, [ebp - 0xa8]
call fcn.10015860
add esp, 0x14
mov dword [ebp - 0x14], 0xffffffe8
jmp 0x10015f50
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x2e255bb5
push eax
push esi
push 0x374c
push 0x2f58
push esi
lea eax, [ebp - 0xa8]
mov edx, 0x2240
push eax
push 0x45d
push 0x5051
push 0x43d0
push 0x304c
push esi
push 0x1d90
lea eax, [ebp - 0x4c]
mov ecx, 0x4e71
push eax
push 0x5dd8
push 0x3dbe
push 0x28a6
push 0x2c24
call fcn.10013aab
add esp, 0x44
cmp dword [ebp - 0x24], ebx
jne 0x10015f56
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffed
je 0x10015ee6
lea ecx, [ebp - 0xa8]
call fcn.1000f8a3
jmp 0x10015f76
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x24]
push eax
sub esp, 0xc
call fcn.1001401c
add esp, 0x14
mov dword [ebp - 0x14], ebx
jmp 0x10015ff6
mov dword [ebp - 0x18], ebx
jmp 0x10015f8e
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x48], 0x9132
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x10015f80
mov dword [ebp - 0x24], ebx
jmp 0x10015fed
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10015faa
mov eax, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov eax, dword [ebp - 0x20]
cmp eax, esi
setl cl
cmp ecx, dword [ebp - 0x48]
je 0x10015fc1
cmp dword [ebp - 0x48], ebx
je 0x10015fc8
mov eax, esi
cmp dword [ebp - 0x30], ebx
jne 0x10015fca
mov eax, ebx
mov ecx, dword [edi + 4]
xor edx, edx
imul ecx, eax
mov eax, dword [ebp - 0x48]
sub ecx, eax
mov eax, dword [ebp - 0x58]
cmp ecx, 5
setge dl
xor ecx, ecx
cmp eax, edx
setne cl
mov dword [ebp - 0x1c], ecx
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0xf
je 0x10015f98
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffed
jge 0x10015f7b
lea ecx, [ebp - 0x98]
call fcn.1000f8a3
mov eax, dword [0x100805c0]
cmp eax, 0x270
jne 0x10016057
mov edx, 0x100805c8
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, 0x10080f88
jl 0x1001601c
jmp 0x10016063
cmp eax, 0x4e0
jb 0x10016068
call fcn.10016950
mov eax, dword [0x100805c0]
mov ecx, dword [eax*4 + 0x100805c4]
inc eax
mov dword [0x100805c0], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x10081944]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x100160c5
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp 0x100160c0
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xffff
inc dword [edx]
cmp dword [edx], 3
jl 0x100160b3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret