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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4d18bc]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, 1
mov dword [esp + 0x40], eax
push edi
mov dword [esp + 0x30], ecx
movzx eax, word [esi]
mov dword [esp + 0x3c], 0
mov dword [0x4d18bc], 0
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], 0xa
mov byte [0x4d18c5], 0
mov byte [0x4d18c4], 0
mov byte [0x4d17f7], 0
mov dword [0x4d18c0], 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
test ax, ax
je 0x43cfd5
mov ecx, eax
mov edi, ebx
push ecx
call fcn.004974c7
movzx eax, ax
add esp, 4
add eax, 0xffffffbd
cmp eax, 0x19
ja case.0x43ce7f.69
movzx eax, byte [eax + 0x43d6cc]
jmp dword [eax*4 + 0x43d6a4]
mov cx, word [esi + 2]
call fcn.0040ab40
cmp ax, 0x4c
jne 0x43cea6
mov al, 2
add esi, 2
mov byte [0x4d18c5], al
mov edi, ebx
jmp case.0x43ce7f.69
mov al, bl
mov edi, ebx
mov byte [0x4d18c5], al
jmp case.0x43ce7f.69
movzx eax, word [esi + 2]
mov edx, eax
test ax, ax
je case.0x43ce7f.69
add esi, 2
mov dword [esp + 0x1c], eax
jmp case.0x43ce7f.69
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x20
je case.0x43ce7f.70
cmp eax, 9
je case.0x43ce7f.70
mov edx, 0x4bfc0c
mov ecx, esi
call fcn.0040ab90
mov edi, eax
test edi, edi
jne 0x43cf09
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43cef7
sub ecx, edx
sar ecx, 1
lea edi, [esi + ecx*2]
mov eax, edi
mov ecx, 0x4d3ee0
sub eax, esi
push 0
sar eax, 1
push eax
push esi
call fcn.0041f590
mov ecx, eax
mov dword [0x4d18bc], ecx
test ecx, ecx
je 0x43d665
cmp byte [ecx + 0x3d], 0
jne 0x43d665
mov eax, dword [ecx + 0x10]
sub eax, 2
cmp eax, 1
ja 0x43d665
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x43d665
cmp word [eax + 0x14], 0
jne 0x43d665
lea esi, [edi - 2]
mov edi, ebx
jmp case.0x43ce7f.69
mov byte [0x4d18c4], bl
jmp case.0x43ce7f.69
lea eax, [esi + 2]
push eax
call fcn.00492a15
add esp, 4
cmp eax, 1
cmovl eax, edi
dec eax
mov dword [0x4d18c0], eax
jmp case.0x43ce7f.69
push 6
push str.Random
push esi
call fcn.00491336
add esp, 0xc
test eax, eax
jne 0x43cfa5
mov byte [esp + 0x13], bl
add esi, 0xa
jmp case.0x43ce7f.69
mov byte [0x4d17f7], bl
jmp case.0x43ce7f.69
xor eax, eax
mov byte [esp + 0x15], bl
mov dword [esp + 0x38], eax
jmp case.0x43ce7f.69
mov byte [esp + 0x16], bl
jmp case.0x43ce7f.69
mov byte [esp + 0x17], bl
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x43ce60
mov esi, dword [ebp + 8]
movzx edx, word [esi]
test dx, dx
je 0x43d665
mov ecx, dword [0x4d3d98]
mov dword [esp + 0x20], ecx
mov al, byte [ecx + 0x17]
test al, al
jne 0x43cffb
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x43d665
mov edi, ebx
mov ecx, esi
mov ebx, dword [esp + 0x1c]
nop dword [eax + eax]
cmp dx, bx
lea eax, [edi + 1]
cmovne eax, edi
add ecx, 2
mov edi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x43d010
mov ebx, ecx
sub ebx, esi
sar ebx, 1
mov dword [esp + 0x28], ebx
cmp byte [esp + 0x16], al
jne 0x43d06a
cmp ecx, esi
jbe 0x43d06a
mov eax, dword [esp + 0x1c]
cmp word [ecx - 2], ax
jne 0x43d06a
mov byte [esp + 0x14], 1
dec edi
mov al, byte [esp + 0x12]
cmp edi, 1
jne 0x43d098
mov ecx, dword [esp + 0x20]
push edi
push 0
push ebx
push esi
call fcn.00475930
mov ebx, eax
jmp 0x43d665
cmp word [esp + 0x1c], 0xa
jne 0x43d04c
push 0xa
push esi
call fcn.0048c759
add esp, 8
test eax, eax
je 0x43d04c
cmp eax, esi
jbe 0x43d04c
cmp word [eax - 2], 0xd
jne 0x43d04c
mov al, 1
mov byte [esp + 0x12], al
mov byte [esp + 0x14], al
jmp 0x43d050
cmp dword [0x4d18bc], 0
jne 0x43d0a5
test al, al
je 0x43d113
lea eax, [ebx*2 + 6]
push eax
call fcn.0048f3be
mov ecx, eax
add esp, 4
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x43d0da
mov ecx, dword [esp + 0x30]
push 0x4ac22c
push eax
push str.Out_of_memory.
call fcn.0042d1e0
mov ebx, eax
jmp 0x43d665
lea eax, [ebx*2 + 2]
push eax
push esi
push ecx
call fcn.0048ea30
mov ecx, dword [esp + 0x48]
add esp, 0xc
cmp byte [esp + 0x12], 0
mov esi, ecx
je 0x43d113
mov eax, dword [0x4c6034]
mov dword [ecx + ebx*2], eax
mov ax, word [0x4c6038]
mov word [ecx + ebx*2 + 4], ax
add ebx, 2
mov dword [esp + 0x28], ebx
xor ecx, ecx
lea eax, [edi + 1]
cmp byte [esp + 0x13], cl
setne cl
lea ecx, [ecx*4 + 4]
imul eax, ecx
mov dword [esp + 0x2c], ecx
push eax
call fcn.0048f3be
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
jne 0x43d159
mov ecx, dword [esp + 0x30]
push 0x4ac22c
push eax
push str.Out_of_memory.
call fcn.0042d1e0
mov ebx, eax
jmp 0x43d665
mov edx, dword [0x4d5620]
mov edi, eax
mov dword [eax], esi
xor ecx, ecx
movzx eax, word [esi]
mov dword [esp + 0x18], ecx
test ax, ax
je 0x43d1fd
mov bl, byte [esp + 0x13]
mov ecx, eax
nop dword [eax + eax]
cmp cx, word [esp + 0x1c]
jne 0x43d1e7
inc dword [esp + 0x18]
xor eax, eax
mov word [esi], ax
test bl, bl
je 0x43d1de
sub dword [0x4cffbc], 1
jne 0x43d1a8
call fcn.00413000
mov edx, dword [0x4d5620]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4d5620], 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
add edi, dword [esp + 0x2c]
lea eax, [esi + 2]
mov dword [edi], eax
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x43d180
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp byte [esp + 0x14], 0
mov al, byte [esp + 0x13]
jne 0x43d25f
inc ecx
mov dword [esp + 0x18], ecx
test al, al
je 0x43d25f
sub dword [0x4cffbc], 1
jne 0x43d225
call fcn.00413000
mov edx, dword [0x4d5620]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0xb
add edx, 4
xor ecx, eax
mov dword [0x4d5620], 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 [0x4d18bc], 0
je 0x43d26f
mov eax, 0x43cc50
jmp 0x43d28c
test al, al
je 0x43d27a
mov eax, 0x43cc40
jmp 0x43d28c
cmp byte [esp + 0x17], 0
mov eax, 0x43ca40
mov ecx, 0x43cbb0
cmovne eax, ecx
mov edi, dword [esp + 0x18]
push eax
push dword [esp + 0x30]
push edi
push dword [esp + 0x40]
call fcn.00491680
mov esi, dword [esp + 0x30]
add esp, 0x10
mov ecx, esi
push 1
push 0
push ebx
push 0
call fcn.00475930
xor ebx, ebx
cmp eax, 1
jne 0x43d665
lea eax, [edi - 1]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edi
cmp byte [esi + 0x17], bl
jne 0x43d2da
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43d2e7
mov ecx, esi
call fcn.00401b40
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43d2ff
test byte [esi + 0x15], 4
je 0x43d2fa
push esi
call fcn.0042db20
mov esi, dword [esi + 8]
jmp 0x43d34f
cmp al, 2
jne 0x43d34a
mov esi, dword [0x4d3e90]
test esi, esi
jne 0x43d34f
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x43d332
push 0xf
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
mov esi, 0x4ac220
mov eax, 0x4ac22c
cmove esi, eax
jmp 0x43d34f
push 0
call fcn.004053d0
cmp eax, 0xffffffff
mov esi, 0x4ac22c
cmovne esi, dword [0x4d3e8c]
jmp 0x43d34f
mov esi, 0x4d3e58
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x18], ebx
jbe 0x43d46e
nop dword [eax]
cmp byte [esp + 0x15], 0
je 0x43d41b
test ebx, ebx
je 0x43d41b
cmp byte [0x4d18c4], 0
je 0x43d49f
cmp dword [0x4d18c0], 0
jne 0x43d49f
mov edi, dword [edi]
mov ecx, edi
call fcn.0040ded0
test al, al
je 0x43d3b6
push 0x10
push 0
push edi
call fcn.00492e1e
add esp, 0xc
mov ecx, eax
call fcn.004a50d0
movsd qword [esp + 0x48], xmm0
jmp 0x43d3cf
push edi
call fcn.00496a7f
fstp qword [esp + 0x4c]
movsd xmm0, qword [esp + 0x4c]
add esp, 4
movsd qword [esp + 0x48], xmm0
mov ecx, ebx
call fcn.0040ded0
test al, al
je 0x43d3f0
push 0x10
push 0
push ebx
call fcn.00492e1e
add esp, 0xc
mov ecx, eax
call fcn.004a50d0
jmp 0x43d403
push ebx
call fcn.00496a7f
fstp qword [esp + 0x54]
movsd xmm0, qword [esp + 0x54]
add esp, 4
movsd xmm1, qword [esp + 0x48]
mov edi, dword [esp + 0x30]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x43d503
mov ecx, dword [edi]
movzx eax, word [ecx]
test ax, ax
je 0x43d43a
mov edx, eax
add ecx, 2
mov word [esi], dx
add esi, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x43d427
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x40]
jb 0x43d44b
cmp byte [esp + 0x14], 0
je 0x43d455
mov ecx, dword [esp + 0x1c]
mov word [esi], cx
add esi, 2
mov ebx, dword [edi]
add edi, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
cmp eax, dword [esp + 0x18]
jb 0x43d360
push dword [esp + 0x34]
call fcn.004914e4
mov ebx, dword [esp + 0x24]
xor eax, eax
add esp, 4
cmp byte [esp + 0x12], al
je 0x43d54f
mov word [esi - 4], ax
cmp byte [ebx + 0x17], al
jne 0x43d528
mov esi, dword [ebx + 0xc]
jmp 0x43d52a
cmp byte [0x4d18c5], 0
mov eax, dword [edi]
jne 0x43d4b6
push ebx
push eax
call fcn.0048f253
add esp, 8
jmp 0x43d4fb
cmp byte [0x4d18c5], 2
jne 0x43d4c9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x43d4fb
mov ecx, ebx
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43d4f6
test dx, dx
je 0x43d4f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43d4f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x43d4d0
xor eax, eax
jmp 0x43d4fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43d41b
inc dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x40]
jne 0x43d457
cmp byte [esp + 0x14], 0
jne 0x43d457
sub esi, 2
jmp 0x43d457
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x43d545
test byte [esi + 0x15], 8
je 0x43d53d
mov ecx, esi
call fcn.00401b40
add esi, 0xc
add dword [esi], 0xfffffffc
jmp 0x43d552
mov esi, 0x4d5644
add dword [esi], 0xfffffffc
jmp 0x43d552
mov word [esi], ax
cmp byte [esp + 0x15], 0
je 0x43d635
cmp dword [esp + 0x24], 0
je 0x43d635
cmp byte [ebx + 0x17], 0
jne 0x43d573
mov esi, dword [ebx + 0xc]
jmp 0x43d575
mov esi, ebx
test byte [esi + 0x15], 8
je 0x43d582
mov ecx, esi
call fcn.00401b40
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43d59a
test byte [esi + 0x15], 4
je 0x43d595
push esi
call fcn.0042db20
mov esi, dword [esi + 8]
jmp 0x43d5e8
cmp al, 2
jne 0x43d5e3
mov esi, dword [0x4d3e90]
test esi, esi
jne 0x43d5e8
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x43d5cb
push 0xf
call esi
test eax, eax
mov esi, 0x4ac220
mov eax, 0x4ac22c
cmove esi, eax
jmp 0x43d5e8
push 0
call fcn.004053d0
cmp eax, 0xffffffff
mov esi, 0x4ac22c
cmovne esi, dword [0x4d3e8c]
jmp 0x43d5e8
mov esi, 0x4d3e58
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43d5f0
sub esi, ecx
sar esi, 1
cmp byte [ebx + 0x17], al
jne 0x43d609
mov edi, dword [ebx + 0xc]
jmp 0x43d60b
mov edi, ebx
cmp byte [edi + 0x17], 1
jne 0x43d623
test byte [edi + 0x15], 8
je 0x43d61e
mov ecx, edi
call fcn.00401b40
add edi, 0xc
jmp 0x43d628
mov edi, 0x4d5644
lea eax, [esi + esi]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
cmp byte [ebx + 0x17], 0
jne 0x43d63e
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x43d65c
cmp dword [0x4d3e90], 0
je 0x43d65c
push ecx
mov ecx, 0x4d3e84
call fcn.00405670
mov ebx, eax
jmp 0x43d665
and byte [ebx + 0x15], 0x86
mov ebx, 1
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
je 0x43d67e
mov ecx, dword [0x4d166c]
push 0x18
push 0
push eax
call fcn.00401ac0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43d68f
push eax
call fcn.004914e4
add esp, 4
mov eax, dword [esp + 0x44]
pop edi
mov dword [0x4d18bc], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8