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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4ba2b4]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [0x4ba2b4], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x12], 0xa
mov byte [0x4ba2bc], bl
mov byte [0x4ba2b3], bl
mov byte [0x4ba2b2], bl
mov dword [0x4ba2b8], 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 0x449653
movsx ecx, byte [esi]
push ecx
call fcn.00495dc4
add eax, 0xffffffbd
add esp, 4
cmp eax, 0x19
ja case.0x4494ef.69
movzx edx, byte [eax + 0x449f04]
jmp dword [edx*4 + 0x449edc]
movzx edi, byte [esi + 1]
test edi, 0xffffff80
jne 0x449514
push 2
push edi
call fcn.004942ac
add esp, 8
cmp eax, ebx
je 0x449514
and edi, 0xffffffdf
mov eax, edi
cmp al, 0x4c
jne 0x449527
inc esi
mov byte [0x4ba2bc], 2
jmp case.0x4494ef.69
mov byte [0x4ba2bc], 1
jmp case.0x4494ef.69
cmp byte [esi + 1], 0
je case.0x4494ef.69
mov al, byte [esi + 1]
inc esi
test al, al
je case.0x4494ef.69
mov byte [esp + 0x12], al
jmp case.0x4494ef.69
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je case.0x4494ef.70
cmp al, 9
je case.0x4494ef.70
mov edi, 0x4aa2c4
mov eax, esi
call fcn.00405560
mov edi, eax
cmp edi, ebx
jne 0x449581
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449575
sub eax, edx
lea edi, [esi + eax]
push ebx
mov eax, edi
sub eax, esi
push eax
push esi
mov ecx, 0x4bc4c8
call fcn.0042cb00
mov dword [0x4ba2b4], eax
cmp eax, ebx
je 0x449e28
mov ecx, eax
cmp byte [ecx + 0x3d], 0
jne 0x449e28
mov edx, eax
mov eax, dword [edx + 0x10]
cmp eax, 2
jl 0x449e28
cmp eax, 3
jg 0x449e28
mov eax, edx
mov eax, dword [eax + 0xc]
cmp word [eax + 4], 0
jne 0x449e28
cmp word [eax + 0x14], 0
jne 0x449e28
lea esi, [edi - 1]
xor ebx, ebx
jmp case.0x4494ef.69
mov byte [0x4ba2b3], 1
jmp case.0x4494ef.69
lea ecx, [esi + 1]
push ecx
call fcn.00493918
add esp, 4
cmp eax, 1
jge 0x449603
mov eax, 1
dec eax
mov dword [0x4ba2b8], eax
jmp case.0x4494ef.69
push 6
push str.Random
push esi
call fcn.00493c7e
add esp, 0xc
test eax, eax
jne 0x449629
mov byte [esp + 0x13], 1
add esi, 5
jmp case.0x4494ef.69
mov byte [0x4ba2b2], 1
jmp case.0x4494ef.69
mov byte [esp + 0x16], 1
mov dword [esp + 0x30], ebx
jmp case.0x4494ef.69
mov byte [esp + 0x17], 1
jmp case.0x4494ef.69
mov byte [esp + 0x18], 1
inc esi
cmp byte [esi], 0
jne 0x4494d0
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
test cl, cl
je 0x449e28
mov edx, dword [0x4bb3e8]
mov al, byte [edx + 0x17]
mov dword [esp + 0x20], edx
test al, al
jne 0x449677
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x449e28
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 0x44969a
add dword [esp + 0x1c], esi
mov cl, byte [eax + esi]
add eax, esi
test cl, cl
jne 0x449690
mov edi, eax
sub edi, ebx
mov dword [esp + 0x2c], edi
cmp byte [esp + 0x17], cl
jne 0x4496c4
cmp eax, ebx
jbe 0x4496c4
mov cl, byte [eax - 1]
cmp cl, byte [esp + 0x12]
jne 0x4496c4
sub dword [esp + 0x1c], esi
jmp 0x4496e9
cmp byte [esp + 0x12], 0xa
jne 0x4496ee
push 0xa
push ebx
call fcn.00494a31
add esp, 8
test eax, eax
je 0x4496ee
cmp eax, ebx
jbe 0x4496ee
cmp byte [eax - 1], 0xd
jne 0x4496ee
mov byte [esp + 0x15], 1
mov byte [esp + 0x14], 1
cmp dword [esp + 0x1c], esi
jne 0x44970c
mov edx, dword [esp + 0x20]
push esi
push 0
push edi
push ebx
push edx
call fcn.00482ff0
mov dword [esp + 0x1c], eax
jmp 0x449e28
cmp dword [0x4ba2b4], 0
jne 0x44971c
cmp byte [esp + 0x15], 0
je 0x449781
lea eax, [edi + 3]
push eax
call fcn.00493939
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
test esi, esi
jne 0x44974e
mov ecx, dword [ebp + 8]
push 0x4a7935
push eax
push str.Out_of_memory.
call fcn.0043b590
mov dword [esp + 0x1c], eax
jmp 0x449e28
lea ecx, [edi + 1]
push ecx
push ebx
push esi
call fcn.0049b8f0
add esp, 0xc
cmp byte [esp + 0x15], 0
mov dword [ebp + 0xc], esi
je 0x449781
mov dx, word [0x4ae6e8]
mov word [edi + esi], dx
mov al, byte [0x4ae6ea]
mov byte [edi + esi + 2], al
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 fcn.00493939
mov ebx, eax
add esp, 4
mov dword [esp + 0x34], ebx
test ebx, ebx
jne 0x4497ca
mov ecx, dword [ebp + 8]
push 0x4a7935
push eax
push str.Out_of_memory.
call fcn.0043b590
mov dword [esp + 0x1c], eax
jmp 0x449e28
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 0x449859
mov al, byte [esi]
cmp al, byte [esp + 0x12]
jne 0x449852
add dword [esp + 0x1c], edx
cmp byte [esp + 0x13], 0
mov byte [esi], 0
je 0x449849
sub dword [0x4b79c8], edx
jne 0x44980b
call fcn.0041bcd0
mov edx, 1
mov ecx, dword [0x4ba3e4]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4ba3e4], 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 0x4497e3
cmp byte [esp + 0x14], 0
jne 0x4498b6
add dword [esp + 0x1c], edx
cmp byte [esp + 0x13], 0
je 0x4498b6
sub dword [0x4b79c8], edx
jne 0x449878
call fcn.0041bcd0
mov ecx, dword [0x4ba3e4]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4ba3e4], 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 [0x4ba2b4], 0
je 0x4498d0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push 0x4492f0
push eax
push ecx
jmp 0x449904
cmp byte [esp + 0x13], 0
je 0x4498e8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push 0x4492e0
push edx
push eax
jmp 0x449904
cmp byte [esp + 0x18], 0
mov eax, 0x449270
jne 0x4498f9
mov eax, 0x449140
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push ebx
call fcn.004953f0
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov al, byte [esi + 0x17]
add esp, 0x10
mov ebx, ecx
mov dword [esp + 0x2c], ebx
test al, al
jne 0x449934
mov eax, dword [esi + 0xc]
push 1
push 0
push ecx
push 0
push eax
call fcn.00482ff0
jmp 0x4499a4
mov byte [esp + 0x13], 1
mov dl, 1
cmp ecx, 0xffffffff
jne 0x449950
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x2c]
xor dl, dl
jmp 0x449955
mov byte [esp + 0x13], 0
lea edi, [ebx + 1]
cmp al, 2
jne 0x449983
cmp byte [esp + 0x13], 0
je 0x449971
push 0x4a7935
mov eax, ebx
call fcn.004050d0
jmp 0x4499a4
mov esi, 0x4bcb50
call fcn.00405150
neg eax
sbb eax, eax
neg eax
jmp 0x4499a4
cmp edi, dword [0x4b79e4]
jbe 0x4499b6
cmp edi, dword [esi + 0x10]
jbe 0x4499b6
push 0x4a7935
push 0x4b072c
mov ecx, 0x4bc4c8
call fcn.0043b860
cmp eax, 1
je 0x4499d3
mov dword [esp + 0x1c], 0
jmp 0x449e28
cmp edi, 2
jae 0x449a5c
xor ecx, ecx
test dl, dl
setne cl
xor al, al
add ecx, 3
push ecx
mov ecx, esi
call fcn.004835a0
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
xor esi, esi
push esi
push 1
mov dword [esp + 0x34], esi
call fcn.00401270
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x1c], esi
jbe 0x449cbc
lea ecx, [ecx]
cmp byte [esp + 0x16], 0
je 0x449d23
test esi, esi
je 0x449d23
cmp byte [0x4ba2b3], 0
je 0x449ceb
cmp dword [0x4ba2b8], 0
jne 0x449ceb
mov edi, dword [ebx]
mov eax, edi
call fcn.00404090
test al, al
je 0x449c39
push 0x10
push 0
push edi
call fcn.004938ab
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
fild qword [esp + 0x4c]
add esp, 0xc
jmp 0x449c42
mov al, byte [esi + 0x15]
test al, 2
je 0x449a72
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [esi + 0x10]
and byte [esi + 0x15], 0x82
mov dword [esp + 0x28], edx
cmp edi, edx
jbe 0x449aac
mov cl, byte [esi + 0x14]
cmp cl, 1
jbe 0x449adf
cmp cl, 2
je 0x449b17
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
je 0x449c2b
mov eax, dword [esi + 8]
cmp eax, 0x4a7935
je 0x449ad0
push ebx
push 0x4a7935
push eax
call fcn.004942e0
add esp, 0xc
mov ecx, dword [esi + 8]
mov byte [ebx + ecx], 0
mov dword [esi + 0xc], ebx
jmp 0x4499d3
cmp edi, 0x40
ja 0x449b17
cmp edi, 4
ja 0x449af0
mov esi, 4
jmp 0x449afe
mov ecx, 8
cmp ecx, edi
sbb esi, esi
and esi, 0x38
add esi, ecx
mov eax, esi
call fcn.0047ce90
test eax, eax
je 0x4499a9
mov ecx, dword [esp + 0x20]
mov byte [ecx + 0x14], 1
jmp 0x449a9e
cmp edi, 0x10
jae 0x449b26
mov esi, 0x10
jmp 0x449bab
cmp edi, 0x104
jae 0x449b35
mov esi, 0x104
jmp 0x449bab
cmp edi, 0x28000
jae 0x449b79
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
test edi, edi
jns 0x449b4f
fadd qword [0x4b1678]
fmul qword [0x4b1680]
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 0x449bab
cmp edi, 0x190000
jae 0x449b89
lea esi, [edi + 0x4000]
jmp 0x449bab
cmp edi, 0x640000
jae 0x449ba5
mov eax, 0x51eb851f
mul edi
mov esi, edx
mov edx, dword [esp + 0x28]
shr esi, 5
add esi, edi
jmp 0x449bab
lea esi, [edi + 0x10000]
mov eax, dword [0x4b79e4]
cmp esi, eax
jbe 0x449bb6
mov esi, eax
cmp cl, 2
jne 0x449bf3
test edx, edx
je 0x449bf3
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 8]
push edx
mov bl, 1
call fcn.00493368
add esp, 4
test esi, esi
js 0x449bfb
push esi
call fcn.00493939
add esp, 4
test eax, eax
je 0x449bfb
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov byte [edi + 0x14], 2
jmp 0x449a9e
mov edi, dword [esp + 0x20]
xor bl, bl
jmp 0x449bd1
test bl, bl
je 0x449c0f
mov dword [edi + 0x10], 0
mov dword [edi + 8], 0x4bc428
jmp 0x449c15
mov eax, dword [edi + 8]
mov byte [eax], 0
push 0x4a7935
mov dword [edi + 0xc], 0
push str.Out_of_memory.
jmp 0x44999a
mov edx, dword [esi + 8]
mov byte [edx], 0
mov dword [esi + 0xc], ebx
jmp 0x4499d3
push edi
call fcn.0049496e
add esp, 4
mov eax, esi
fstp qword [esp + 0x50]
call fcn.00404090
test al, al
je 0x449c6c
push 0x10
push 0
push esi
call fcn.004938ab
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
fild qword [esp + 0x54]
add esp, 0xc
jmp 0x449c75
push esi
call fcn.0049496e
add esp, 4
fld qword [esp + 0x50]
fucompp
fnstsw ax
test ah, 0x44
jp 0x449d23
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x2c]
dec eax
cmp dword [esp + 0x28], eax
jne 0x449ca5
cmp byte [esp + 0x14], 0
jne 0x449ca5
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 0x449a00
mov edx, dword [esp + 0x34]
push edx
call fcn.00493368
add esp, 4
cmp byte [esp + 0x15], 0
je 0x449d8a
mov byte [edi - 2], 0
mov edi, dword [esp + 0x20]
cmp byte [edi + 0x17], 0
jne 0x449d62
mov esi, dword [edi + 0xc]
jmp 0x449d64
mov al, byte [0x4ba2bc]
push esi
test al, al
jne 0x449cff
mov eax, dword [ebx]
push eax
call fcn.00493351
jmp 0x449d13
cmp al, 2
mov eax, dword [ebx]
push eax
jne 0x449d0e
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x449d16
call fcn.004934f2
add esp, 8
test eax, eax
setne al
test al, al
je 0x449c8a
mov ecx, dword [ebx]
mov al, byte [ecx]
mov edi, dword [esp + 0x18]
test al, al
je 0x449d3e
nop
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x449d30
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
dec eax
cmp dword [esp + 0x28], eax
jb 0x449d50
cmp byte [esp + 0x14], 0
je 0x449d5b
mov cl, byte [esp + 0x12]
mov byte [edi], cl
inc edi
mov dword [esp + 0x18], edi
mov esi, dword [ebx]
jmp 0x449ca5
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x449d80
test byte [esi + 0x15], 8
je 0x449d77
mov eax, esi
call fcn.004011b0
add dword [esi + 0xc], 0xfffffffe
lea eax, [esi + 0xc]
jmp 0x449d91
mov eax, 0x4bcd08
add dword [eax], 0xfffffffe
jmp 0x449d91
mov byte [edi], 0
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x16], 0
je 0x449dee
cmp dword [esp + 0x2c], 0
je 0x449dee
push 0
push 1
mov ecx, edi
call fcn.00401270
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449db0
sub eax, edx
mov ebx, eax
cmp byte [edi + 0x17], cl
jne 0x449dc5
mov esi, dword [edi + 0xc]
jmp 0x449dc7
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x449ddf
test byte [esi + 0x15], 8
je 0x449dda
mov eax, esi
call fcn.004011b0
lea eax, [esi + 0xc]
jmp 0x449de4
mov eax, 0x4bcd08
mov dword [eax], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
cmp byte [edi + 0x17], 0
jne 0x449df9
mov eax, dword [edi + 0xc]
jmp 0x449dfb
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x449e1c
cmp dword [0x4bcb5c], 0
je 0x449e1c
push 1
mov ecx, 0x4bcb50
call fcn.004051c0
mov dword [esp + 0x1c], eax
jmp 0x449e28
and byte [eax + 0x15], 0x86
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
je 0x449e9d
mov esi, dword [0x4bbcb4]
cmp byte [esi + 0x17], 0
jne 0x449e40
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x449e56
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 al, byte [esi + 0x15]
and al, 0x9b
or al, 0x18
mov dword [esi], edi
mov dword [esi + 4], 0
mov byte [esi + 0x15], al
jns 0x449e78
mov eax, esi
call fcn.004011b0
and byte [esi + 0x15], 0x8f
jmp 0x449e9d
cmp dword [0x4bb610], 0
je 0x449e85
test al, 0x10
jne 0x449e92
cmp dword [0x4bb614], 0
je 0x449e9d
test al, 0x20
je 0x449e9d
test al, 8
je 0x449e9d
mov eax, esi
call fcn.004011b0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x449ec4
push eax
call fcn.00493368
mov eax, dword [esp + 0x40]
mov dword [0x4ba2b4], eax
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [0x4ba2b4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8