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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x49f844]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [0x49f844], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x12], 0xa
mov byte [0x49f84c], bl
mov byte [0x49f843], bl
mov byte [0x49f842], bl
mov dword [0x49f848], ebx
mov byte [esp + 0x17], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x18], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x16], bl
cmp byte [esi], bl
je 0x484d03
movsx ecx, byte [esi]
push ecx
call 0x4c7f90
add eax, 0xffffffbd
add esp, 4
cmp eax, 0x19
ja 0x484cf9
movzx edx, byte [eax + 0x4375c4]
jmp dword [edx*4 + 0x43759c]
inc esi
cmp byte [esi], 0
jne 0x484b80
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
test cl, cl
je 0x4854e8
mov edx, dword [0x4a09d8]
mov al, byte [edx + 0x17]
mov dword [esp + 0x20], edx
test al, al
jne 0x484d27
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x4854e8
mov ebx, dword [ebp + 0xc]
mov esi, 1
mov dword [esp + 0x1c], esi
mov eax, ebx
lea ecx, [ecx]
cmp cl, byte [esp + 0x12]
jne 0x484d4a
add dword [esp + 0x1c], esi
mov cl, byte [eax + esi]
add eax, esi
test cl, cl
jne 0x484d40
mov edi, eax
sub edi, ebx
mov dword [esp + 0x2c], edi
cmp byte [esp + 0x17], cl
jne 0x484d74
cmp eax, ebx
jbe 0x484d74
mov cl, byte [eax - 1]
cmp cl, byte [esp + 0x12]
jne 0x484d74
sub dword [esp + 0x1c], esi
jmp 0x484d99
cmp byte [esp + 0x12], 0xa
jne 0x484d9e
push 0xa
push ebx
call 0x4c5c01
add esp, 8
test eax, eax
je 0x484d9e
cmp eax, ebx
jbe 0x484d9e
cmp byte [eax - 1], 0xd
jne 0x484d9e
mov byte [esp + 0x15], 1
mov byte [esp + 0x14], 1
cmp dword [esp + 0x1c], esi
jne 0x484dbb
mov ecx, dword [esp + 0x20]
push esi
push 0
push edi
push ebx
call 0x4b48b0
mov dword [esp + 0x1c], eax
jmp 0x4854e8
cmp dword [0x49f844], 0
jne 0x484dcb
cmp byte [esp + 0x15], 0
je 0x484e31
lea edx, [edi + 3]
push edx
call 0x4c4de3
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
test esi, esi
jne 0x484dfd
mov ecx, dword [ebp + 8]
push 0x49588a
push eax
push 0x4918cc
call fcn.004776d0
mov dword [esp + 0x1c], eax
jmp 0x4854e8
lea eax, [edi + 1]
push eax
push ebx
push esi
call 0x4c9470
add esp, 0xc
cmp byte [esp + 0x15], 0
mov dword [ebp + 0xc], esi
je 0x484e31
mov cx, word [0x494aac]
mov word [edi + esi], cx
mov dl, byte [0x494aae]
mov byte [edi + esi + 2], dl
add edi, 2
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp byte [esp + 0x13], al
setne al
inc ecx
inc eax
add eax, eax
add eax, eax
imul ecx, eax
push ecx
mov dword [esp + 0x28], eax
call 0x4c4de3
mov ebx, eax
add esp, 4
mov dword [esp + 0x34], ebx
test ebx, ebx
jne 0x484e7a
mov ecx, dword [ebp + 8]
push 0x49588a
push eax
push 0x4918cc
call fcn.004776d0
mov dword [esp + 0x1c], eax
jmp 0x4854e8
mov esi, dword [ebp + 0xc]
mov dword [ebx], esi
cmp byte [esi], 0
mov edi, ebx
mov dword [esp + 0x1c], 0
mov edx, 1
je 0x484f09
mov al, byte [esi]
cmp al, byte [esp + 0x12]
jne 0x484f02
add dword [esp + 0x1c], edx
cmp byte [esp + 0x13], 0
mov byte [esi], 0
je 0x484ef9
sub dword [0x49d318], edx
jne 0x484ebb
call fcn.0045f760
mov edx, 1
mov ecx, dword [0x49f984]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x49f984], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
shr ecx, 1
mov dword [edi + 4], ecx
add edi, dword [esp + 0x24]
lea eax, [esi + 1]
mov dword [edi], eax
add esi, edx
cmp byte [esi], 0
jne 0x484e93
cmp byte [esp + 0x14], 0
jne 0x484f66
add dword [esp + 0x1c], edx
cmp byte [esp + 0x13], 0
je 0x484f66
sub dword [0x49d318], edx
jne 0x484f28
call fcn.0045f760
mov ecx, dword [0x49f984]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x49f984], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
shr edx, 1
mov dword [edi + 4], edx
cmp dword [0x49f844], 0
je 0x484f80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push 0x436970
push eax
push ecx
jmp 0x484fb4
cmp byte [esp + 0x13], 0
je 0x484f98
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push 0x436960
push edx
push eax
jmp 0x484fb4
cmp byte [esp + 0x18], 0
mov eax, 0x4368f0
jne 0x484fa9
mov eax, 0x4367c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push ebx
call 0x4c5e00
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov al, byte [esi + 0x17]
add esp, 0x10
mov ebx, edx
mov dword [esp + 0x2c], ebx
test al, al
jne 0x484fe3
mov ecx, dword [esi + 0xc]
push 1
push 0
push edx
push 0
call 0x4b48b0
jmp 0x48504e
mov byte [esp + 0x13], 1
mov cl, 1
cmp edx, 0xffffffff
jne 0x484fff
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x2c]
xor cl, cl
jmp 0x485004
mov byte [esp + 0x13], 0
lea edi, [ebx + 1]
cmp al, 2
jne 0x485032
cmp byte [esp + 0x13], 0
je 0x485020
push 0x49588a
mov eax, ebx
call fcn.00451b60
jmp 0x48504e
mov esi, 0x4a2bfc
call fcn.00451be0
neg eax
sbb eax, eax
neg eax
jmp 0x48504e
cmp edi, dword [0x49d330]
jbe 0x485060
push 0x49588a
push 0x4958e0
mov ecx, 0x4a2c18
call fcn.00477900
cmp eax, 1
je 0x48507c
mov dword [esp + 0x1c], 0
jmp 0x4854e8
cmp edi, 2
jae 0x485101
xor edx, edx
test cl, cl
setne dl
xor al, al
mov ecx, esi
lea edi, [edx + 3]
call 0x4b4d70
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
xor esi, esi
push 1
mov dword [esp + 0x30], esi
call fcn.0044f230
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x1c], esi
jbe 0x48537b
cmp byte [esp + 0x16], 0
je 0x4853e5
test esi, esi
je 0x4853e5
cmp byte [0x49f843], 0
je 0x4853aa
cmp dword [0x49f848], 0
jne 0x4853aa
mov edi, dword [ebx]
mov eax, edi
call fcn.0045a270
test al, al
je 0x4852f8
push 0x10
push 0
push edi
call 0x4c6a38
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
fild qword [esp + 0x4c]
add esp, 0xc
jmp 0x485301
mov al, byte [esi + 0x15]
test al, 2
je 0x485117
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [esi + 0x10]
and byte [esi + 0x15], 0x86
cmp edi, edx
jbe 0x48514d
mov cl, byte [esi + 0x14]
cmp cl, 1
jbe 0x485180
cmp cl, 2
je 0x4851b8
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
and byte [ecx + 0x15], 0x7f
mov dword [ecx + 0x10], esi
mov esi, dword [esp + 0x20]
mov dword [ecx + 8], eax
cmp byte [esp + 0x13], 0
mov eax, dword [esi + 8]
je 0x4852ed
cmp eax, 0x49588a
je 0x485171
push ebx
push 0x49588a
push eax
call 0x4c57f0
add esp, 0xc
mov edx, dword [esi + 8]
mov byte [ebx + edx], 0
mov dword [esi + 0xc], ebx
jmp 0x48507c
cmp edi, 0x40
ja 0x4851b8
cmp edi, 4
ja 0x485191
mov esi, 4
jmp 0x48519f
mov eax, 8
cmp eax, edi
sbb esi, esi
and esi, 0x38
add esi, eax
mov eax, esi
call 0x4af610
test eax, eax
je 0x485053
mov ecx, dword [esp + 0x20]
mov byte [ecx + 0x14], 1
jmp 0x48513f
cmp edi, 0x10
jae 0x4851c7
mov esi, 0x10
jmp 0x485277
cmp edi, 0x104
jae 0x4851d9
mov esi, 0x104
jmp 0x485277
cmp edi, 0x28000
jae 0x48521d
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
test edi, edi
jns 0x4851f3
fadd qword [0x497ba0]
fmul qword [0x497bb0]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x50]
mov esi, dword [esp + 0x50]
fldcw word [esp + 0x18]
jmp 0x485277
cmp edi, 0x190000
jae 0x48522d
lea esi, [edi + 0x4000]
jmp 0x485277
cmp edi, 0x640000
jae 0x485271
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
test edi, edi
jns 0x485247
fadd qword [0x497ba0]
fmul qword [0x497ba8]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x50]
mov esi, dword [esp + 0x50]
fldcw word [esp + 0x18]
jmp 0x485277
lea esi, [edi + 0x10000]
mov eax, dword [0x49d330]
cmp esi, eax
jbe 0x485282
mov esi, eax
cmp cl, 2
jne 0x4852c3
test edx, edx
je 0x4852c3
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 8]
push ecx
mov bl, 1
call 0x4c65bf
add esp, 4
cmp esi, 0x7fffffff
ja 0x4852cb
push esi
call 0x4c4de3
add esp, 4
test eax, eax
je 0x4852cb
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov byte [edi + 0x14], 2
jmp 0x48513f
mov edi, dword [esp + 0x20]
xor bl, bl
jmp 0x48529d
test bl, bl
je 0x4852de
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 8], 0x4a2ba4
mov dword [edi + 0xc], eax
push 0x49588a
push 0x4917c0
jmp 0x485044
mov byte [eax], 0
mov dword [esi + 0xc], ebx
jmp 0x48507c
push edi
call 0x4c6b3a
add esp, 4
mov eax, esi
fstp qword [esp + 0x50]
call fcn.0045a270
test al, al
je 0x48532b
push 0x10
push 0
push esi
call 0x4c6a38
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
fild qword [esp + 0x54]
add esp, 0xc
jmp 0x485334
push esi
call 0x4c6b3a
add esp, 4
fld qword [esp + 0x50]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4853e5
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x2c]
dec eax
cmp dword [esp + 0x28], eax
jne 0x485364
cmp byte [esp + 0x14], 0
jne 0x485364
dec edi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x28]
add ebx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x1c]
jb 0x4850a5
mov eax, dword [esp + 0x34]
push eax
call 0x4c65bf
add esp, 4
cmp byte [esp + 0x15], 0
je 0x48544b
mov byte [edi - 2], 0
mov edi, dword [esp + 0x20]
cmp byte [edi + 0x17], 0
jne 0x485423
mov esi, dword [edi + 0xc]
jmp 0x485425
mov al, byte [0x49f84c]
push esi
test al, al
jne 0x4853be
mov eax, dword [ebx]
push eax
call 0x4c4cb6
jmp 0x4853d5
cmp al, 2
jne 0x4853cd
mov ecx, dword [ebx]
push ecx
call dword [0x48d2b4]
jmp 0x4853d8
mov eax, dword [ebx]
push eax
call 0x4c4dcc
add esp, 8
test eax, eax
setne al
test al, al
je 0x485349
mov ecx, dword [ebx]
mov al, byte [ecx]
mov edi, dword [esp + 0x18]
test al, al
je 0x4853ff
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x4853f1
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
dec eax
cmp dword [esp + 0x28], eax
jb 0x485411
cmp byte [esp + 0x14], 0
je 0x48541c
mov dl, byte [esp + 0x12]
mov byte [edi], dl
inc edi
mov dword [esp + 0x18], edi
mov esi, dword [ebx]
jmp 0x485364
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x485441
test byte [esi + 0x15], 8
je 0x485438
mov eax, esi
call fcn.0044f150
add dword [esi + 0xc], 0xfffffffe
lea eax, [esi + 0xc]
jmp 0x485452
mov eax, 0x4a3324
add dword [eax], 0xfffffffe
jmp 0x485452
mov byte [edi], 0
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x16], 0
je 0x4854ae
cmp dword [esp + 0x2c], 0
je 0x4854ae
push 1
mov ecx, edi
call fcn.0044f230
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x485470
sub eax, edx
mov ebx, eax
cmp byte [edi + 0x17], cl
jne 0x485485
mov esi, dword [edi + 0xc]
jmp 0x485487
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x48549f
test byte [esi + 0x15], 8
je 0x48549a
mov eax, esi
call fcn.0044f150
lea eax, [esi + 0xc]
jmp 0x4854a4
mov eax, 0x4a3324
mov ecx, dword [esp + 0x2c]
mov dword [eax], ebx
mov dword [esp + 0x30], ecx
cmp byte [edi + 0x17], 0
jne 0x4854b9
mov eax, dword [edi + 0xc]
jmp 0x4854bb
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x4854dc
cmp dword [0x4a2c08], 0
je 0x4854dc
push 1
mov ecx, 0x4a2bfc
call fcn.00451c50
mov dword [esp + 0x1c], eax
jmp 0x4854e8
and byte [eax + 0x15], 0x86
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
je 0x48555d
insb byte es:[edi], dx