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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4ad23c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bl, 0xa
mov dword [esp + 0x28], ecx
xor ch, ch
push edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], eax
mov dword [0x4ad23c], 0
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x12], bl
mov byte [0x4ad2a0], 0
mov byte [0x4ad29b], 0
mov byte [0x4ad29a], 0
mov dword [0x4ad29c], 0
mov byte [esp + 0x11], ch
mov byte [esp + 0x15], ch
mov byte [esp + 0x13], ch
mov byte [esp + 0x17], ch
mov byte [esp + 0x14], ch
mov byte [esp + 0x16], ch
cmp byte [esi], ch
je 0x43b265
mov edi, 1
movsx eax, byte [esi]
push eax
call fcn.00486e4d
add eax, 0xffffffbd
add esp, 4
cmp eax, 0x19
ja case.0x43b0e1.69
movzx eax, byte [eax + 0x43b7e0]
jmp dword [eax*4 + 0x43b7b8]
mov al, byte [esi + 1]
movzx ebx, al
test ebx, 0xffffff80
jne 0x43b108
push 2
push ebx
call fcn.00485bac
add esp, 8
test eax, eax
je 0x43b108
and ebx, 0xffffffdf
mov ch, byte [esp + 0x11]
cmp bl, 0x4c
mov bl, byte [esp + 0x12]
mov edi, 1
jne 0x43b127
inc esi
mov byte [0x4ad2a0], 2
jmp 0x43b25b
mov byte [0x4ad2a0], 1
jmp 0x43b25b
cmp byte [esi + 1], 0
lea eax, [esi + 1]
je case.0x43b0e1.69
mov ch, byte [esp + 0x11]
mov esi, eax
mov al, byte [esi]
test al, al
je 0x43b25b
mov bl, al
mov byte [esp + 0x12], bl
jmp 0x43b25b
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je case.0x43b0e1.70
cmp al, 9
je case.0x43b0e1.70
mov edx, 0x49e8b4
mov ecx, esi
call fcn.00409840
mov edi, eax
test edi, edi
jne 0x43b18c
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b180
sub ecx, edx
lea edi, [esi + ecx]
push 0
mov eax, edi
mov ecx, 0x4ae9b0
sub eax, esi
push eax
push esi
call fcn.0041efb0
mov dword [0x4ad23c], eax
test eax, eax
je 0x43b718
cmp byte [eax + 0x3d], 0
jne 0x43b718
mov ecx, dword [eax + 0x10]
cmp ecx, 2
jl 0x43b718
cmp ecx, 3
jg 0x43b718
mov eax, dword [eax + 0xc]
cmp word [eax + 4], 0
jne 0x43b718
cmp word [eax + 0x14], 0
jne 0x43b718
lea esi, [edi - 1]
mov edi, 1
jmp case.0x43b0e1.69
mov byte [0x4ad29b], 1
jmp case.0x43b0e1.69
lea eax, [esi + 1]
push eax
call fcn.00485ca0
add esp, 4
cmp eax, 1
cmovl eax, edi
dec eax
mov dword [0x4ad29c], eax
jmp case.0x43b0e1.69
push 6
push str.Random
push esi
call fcn.00484c8d
mov ch, byte [esp + 0x1d]
add esp, 0xc
test eax, eax
jne 0x43b232
mov byte [esp + 0x14], 1
add esi, 5
jmp 0x43b25b
mov byte [0x4ad29a], 1
jmp 0x43b25b
mov byte [esp + 0x16], 1
mov dword [esp + 0x30], 0
jmp case.0x43b0e1.69
mov ch, 1
mov byte [esp + 0x11], ch
jmp 0x43b25b
mov byte [esp + 0x17], 1
mov ch, byte [esp + 0x11]
inc esi
cmp byte [esi], 0
jne 0x43b0c2
mov esi, dword [ebp + 8]
mov cl, byte [esi]
test cl, cl
je 0x43b718
mov edx, dword [0x4ae860]
mov dword [esp + 0x1c], edx
mov al, byte [edx + 0x17]
test al, al
jne 0x43b289
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x43b718
mov edi, 1
mov eax, esi
cmp cl, bl
jne 0x43b29d
inc edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43b298
mov ebx, eax
sub ebx, esi
mov dword [esp + 0x28], ebx
test ch, ch
jne 0x43b2e0
cmp eax, esi
jbe 0x43b2e0
mov cl, byte [esp + 0x12]
cmp byte [eax - 1], cl
jne 0x43b2e0
mov byte [esp + 0x15], 1
dec edi
mov al, byte [esp + 0x13]
cmp edi, 1
jne 0x43b310
push edi
push 0
push ebx
push esi
mov ecx, edx
call fcn.004744e0
mov ebx, eax
jmp 0x43b71d
cmp byte [esp + 0x12], 0xa
jne 0x43b2c4
push 0xa
push esi
call fcn.004855e4
mov edx, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x43b2c4
cmp eax, esi
jbe 0x43b2c4
cmp byte [eax - 1], 0xd
jne 0x43b2c4
mov al, 1
mov byte [esp + 0x13], al
mov byte [esp + 0x15], al
jmp 0x43b2c8
cmp dword [0x4ad23c], 0
jne 0x43b31d
test al, al
je 0x43b383
lea eax, [ebx + 3]
push eax
call fcn.00484535
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x43b34e
mov ecx, dword [esp + 0x2c]
push 0x49bc4d
push eax
push str.Out_of_memory.
call fcn.0042cbc0
mov ebx, eax
jmp 0x43b71d
lea eax, [ebx + 1]
push eax
push esi
push ecx
call fcn.0048cfd0
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp byte [esp + 0x13], 0
mov esi, ecx
je 0x43b383
mov ax, word [0x4a1f00]
mov word [ebx + ecx], ax
mov al, byte [0x4a1f02]
mov byte [ebx + ecx + 2], al
add ebx, 2
mov dword [esp + 0x28], ebx
xor eax, eax
cmp byte [esp + 0x14], al
setne al
lea ecx, [eax*4 + 4]
lea eax, [edi + 1]
mov dword [esp + 0x20], ecx
imul eax, ecx
push eax
call fcn.00484535
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x43b3cb
mov ecx, dword [esp + 0x2c]
push 0x49bc4d
push eax
push str.Out_of_memory.
call fcn.0042cbc0
mov ebx, eax
jmp 0x43b71d
mov edx, dword [0x4afbf0]
xor eax, eax
mov dword [ecx], esi
mov edi, ecx
mov dword [esp + 0x18], eax
cmp byte [esi], al
je 0x43b465
mov ebx, dword [esp + 0x20]
mov cl, byte [esp + 0x12]
jmp 0x43b3f0
cmp byte [esi], cl
jne 0x43b45b
inc eax
mov byte [esi], 0
cmp byte [esp + 0x14], 0
mov dword [esp + 0x18], eax
je 0x43b450
dec dword [0x4ab374]
jne 0x43b416
call fcn.00412e30
mov edx, dword [0x4afbf0]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4afbf0], edx
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 cl, byte [esp + 0x12]
shr eax, 1
mov dword [edi + 4], eax
add edi, ebx
lea eax, [esi + 1]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
inc esi
cmp byte [esi], 0
jne 0x43b3f0
mov ebx, dword [esp + 0x28]
cmp byte [esp + 0x15], 0
jne 0x43b4c2
inc eax
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x14]
test al, al
je 0x43b4c6
dec dword [0x4ab374]
jne 0x43b48c
call fcn.00412e30
mov edx, dword [0x4afbf0]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4afbf0], edx
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
shr eax, 1
mov dword [edi + 4], eax
mov al, byte [esp + 0x14]
cmp dword [0x4ad23c], 0
je 0x43b4d6
push 0x43aeb0
jmp 0x43b4f4
test al, al
je 0x43b4e1
push 0x43aea0
jmp 0x43b4f4
cmp byte [esp + 0x17], 0
mov eax, 0x43ad60
mov ecx, 0x43ae30
cmovne eax, ecx
push eax
push dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x30]
call fcn.004857a0
mov esi, dword [esp + 0x2c]
add esp, 0x10
mov ecx, esi
push 1
push 0
push ebx
push 0
call fcn.004744e0
cmp eax, 1
je 0x43b527
xor ebx, ebx
jmp 0x43b71d
mov ebx, dword [esp + 0x24]
lea eax, [edi - 1]
xor edi, edi
mov dword [esp + 0x38], eax
push edi
push 1
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00401490
mov esi, eax
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x18], edi
jbe 0x43b5e9
cmp byte [esp + 0x16], 0
je 0x43b5a3
test edi, edi
je 0x43b5a3
cmp byte [0x4ad29b], 0
je 0x43b613
cmp dword [0x4ad29c], 0
jne 0x43b613
mov ecx, dword [ebx]
call fcn.00413430
mov ecx, edi
movsd qword [esp + 0x40], xmm0
call fcn.00413430
movsd xmm1, qword [esp + 0x40]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x43b647
mov eax, dword [ebx]
mov cl, byte [eax]
test cl, cl
je 0x43b5bc
jmp 0x43b5b0
mov byte [esi], cl
lea eax, [eax + 1]
mov cl, byte [eax]
inc esi
test cl, cl
jne 0x43b5b0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jb 0x43b5cd
cmp byte [esp + 0x15], 0
je 0x43b5d4
mov cl, byte [esp + 0x12]
mov byte [esi], cl
inc esi
mov edi, dword [ebx]
add ebx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x18]
jb 0x43b556
push dword [esp + 0x24]
call fcn.004843d4
mov ebx, dword [esp + 0x20]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x43b68d
mov byte [esi - 2], 0
cmp byte [ebx + 0x17], 0
jne 0x43b666
mov esi, dword [ebx + 0xc]
jmp 0x43b668
mov al, byte [0x4ad2a0]
push edi
push dword [ebx]
test al, al
jne 0x43b626
call fcn.00484212
jmp 0x43b637
cmp al, 2
jne 0x43b632
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x43b63a
call fcn.0048440c
add esp, 8
test eax, eax
setne al
test al, al
jne 0x43b5a3
inc dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jne 0x43b5d6
cmp byte [esp + 0x15], 0
jne 0x43b5d6
dec esi
jmp 0x43b5d6
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x43b683
test byte [esi + 0x15], 8
je 0x43b67b
mov ecx, esi
call fcn.004013b0
add esi, 0xc
add dword [esi], 0xfffffffe
jmp 0x43b690
mov esi, 0x4afc18
add dword [esi], 0xfffffffe
jmp 0x43b690
mov byte [esi], 0
cmp byte [esp + 0x16], 0
je 0x43b6ec
cmp dword [esp + 0x28], 0
je 0x43b6ec
push 0
push 1
mov ecx, ebx
call fcn.00401490
mov esi, eax
lea eax, [esi + 1]
mov edi, edi
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x43b6b0
sub esi, eax
cmp byte [ebx + 0x17], cl
jne 0x43b6c3
mov edi, dword [ebx + 0xc]
jmp 0x43b6c5
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x43b6dd
test byte [edi + 0x15], 8
je 0x43b6d8
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x43b6e2
mov edi, 0x4afc18
mov eax, dword [esp + 0x28]
mov dword [edi], esi
mov dword [esp + 0x30], eax
cmp byte [ebx + 0x17], 0
jne 0x43b6f5
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x43b714
cmp dword [0x4af02c], 0
je 0x43b714
push 1
mov ecx, 0x4af020
call fcn.004048a0
mov ebx, eax
jmp 0x43b71d
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
je 0x43b790
mov esi, dword [0x4ad0c8]
cmp byte [esi + 0x17], 0
jne 0x43b735
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x43b749
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x8b
mov dword [esi], edi
or al, 0x18
mov dword [esi + 4], 0
mov byte [esi + 0x15], al
jns 0x43b76b
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x43b790
cmp dword [0x4ad0ec], 0
je 0x43b778
test al, 0x10
jne 0x43b785
cmp dword [0x4ad0e8], 0
je 0x43b790
test al, 0x20
je 0x43b790
test al, 8
je 0x43b790
mov ecx, esi
call fcn.004013b0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43b7a1
push eax
call fcn.004843d4
add esp, 4
mov eax, dword [esp + 0x3c]
pop edi
mov dword [0x4ad23c], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8