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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402fe6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402f98
xor edi, edi
push 0x12bd6aa
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x70], edi
call fcn.00483f70
lea eax, [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov eax, 0x270
cmp word [ebp + 0xc], ax
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x30]
setl cl
neg ecx
mov word [ebp - 0x48], cx
push edx
lea ecx, [ebp - 0x50]
push eax
lea edx, [ebp - 0x40]
push ecx
push edx
mov esi, 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x70], 0x4002
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x50], 0xb
call dword [sym.imp.MSVBVM60.DLL_rtcImmediateIf]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2Var]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x50]
push edx
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
mov eax, 1
cmp word [ebp - 0x1c], ax
jl 0x484224
mov cx, si
sub cx, ax
jo 0x484327
movsx edi, cx
cmp edi, 0x270
jb 0x484117
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x48709c]
push 0x40000000
mov edi, dword [edx + edi*4]
push edi
call fcn.00483ee0
xor eax, edi
push 0x19660d
push eax
call fcn.00483c00
sub esp, 0x10
mov ecx, 0x4002
mov edx, esp
mov dword [ebp - 0x50], ecx
mov ebx, eax
lea eax, [ebp - 0x18]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
push 1
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 8]
push ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoad]
movsx edi, si
add esp, 0x1c
cmp edi, 0x270
jb 0x484182
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov ecx, dword [0x48709c]
push eax
mov edx, dword [ecx + edi*4]
xor edx, ebx
push edx
call fcn.00483b90
cmp edi, 0x270
mov ebx, eax
jb 0x4841ae
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
movsx eax, word [ebp - 0x18]
push eax
push ebx
call fcn.00483b90
mov ecx, dword [0x48709c]
mov dword [ecx + edi*4], eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ax, word [ebp - 0x18]
add si, 1
jo 0x484327
add ax, 1
jo 0x484327
cmp si, 0x270
mov dword [ebp - 0x18], eax
jl 0x484202
mov eax, dword [0x48709c]
mov esi, 1
mov edx, dword [eax + 0x9bc]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
cmp ax, word [ebp + 0xc]
jl 0x48420f
mov dword [ebp - 0x18], 0
or eax, 0xffffffff
add ax, word [ebp - 0x1c]
jo 0x484327
mov dword [ebp - 0x1c], eax
jmp 0x4840eb
mov ecx, 0x26f
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov dword [ebp - 0x1c], eax
mov eax, 1
cmp word [ebp - 0x1c], ax
jl 0x4842ec
mov ax, si
sub ax, 1
jo 0x484327
movsx edi, ax
cmp edi, 0x270
jb 0x48425f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [0x48709c]
push 0x40000000
mov edi, dword [ecx + edi*4]
push edi
call fcn.00483ee0
xor eax, edi
push 0x5d588b65
push eax
call fcn.00483c00
movsx edi, si
cmp edi, 0x270
mov ebx, eax
jb 0x4842a1
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
cmp edi, 0x270
jb 0x4842a1
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [0x48709c]
mov edx, edi
neg edx
mov ecx, dword [eax + edi*4]
push edx
xor ecx, ebx
push ecx
call fcn.00483b90
mov edx, dword [0x48709c]
add si, 1
jo 0x484327
cmp si, 0x270
mov dword [edx + edi*4], eax
jl 0x4842de
mov eax, dword [0x48709c]
mov esi, 1
mov ecx, dword [eax + 0x9bc]
mov dword [eax], ecx
or eax, 0xffffffff
add ax, word [ebp - 0x1c]
jo 0x484327
jmp 0x48422f
mov edx, dword [0x48709c]
push 0x484314
mov dword [edx], 0x80000000
jmp 0x484313
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop