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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x13dc
call fcn.004060e0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x405bf0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
sub esp, 0xc
mov al, byte [ebp - 0x13e8]
mov byte [esp + 4], al
mov dword [esp + 8], str.abcdefghijklmnopqrstuvwxyzABCDEFGH1IJKLMNOPQRSTUVWXYZ0123456789______
mov dword [esp], 0x49
lea ecx, [ebp - 0x44]
call fcn.004036e0
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x13e4], esi
mov eax, 3
nop dword [eax]
mov ecx, esi
shr ecx, 0x1e
xor ecx, esi
imul ecx, ecx, 0x6c078965
add ecx, eax
add ecx, 0xfffffffe
mov dword [ebp + eax*4 - 0x13ec], ecx
cmp eax, 0x271
je 0x40258f
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
lea esi, [eax + ecx]
add esi, 0xffffffff
mov dword [ebp + eax*4 - 0x13e8], esi
add eax, 2
jmp 0x402550
mov esi, dword [ebp - 0x30]
cmp esi, 0xf
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x44]
mov edi, edx
cmova edi, eax
mov dword [ebp - 0x13e8], 0x270
lea ecx, [ebp - 0x13e8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], 0x20
mov dword [ebp - 0x48], 0xffffffff
test ecx, ecx
je 0x4026bc
mov dword [ebp - 0x20], eax
lea eax, [edi + ecx]
lea ebx, [edi + 1]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x2c], ebx
cmp ebx, eax
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
je 0x4026bc
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x54], edi
jmp 0x40260f
add esi, 1
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0x58]
je 0x4026ad
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
add eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
xor eax, eax
xor esi, esi
nop word cs:[eax + eax]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x50]
call fcn.004037d0
mov ecx, dword [ebp - 0x20]
add cl, 0xff
mov esi, dword [ebp - 0x5c]
shl esi, cl
add esi, esi
or esi, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov ecx, eax
add cl, 0xff
mov eax, dword [ebp - 0x60]
shl eax, cl
add eax, eax
or eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x28]
jb 0x402630
mov ecx, eax
mov eax, esi
xor edx, edx
mov edi, dword [ebp - 0x24]
div edi
mov ebx, edx
mov esi, eax
mov eax, ecx
xor edx, edx
div edi
cmp esi, eax
jb 0x40268f
mov eax, 0
mov esi, 0
cmp edx, dword [ebp - 0x28]
jne 0x402630
cmp ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x2c]
je 0x402600
mov al, byte [esi]
mov dl, byte [edi + ebx]
mov byte [esi], dl
mov byte [edi + ebx], al
jmp 0x402600
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x44]
cmp ecx, 0x10
mov edi, 0x10
cmovb edi, ecx
cmp esi, 0xf
cmova edx, eax
mov dword [ebx], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp edi, 0xf
jbe 0x402715
mov dword [ebp - 0x10], 0
sub esp, 0xc
mov al, byte [ebp - 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], edx
mov dword [esp], edi
mov ecx, ebx
call fcn.004036e0
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp + 8]
cmp esi, 0x10
jae 0x40272c
jmp 0x402758
mov dword [ebx + 0x10], edi
push edi
push edx
push ebx
call fcn.00409880
add esp, 0xc
mov byte [ebx + edi], 0
cmp esi, 0x10
jb 0x402758
mov eax, dword [ebp - 0x44]
lea edx, [esi + 1]
cmp edx, 0x1000
jb 0x40274e
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x40276e
add esi, 0x24
mov edx, esi
mov eax, ecx
push edx
push eax
call fcn.00405dfa
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x13dc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0040e63a
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x4027bb
mov ecx, dword [ebp - 0x44]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4027b1
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4027c0
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00405dfa
add esp, 8
add esp, 0xc
pop ebp
ret
call fcn.0040e63a
int3