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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4ab0e4]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [0x4ab0e4], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x12], 0xa
mov byte [0x4ab0ec], bl
mov byte [0x4ab0e3], bl
mov byte [0x4ab0e2], bl
mov dword [0x4ab0e8], 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 0x43da70
movsx ecx, byte [esi]
push ecx
call fcn.00489737
add eax, 0xffffffbd
add esp, 4
cmp eax, 0x19
ja case.0x43d90f.69
movzx edx, byte [eax + 0x43e314]
jmp dword [edx*4 + 0x43e2ec]
movzx edi, byte [esi + 1]
test edi, 0xffffff80
jne 0x43d934
push 2
push edi
call fcn.004883de
add esp, 8
cmp eax, ebx
je 0x43d934
and edi, 0xffffffdf
mov eax, edi
cmp al, 0x4c
jne 0x43d947
inc esi
mov byte [0x4ab0ec], 2
jmp case.0x43d90f.69
mov byte [0x4ab0ec], 1
jmp case.0x43d90f.69
cmp byte [esi + 1], 0
je case.0x43d90f.69
mov al, byte [esi + 1]
inc esi
test al, al
je case.0x43d90f.69
mov byte [esp + 0x12], al
jmp case.0x43d90f.69
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je case.0x43d90f.70
cmp al, 9
je case.0x43d90f.70
mov edi, 0x49c14c
mov eax, esi
call fcn.00409380
mov edi, eax
cmp edi, ebx
jne 0x43d9a1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d995
sub eax, edx
lea edi, [esi + eax]
push ebx
mov eax, edi
sub eax, esi
push eax
push esi
mov ecx, 0x4ad268
call fcn.00420ab0
mov ecx, eax
mov dword [0x4ab0e4], ecx
cmp ecx, ebx
je 0x43e238
cmp byte [ecx + 0x3d], 0
jne 0x43e238
mov eax, dword [ecx + 0x10]
cmp eax, 2
jl 0x43e238
cmp eax, 3
jg 0x43e238
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x43e238
cmp word [eax + 0x14], 0
jne 0x43e238
lea esi, [edi - 1]
xor ebx, ebx
jmp case.0x43d90f.69
mov byte [0x4ab0e3], 1
jmp case.0x43d90f.69
lea ecx, [esi + 1]
push ecx
call fcn.00488426
add esp, 4
cmp eax, 1
jge 0x43da20
mov eax, 1
dec eax
mov dword [0x4ab0e8], eax
jmp case.0x43d90f.69
push 6
push 0x49b5cc
push esi
call fcn.00487920
add esp, 0xc
test eax, eax
jne 0x43da46
mov byte [esp + 0x13], 1
add esi, 5
jmp case.0x43d90f.69
mov byte [0x4ab0e2], 1
jmp case.0x43d90f.69
mov byte [esp + 0x16], 1
mov dword [esp + 0x30], ebx
jmp case.0x43d90f.69
mov byte [esp + 0x17], 1
jmp case.0x43d90f.69
mov byte [esp + 0x18], 1
inc esi
cmp byte [esi], 0
jne 0x43d8f0
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
test cl, cl
je 0x43e238
mov ebx, dword [0x4ac218]
mov al, byte [ebx + 0x17]
mov dword [esp + 0x20], ebx
test al, al
jne 0x43da94
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x43e238
mov edi, 1
mov eax, edx
cmp cl, byte [esp + 0x12]
jne 0x43daaa
inc edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43daa3
mov esi, eax
mov ecx, edx
sub esi, ecx
cmp byte [esp + 0x17], 0
mov dword [esp + 0x2c], esi
jne 0x43dad3
cmp eax, ecx
jbe 0x43dad3
mov cl, byte [eax - 1]
cmp cl, byte [esp + 0x12]
jne 0x43dad3
dec edi
jmp 0x43daf9
cmp byte [esp + 0x12], 0xa
jne 0x43dafe
push 0xa
push edx
call fcn.00487e91
add esp, 8
test eax, eax
je 0x43dafe
cmp eax, dword [ebp + 0xc]
jbe 0x43dafe
cmp byte [eax - 1], 0xd
jne 0x43dafe
mov byte [esp + 0x15], 1
mov byte [esp + 0x14], 1
cmp edi, 1
jne 0x43db1a
mov eax, dword [ebp + 0xc]
push edi
push 0
push esi
push eax
push ebx
call fcn.00476c10
mov dword [esp + 0x1c], eax
jmp 0x43e238
cmp dword [0x4ab0e4], 0
jne 0x43db2a
cmp byte [esp + 0x15], 0
je 0x43db93
lea ecx, [esi + 3]
push ecx
call fcn.00487059
mov ebx, eax
add esp, 4
mov dword [esp + 0x38], ebx
test ebx, ebx
jne 0x43db5c
mov ecx, dword [ebp + 8]
push 0x49a8ad
push eax
push 0x49c0a0
call fcn.0042efe0
mov dword [esp + 0x1c], eax
jmp 0x43e238
mov eax, dword [ebp + 0xc]
lea edx, [esi + 1]
push edx
push eax
push ebx
call fcn.0048f790
add esp, 0xc
cmp byte [esp + 0x15], 0
mov dword [ebp + 0xc], ebx
je 0x43db93
mov cx, word [0x49fc40]
mov word [esi + ebx], cx
mov dl, byte [0x49fc42]
mov byte [esi + ebx + 2], dl
add esi, 2
mov dword [esp + 0x2c], esi
xor eax, eax
cmp byte [esp + 0x13], al
setne al
inc edi
inc eax
add eax, eax
add eax, eax
imul edi, eax
push edi
mov dword [esp + 0x28], eax
call fcn.00487059
mov ebx, eax
add esp, 4
mov dword [esp + 0x34], ebx
test ebx, ebx
jne 0x43dbd8
mov ecx, dword [ebp + 8]
push 0x49a8ad
push eax
push 0x49c0a0
call fcn.0042efe0
mov dword [esp + 0x1c], eax
jmp 0x43e238
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 0x43dc6b
mov al, byte [esi]
cmp al, byte [esp + 0x12]
jne 0x43dc64
add dword [esp + 0x1c], edx
cmp byte [esp + 0x13], 0
mov byte [esi], 0
je 0x43dc5b
sub dword [0x4a88d8], edx
jne 0x43dc1d
call fcn.00413d50
mov edx, 1
mov ecx, dword [0x4ab210]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4ab210], 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 0x43dbf5
cmp byte [esp + 0x14], 0
jne 0x43dcc8
add dword [esp + 0x1c], edx
cmp byte [esp + 0x13], 0
je 0x43dcc8
sub dword [0x4a88d8], edx
jne 0x43dc8a
call fcn.00413d50
mov ecx, dword [0x4ab210]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4ab210], 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 [0x4ab0e4], 0
je 0x43dce2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push 0x43d6e0
push eax
push ecx
jmp 0x43dd16
cmp byte [esp + 0x13], 0
je 0x43dcfa
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push 0x43d6d0
push edx
push eax
jmp 0x43dd16
cmp byte [esp + 0x18], 0
mov eax, 0x43d660
jne 0x43dd0b
mov eax, 0x43d530
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push ebx
call fcn.00488090
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 0x43dd46
mov eax, dword [esi + 0xc]
push 1
push 0
push ecx
push 0
push eax
call fcn.00476c10
jmp 0x43ddb6
mov byte [esp + 0x13], 1
mov dl, 1
cmp ecx, 0xffffffff
jne 0x43dd62
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x2c]
xor dl, dl
jmp 0x43dd67
mov byte [esp + 0x13], 0
lea edi, [ebx + 1]
cmp al, 2
jne 0x43dd95
cmp byte [esp + 0x13], 0
je 0x43dd83
push 0x49a8ad
mov eax, ebx
call fcn.004045c0
jmp 0x43ddb6
mov esi, 0x4ad8e0
call fcn.00404640
neg eax
sbb eax, eax
neg eax
jmp 0x43ddb6
cmp edi, dword [0x4a88f4]
jbe 0x43ddc8
cmp edi, dword [esi + 0x10]
jbe 0x43ddc8
push 0x49a8ad
push 0x4a1ce4
mov ecx, 0x4ad268
call fcn.0042f2b0
cmp eax, 1
je 0x43dde5
mov dword [esp + 0x1c], 0
jmp 0x43e238
cmp edi, 2
jae 0x43de6c
xor ecx, ecx
test dl, dl
setne cl
xor al, al
add ecx, 3
push ecx
mov ecx, esi
call fcn.004771c0
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
xor esi, esi
push esi
push 1
mov dword [esp + 0x34], esi
call fcn.00401210
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x1c], esi
jbe 0x43e0cc
nop
cmp byte [esp + 0x16], 0
je 0x43e133
test esi, esi
je 0x43e133
cmp byte [0x4ab0e3], 0
je 0x43e0fb
cmp dword [0x4ab0e8], 0
jne 0x43e0fb
mov edi, dword [ebx]
mov eax, edi
call fcn.0040e3e0
test al, al
je 0x43e049
push 0x10
push 0
push edi
call fcn.00488efe
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
fild qword [esp + 0x4c]
add esp, 0xc
jmp 0x43e052
mov al, byte [esi + 0x15]
test al, 2
je 0x43de82
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 0x43debc
mov cl, byte [esi + 0x14]
cmp cl, 1
jbe 0x43deef
cmp cl, 2
je 0x43df27
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 0x43e03b
mov eax, dword [esi + 8]
cmp eax, 0x49a8ad
je 0x43dee0
push ebx
push 0x49a8ad
push eax
call fcn.00487a80
add esp, 0xc
mov ecx, dword [esi + 8]
mov byte [ebx + ecx], 0
mov dword [esi + 0xc], ebx
jmp 0x43dde5
cmp edi, 0x40
ja 0x43df27
cmp edi, 4
ja 0x43df00
mov esi, 4
jmp 0x43df0e
mov ecx, 8
cmp ecx, edi
sbb esi, esi
and esi, 0x38
add esi, ecx
mov eax, esi
call fcn.004710c0
test eax, eax
je 0x43ddbb
mov ecx, dword [esp + 0x20]
mov byte [ecx + 0x14], 1
jmp 0x43deae
cmp edi, 0x10
jae 0x43df36
mov esi, 0x10
jmp 0x43dfbb
cmp edi, 0x104
jae 0x43df45
mov esi, 0x104
jmp 0x43dfbb
cmp edi, 0x28000
jae 0x43df89
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
test edi, edi
jns 0x43df5f
fadd qword [0x4a2dc8]
fmul qword [0x4a2dd0]
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 0x43dfbb
cmp edi, 0x190000
jae 0x43df99
lea esi, [edi + 0x4000]
jmp 0x43dfbb
cmp edi, 0x640000
jae 0x43dfb5
mov eax, 0x51eb851f
mul edi
mov esi, edx
mov edx, dword [esp + 0x28]
shr esi, 5
add esi, edi
jmp 0x43dfbb
lea esi, [edi + 0x10000]
mov eax, dword [0x4a88f4]
cmp esi, eax
jbe 0x43dfc6
mov esi, eax
cmp cl, 2
jne 0x43e003
test edx, edx
je 0x43e003
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 8]
push edx
mov bl, 1
call fcn.00486eb8
add esp, 4
test esi, esi
js 0x43e00b
push esi
call fcn.00487059
add esp, 4
test eax, eax
je 0x43e00b
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov byte [edi + 0x14], 2
jmp 0x43deae
mov edi, dword [esp + 0x20]
xor bl, bl
jmp 0x43dfe1
test bl, bl
je 0x43e01f
mov dword [edi + 0x10], 0
mov dword [edi + 8], 0x4ad23d
jmp 0x43e025
mov eax, dword [edi + 8]
mov byte [eax], 0
push 0x49a8ad
mov dword [edi + 0xc], 0
push 0x49c0a0
jmp 0x43ddac
mov edx, dword [esi + 8]
mov byte [edx], 0
mov dword [esi + 0xc], ebx
jmp 0x43dde5
push edi
call fcn.00489000
add esp, 4
mov eax, esi
fstp qword [esp + 0x50]
call fcn.0040e3e0
test al, al
je 0x43e07c
push 0x10
push 0
push esi
call fcn.00488efe
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
fild qword [esp + 0x54]
add esp, 0xc
jmp 0x43e085
push esi
call fcn.00489000
add esp, 4
fld qword [esp + 0x50]
fucompp
fnstsw ax
test ah, 0x44
jp 0x43e133
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x2c]
dec eax
cmp dword [esp + 0x28], eax
jne 0x43e0b5
cmp byte [esp + 0x14], 0
jne 0x43e0b5
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 0x43de10
mov edx, dword [esp + 0x34]
push edx
call fcn.00486eb8
add esp, 4
cmp byte [esp + 0x15], 0
je 0x43e19a
mov byte [edi - 2], 0
mov edi, dword [esp + 0x20]
cmp byte [edi + 0x17], 0
jne 0x43e172
mov esi, dword [edi + 0xc]
jmp 0x43e174
mov al, byte [0x4ab0ec]
push esi
test al, al
jne 0x43e10f
mov eax, dword [ebx]
push eax
call fcn.00486ea1
jmp 0x43e123
cmp al, 2
mov eax, dword [ebx]
push eax
jne 0x43e11e
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
jmp 0x43e126
call fcn.00486ff1
add esp, 8
test eax, eax
setne al
test al, al
je 0x43e09a
mov ecx, dword [ebx]
mov al, byte [ecx]
mov edi, dword [esp + 0x18]
test al, al
je 0x43e14e
nop
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x43e140
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
dec eax
cmp dword [esp + 0x28], eax
jb 0x43e160
cmp byte [esp + 0x14], 0
je 0x43e16b
mov cl, byte [esp + 0x12]
mov byte [edi], cl
inc edi
mov dword [esp + 0x18], edi
mov esi, dword [ebx]
jmp 0x43e0b5
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43e190
test byte [esi + 0x15], 8
je 0x43e187
mov eax, esi
call fcn.00401150
add dword [esi + 0xc], 0xfffffffe
lea eax, [esi + 0xc]
jmp 0x43e1a1
mov eax, 0x4ada98
add dword [eax], 0xfffffffe
jmp 0x43e1a1
mov byte [edi], 0
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x16], 0
je 0x43e1fe
cmp dword [esp + 0x2c], 0
je 0x43e1fe
push 0
push 1
mov ecx, edi
call fcn.00401210
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e1c0
sub eax, edx
mov ebx, eax
cmp byte [edi + 0x17], cl
jne 0x43e1d5
mov esi, dword [edi + 0xc]
jmp 0x43e1d7
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43e1ef
test byte [esi + 0x15], 8
je 0x43e1ea
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x43e1f4
mov eax, 0x4ada98
mov dword [eax], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
cmp byte [edi + 0x17], 0
jne 0x43e209
mov eax, dword [edi + 0xc]
jmp 0x43e20b
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x43e22c
cmp dword [0x4ad8ec], 0
je 0x43e22c
push 1
mov ecx, 0x4ad8e0
call fcn.004046b0
mov dword [esp + 0x1c], eax
jmp 0x43e238
and byte [eax + 0x15], 0x86
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
je 0x43e2ad
mov esi, dword [0x4acad0]
cmp byte [esi + 0x17], 0
jne 0x43e250
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x43e266
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 0x43e288
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x43e2ad
cmp dword [0x4ac42c], 0
je 0x43e295
test al, 0x10
jne 0x43e2a2
cmp dword [0x4ac430], 0
je 0x43e2ad
test al, 0x20
je 0x43e2ad
test al, 8
je 0x43e2ad
mov eax, esi
call fcn.00401150
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43e2d4
push eax
call fcn.00486eb8
mov eax, dword [esp + 0x40]
mov dword [0x4ab0e4], 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 [0x4ab0e4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8