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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4db9b4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], 0
cmp word [esi], 0
mov dword [esp + 0x44], eax
mov dword [0x4db9b4], 0
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], 0xa
mov byte [0x4db9be], 0
mov byte [0x4db9bd], 0
mov byte [0x4db9bc], 0
mov dword [0x4db9b8], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x15], 0
je 0x443a50
mov ebx, 1
nop word [eax + eax]
movzx eax, word [esi]
push eax
call fcn.0049e62e
movzx eax, ax
add esp, 4
add eax, 0xffffffbd
cmp eax, 0x19
ja case.0x4438d2.69
movzx eax, byte [eax + 0x444060]
jmp dword [eax*4 + 0x444038]
movzx eax, word [esi + 2]
mov edi, eax
test edi, 0xffffff80
jne 0x4438f9
push 2
push edi
call fcn.00498ea3
add esp, 8
test eax, eax
je 0x4438f9
and edi, 0xffffffdf
mov ebx, 1
cmp di, 0x4c
jne 0x443913
add esi, 2
mov byte [0x4db9be], 2
jmp case.0x4438d2.69
mov byte [0x4db9be], 1
jmp case.0x4438d2.69
cmp word [esi + 2], 0
lea eax, [esi + 2]
je case.0x4438d2.69
mov esi, eax
movzx eax, word [esi]
test ax, ax
je case.0x4438d2.69
mov dword [esp + 0x1c], eax
jmp case.0x4438d2.69
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je case.0x4438d2.70
cmp eax, 9
je case.0x4438d2.70
mov edx, 0x4c89b4
mov ecx, esi
call fcn.004053e1
mov edi, eax
test edi, edi
jne 0x443982
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443970
sub ecx, edx
sar ecx, 1
lea edi, [esi + ecx*2]
mov eax, edi
mov ecx, 0x4de0d0
sub eax, esi
push 0
sar eax, 1
push eax
push esi
call fcn.00427570
mov dword [0x4db9b4], eax
test eax, eax
je 0x443ff5
cmp byte [eax + 0x3d], 0
jne 0x443ff5
mov ecx, dword [eax + 0x10]
cmp ecx, 2
jl 0x443ff5
cmp ecx, 3
jg 0x443ff5
mov eax, dword [eax + 0xc]
cmp word [eax + 4], 0
jne 0x443ff5
cmp word [eax + 0x14], 0
jne 0x443ff5
lea esi, [edi - 2]
jmp case.0x4438d2.69
mov byte [0x4db9bd], 1
jmp case.0x4438d2.69
lea eax, [esi + 2]
push eax
call fcn.00495cca
add esp, 4
cmp eax, 1
cmovl eax, ebx
dec eax
mov dword [0x4db9b8], eax
jmp case.0x4438d2.69
push 6
push str.Random
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne 0x443a21
mov byte [esp + 0x13], 1
add esi, 0xa
jmp case.0x4438d2.69
mov byte [0x4db9bc], 1
jmp case.0x4438d2.69
xor eax, eax
mov byte [esp + 0x15], 1
mov dword [esp + 0x38], eax
jmp case.0x4438d2.69
mov byte [esp + 0x16], 1
jmp case.0x4438d2.69
mov byte [esp + 0x17], 1
add esi, 2
cmp word [esi], 0
jne 0x4438b0
mov esi, dword [ebp + 8]
movzx ecx, word [esi]
test cx, cx
je 0x443ff5
mov edx, dword [0x4ddf18]
mov dword [esp + 0x28], edx
mov al, byte [edx + 0x17]
test al, al
jne 0x443a76
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x443ff5
mov edi, 1
mov edx, esi
mov ebx, ecx
nop word [eax + eax]
add edx, 2
movzx ecx, bx
cmp cx, word [esp + 0x1c]
lea eax, [edi + 1]
cmovne eax, edi
movzx ebx, word [edx]
mov edi, eax
test bx, bx
jne 0x443a90
mov ebx, edx
sub ebx, esi
sar ebx, 1
cmp byte [esp + 0x16], 0
mov dword [esp + 0x30], ebx
jne 0x443aee
cmp edx, esi
jbe 0x443aee
mov eax, dword [esp + 0x1c]
cmp word [edx - 2], ax
jne 0x443aee
mov byte [esp + 0x14], 1
dec edi
mov al, byte [esp + 0x12]
cmp edi, 1
jne 0x443b1c
mov ecx, dword [esp + 0x28]
push edi
push 0
push ebx
push esi
call fcn.0047b2f0
mov ebx, eax
jmp 0x443ffa
cmp word [esp + 0x1c], 0xa
jne 0x443ad0
push 0xa
push esi
call fcn.00492ca4
add esp, 8
test eax, eax
je 0x443ad0
cmp eax, esi
jbe 0x443ad0
cmp word [eax - 2], 0xd
jne 0x443ad0
mov al, 1
mov byte [esp + 0x12], al
mov byte [esp + 0x14], al
jmp 0x443ad4
cmp dword [0x4db9b4], 0
jne 0x443b29
test al, al
je 0x443b97
lea eax, [ebx*2 + 6]
push eax
call fcn.00495d48
mov ecx, eax
add esp, 4
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x443b5e
mov ecx, dword [esp + 0x34]
push 0x4c602c
push eax
push str.Out_of_memory.
call fcn.004351a0
mov ebx, eax
jmp 0x443ffa
lea eax, [ebx*2 + 2]
push eax
push esi
push ecx
call fcn.004ab450
mov ecx, dword [esp + 0x48]
add esp, 0xc
cmp byte [esp + 0x12], 0
mov esi, ecx
je 0x443b97
mov eax, dword [0x4d0128]
mov dword [ecx + ebx*2], eax
mov ax, word [0x4d012c]
mov word [ecx + ebx*2 + 4], ax
add ebx, 2
mov dword [esp + 0x30], ebx
xor eax, eax
cmp byte [esp + 0x13], al
setne al
lea ecx, [eax*4 + 4]
lea eax, [edi + 1]
mov dword [esp + 0x20], ecx
imul eax, ecx
push eax
call fcn.00495d48
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x443bdf
mov ecx, dword [esp + 0x34]
push 0x4c602c
push eax
push str.Out_of_memory.
call fcn.004351a0
mov ebx, eax
jmp 0x443ffa
mov edx, dword [0x4dee2c]
xor eax, eax
mov dword [ecx], esi
mov edi, ecx
mov dword [esp + 0x18], eax
cmp word [esi], ax
je 0x443c7a
mov bl, byte [esp + 0x13]
mov ecx, dword [esp + 0x1c]
cmp word [esi], cx
jne 0x443c6d
inc dword [esp + 0x18]
xor eax, eax
mov word [esi], ax
test bl, bl
je 0x443c60
sub dword [0x4d9bc8], 1
jne 0x443c26
call fcn.00417810
mov edx, dword [0x4dee2c]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4dee2c], 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 ecx, dword [esp + 0x1c]
shr eax, 1
mov dword [edi + 4], eax
add edi, dword [esp + 0x20]
lea eax, [esi + 2]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add esi, 2
cmp word [esi], 0
jne 0x443c00
mov ebx, dword [esp + 0x30]
cmp byte [esp + 0x14], 0
jne 0x443cd8
inc eax
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x13]
test al, al
je 0x443cdc
sub dword [0x4d9bc8], 1
jne 0x443ca2
call fcn.00417810
mov edx, dword [0x4dee2c]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4dee2c], 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 + 0x13]
cmp dword [0x4db9b4], 0
je 0x443cec
push 0x4436e0
jmp 0x443d0a
test al, al
je 0x443cf7
push 0x4436d0
jmp 0x443d0a
cmp byte [esp + 0x17], 0
mov eax, 0x4434d0
mov ecx, 0x443640
cmovne eax, ecx
push eax
push dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x30]
call fcn.0049d9f0
mov esi, dword [esp + 0x38]
add esp, 0x10
mov ecx, esi
push 1
push 0
push ebx
push 0
call fcn.0047b2f0
xor ebx, ebx
cmp eax, 1
jne 0x443ffa
lea eax, [edi - 1]
mov dword [esp + 0x2c], ebx
mov edi, dword [esp + 0x24]
mov ecx, esi
push ebx
push 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edi
call fcn.00401490
mov esi, eax
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x18], ebx
jbe 0x443e7a
nop dword [eax]
cmp byte [esp + 0x15], 0
je 0x443e2b
test ebx, ebx
je 0x443e2b
cmp byte [0x4db9bd], 0
je 0x443eab
cmp dword [0x4db9b8], 0
jne 0x443eab
mov edi, dword [edi]
mov ecx, edi
call fcn.00403e00
test al, al
je 0x443dc6
push 0x10
push 0
push edi
call fcn.00495b7d
add esp, 0xc
mov ecx, eax
call fcn.004ac090
movsd qword [esp + 0x48], xmm0
jmp 0x443ddf
push edi
call fcn.0049d875
fstp qword [esp + 0x4c]
movsd xmm0, qword [esp + 0x4c]
add esp, 4
movsd qword [esp + 0x48], xmm0
mov ecx, ebx
call fcn.00403e00
test al, al
je 0x443e00
push 0x10
push 0
push ebx
call fcn.00495b7d
add esp, 0xc
mov ecx, eax
call fcn.004ac090
jmp 0x443e13
push ebx
call fcn.0049d875
fstp qword [esp + 0x54]
movsd xmm0, qword [esp + 0x54]
add esp, 4
movsd xmm1, qword [esp + 0x48]
mov edi, dword [esp + 0x34]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x443f18
mov eax, dword [edi]
movzx ecx, word [eax]
test cx, cx
je 0x443e46
mov word [esi], cx
lea eax, [eax + 2]
movzx ecx, word [eax]
add esi, 2
test cx, cx
jne 0x443e35
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x40]
jb 0x443e57
cmp byte [esp + 0x14], 0
je 0x443e61
mov ecx, dword [esp + 0x1c]
mov word [esi], cx
add esi, 2
mov ebx, dword [edi]
add edi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
cmp eax, dword [esp + 0x18]
jb 0x443d70
push dword [esp + 0x24]
call fcn.00495d53
mov ebx, dword [esp + 0x2c]
xor eax, eax
add esp, 4
cmp byte [esp + 0x12], al
je 0x443f64
mov word [esi - 4], ax
cmp byte [ebx + 0x17], al
jne 0x443f3d
mov esi, dword [ebx + 0xc]
jmp 0x443f3f
cmp byte [0x4db9be], 0
jne 0x443ec1
push ebx
push dword [edi]
call fcn.0049466a
add esp, 8
jmp 0x443f0b
cmp byte [0x4db9be], 2
jne 0x443ed5
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x443f0b
mov eax, dword [edi]
mov ecx, ebx
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x443f06
test dx, dx
je 0x443f02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x443f06
add eax, 4
add ecx, 4
test dx, dx
jne 0x443ee0
xor eax, eax
jmp 0x443f0b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
jne 0x443e2b
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x40]
jne 0x443e63
cmp byte [esp + 0x14], 0
jne 0x443e63
sub esi, 2
jmp 0x443e63
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x443f5a
test byte [esi + 0x15], 8
je 0x443f52
mov ecx, esi
call fcn.004013b0
add esi, 0xc
add dword [esi], 0xfffffffc
jmp 0x443f67
mov esi, 0x4db430
add dword [esi], 0xfffffffc
jmp 0x443f67
mov word [esi], ax
cmp byte [esp + 0x15], 0
je 0x443fca
cmp dword [esp + 0x2c], 0
je 0x443fca
push 0
push 1
mov ecx, ebx
call fcn.00401490
mov esi, eax
lea eax, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x443f85
sub esi, eax
sar esi, 1
cmp byte [ebx + 0x17], cl
jne 0x443f9e
mov edi, dword [ebx + 0xc]
jmp 0x443fa0
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x443fb8
test byte [edi + 0x15], 8
je 0x443fb3
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x443fbd
mov edi, 0x4db430
lea eax, [esi + esi]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
cmp byte [ebx + 0x17], 0
jne 0x443fd3
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x443ff1
cmp dword [0x4dec1c], 0
je 0x443ff1
push ecx
mov ecx, 0x4dec10
call fcn.00404e90
mov ebx, eax
jmp 0x443ffa
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
je 0x444013
mov ecx, dword [0x4db768]
push 0x18
push 0
push eax
call fcn.00401330
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x444024
push eax
call fcn.00495d53
add esp, 4
mov eax, dword [esp + 0x44]
pop edi
mov dword [0x4db9b4], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8