Function at 0x49d500
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f636
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5c43dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x23d
push 0x400
call fcn.004a1c70
push str.ShapeMenuR61DieDieBG.SHP
call fcn.00585e90
push str.ShapeMenuR61DieDieBGBtnBet1.SHP
mov dword [esi + 0x238], eax
mov dword [esi + 0x270], 0xffffffff
mov dword [esi + 0x27c], 0x41000000
mov dword [esi + 0x280], 0x6339
mov dword [esi + 0x274], 0x1f2
mov dword [esi + 0x278], 7
mov dword [esi + 0x2a0], 1
call fcn.00585e90
add esp, 8
push 0
push 1
mov edi, eax
push edi
push 4
push 0
push 0
push 0
push 0x1fe
push 0xe6
mov ecx, esi
call fcn.004a2600
mov ebx, eax
xor ecx, ecx
push ecx
mov eax, 0x49c100
push eax
xor edx, edx
push edx
mov eax, 0x49c350
push eax
push ebx
mov ecx, esi
call fcn.004a1110
push 0
push 1
push edi
push 4
push 0
push 0
push 0
push 0x1fe
push 0x13b
mov ecx, esi
mov dword [esi + 0x58], ebx
call fcn.004a2600
mov ebx, eax
xor ecx, ecx
push ecx
mov eax, 0x49c100
push eax
xor edx, edx
push edx
mov eax, 0x49c350
push eax
push ebx
mov ecx, esi
call fcn.004a1110
push 0
push 1
push edi
push 4
push 0
push 0
push 0
push 0x1fe
push 0x190
mov ecx, esi
mov dword [esi + 0x5c], ebx
call fcn.004a2600
xor ecx, ecx
mov edi, eax
mov eax, 0x49c100
mov edx, 0x49c350
xor ebx, ebx
push ecx
push eax
push ebx
push edx
push edi
mov ecx, esi
call fcn.004a1110
mov eax, dword [esi + 0x58]
mov dword [esi + 0x60], edi
mov dword [eax + 0x17c], ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
mov ebx, dword [esi + 0x58]
mov dword [esi + 0x78], 9
mov edi, 0xc
mov dword [esi + 0x90], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x94], 6
mov dword [esi + 0x9c], 6
mov dword [esi + 0x68], 0x3c
mov dword [esi + 0x6c], 0x18
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x64]
mov dword [ebx + 0xe4], eax
mov dword [esi + 0xb8], 9
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd8], edi
mov dword [ebp - 0x30], ecx
lea ecx, [esi + 0xa4]
lea edx, [esi + 0xe4]
mov ebx, 6
mov dword [ecx + 0x30], ebx
mov dword [ecx + 0x38], ebx
mov ebx, dword [ebp - 0x34]
mov dword [ecx + 4], 0x3c
mov dword [ecx + 8], 0x18
mov dword [ebx + 0xe4], ecx
mov dword [edx + 0x14], 9
mov dword [edx + 0x2c], edi
mov dword [edx + 0x34], edi
mov edi, 6
mov dword [edx + 0x30], edi
mov dword [edx + 0x38], edi
mov edi, dword [ebp - 0x30]
mov dword [edx + 4], 0x3c
mov dword [edx + 8], 0x18
mov dword [edi + 0xe4], edx
mov dword [eax + 0x28], 0x64
mov dword [ecx + 0x28], 0x1f4
mov dword [edx + 0x28], 0x3e8
xor ebx, ebx
test ebx, ebx
jne 0x49d784
push str.ShapeMenuR61DieRolling01Rolling10001.SHP
mov dword [ebp - 0x10], 0x2bf
mov dword [ebp - 0x14], 0x12f
call fcn.00585e90
push str.ShapeMenuR61DieRolling01RollingS10001.SHP
mov dword [esi + 0x890], eax
call fcn.00585e90
push str.ShapeMenuR61DieStop0101.SHP
mov dword [esi + 0x894], eax
call fcn.00585e90
push str.ShapeMenuR61DieStop01S.SHP
mov dword [esi + 0x898], eax
call fcn.00585e90
mov dword [esi + 0x89c], eax
jmp 0x49d7d2
push str.ShapeMenuR61DieRolling02Rolling20001.SHP
mov dword [ebp - 0x10], 0x33e
mov dword [ebp - 0x14], 0x169
call fcn.00585e90
push str.ShapeMenuR61DieRolling02RollingS20001.SHP
mov dword [esi + 0x96c], eax
call fcn.00585e90
push str.ShapeMenuR61DieStop0201.SHP
mov dword [esi + 0x970], eax
call fcn.00585e90
push 0x5aa384
mov dword [esi + 0x974], eax
call fcn.00585e90
mov dword [esi + 0x978], eax
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 0x14]
add esp, 0x10
push 0
push eax
mov eax, dword [ebp - 0x10]
push 0
push edx
push eax
call fcn.00447540
mov edi, eax
push edi
mov dword [edi + 0x50], 0xffffffff
call fcn.00588e90
mov eax, dword [esi + 0x24]
push 0
push edi
push eax
call fcn.005834f0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, ebx
imul eax, eax, 0xdc
add eax, esi
mov dword [eax + 0x8cc], edi
add edx, 0x64
mov dword [eax + 0x8a4], 0
mov dword [eax + 0x8a8], 2
mov dword [ebp - 0x10], edx
add ecx, 0xfffffed4
fild dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
add esp, 0x24
fstp dword [eax + 0x950]
fild dword [ebp - 0x14]
fstp dword [eax + 0x954]
fld dword [0x5aa380]
fstp dword [eax + 0x958]
fld dword [0x5aa37c]
fstp dword [eax + 0x95c]
fld dword [0x5aa378]
fstp dword [eax + 0x960]
fld dword [0x5aa374]
fstp dword [eax + 0x964]
mov dword [eax + 0x968], ebx
inc ebx
cmp ebx, 2
jl 0x49d730
push str.ShapeMenuR61DieMoney.SHP
call fcn.00585e90
push str.ShapeMenuR61DieMoney1.SHP
mov dword [esi + 0xa50], eax
call fcn.00585e90
mov dword [esi + 0xa88], eax
mov eax, 0x61
mov ecx, 0x1c1
mov edx, 0xd8
mov dword [esi + 0xac4], eax
mov dword [esi + 0xacc], eax
mov eax, 0x1d3
add esp, 8
mov dword [esi + 0xac8], ecx
mov dword [esi + 0xb38], ecx
mov dword [esi + 0xac0], edx
mov dword [esi + 0xb30], edx
mov dword [esi + 0xb34], eax
mov dword [esi + 0xb3c], eax
xor edi, edi
lea ecx, [esi + 0xad4]
mov dword [ebp - 0x14], 0xc
lea esp, [esp]
mov eax, edi
cdq
mov ebx, 6
idiv ebx
inc edi
add ecx, 8
imul edx, edx, 0x4a
imul eax, eax, 0x82
add edx, 0x53
add eax, 0xea
dec dword [ebp - 0x14]
mov dword [ecx - 0xc], edx
mov dword [ecx - 8], eax
jne 0x49d910
push str.ShapeMenuR61046_GambleFruit.SHP
call fcn.00585e90
mov dword [esi + 0xbdc], eax
mov dword [esi + 0xbe0], 0x36
mov dword [esi + 0xbe4], 0x1f7
mov eax, 0x57
mov dword [esi + 0xc40], eax
mov dword [esi + 0xc48], eax
mov eax, 0x203
mov dword [esi + 0xc44], eax
mov dword [esi + 0xc4c], eax
push str.ShapeMenuR61046_GamebleFruit_Exit.SHP
mov dword [esi + 0xc18], 0x64
mov dword [esi + 0xc1c], 0x11
mov dword [esi + 0xc28], 9
mov dword [esi + 0xc34], 2
call fcn.00585e90
add esp, 8
push 0
push 1
mov ebx, eax
push ebx
push 4
push 0
push 0
push 0
push 0x1f9
push 0x366
mov ecx, esi
call fcn.004a24e0
mov edi, eax
xor ecx, ecx
push ecx
mov eax, 0x4a0cf0
push eax
xor edx, edx
push edx
mov eax, fcn.004a0ca0
push eax
push edi
mov ecx, esi
call fcn.004a1110
lea eax, [esi + 0xc59]
mov dword [edi + 0xe4], eax
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
push ebx
mov dword [esi + 0xc55], edi
call fcn.005869d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x1a
mov dword [esi + 0xc5d], eax
mov eax, 0x6b
mov dword [esi + 0xc61], ecx
mov ecx, 0xdf
mov dword [esi + 0x13c], edx
mov edi, 0x104
mov dword [esi + 0x14c], edx
mov edx, 0x18a
add esp, 0x14
mov dword [esi + 0xc59], 0x4fa8
mov dword [esi + 0xc65], 0
mov dword [esi + 0xc6d], 9
mov dword [esi + 0x138], 0x21
mov dword [esi + 0x140], ecx
mov dword [esi + 0x144], eax
mov dword [esi + 0x148], edi
mov dword [esi + 0x150], ecx
mov dword [esi + 0x154], eax
mov dword [esi + 0x218], 0x21
mov dword [esi + 0x21c], edx
mov dword [esi + 0x220], ecx
mov dword [esi + 0x224], eax
mov dword [esi + 0x228], edi
mov dword [esi + 0x230], ecx
mov dword [esi + 0x22c], edx
mov dword [esi + 0x234], eax
xor edi, edi
lea ecx, [esi + 0x15c]
mov dword [ebp - 0x14], 0xc
lea esp, [esp]
mov eax, edi
cdq
mov ebx, 6
idiv ebx
mov dword [ecx + 4], 0x44
mov dword [ecx + 8], 0x7a
inc edi
add ecx, 0x10
imul edx, edx, 0x4b
imul eax, eax, 0x84
add edx, 0x24
add eax, 0x88
dec dword [ebp - 0x14]
mov dword [ecx - 0x14], edx
mov dword [ecx - 0x10], eax
jne 0x49dae0
push str.ShapeMenuR61DieTag.SHP
call fcn.00585e90
mov dword [esi + 0x818], eax
mov eax, 0x190
mov ecx, 9
mov edi, 0x1e
push 0x54
mov dword [esi + 0x7ac], ecx
mov dword [esi + 0x79c], eax
mov dword [esi + 0x7a0], edi
mov dword [esi + 0x798], 0x4e88
mov dword [esi + 0x7ec], ecx
mov dword [esi + 0x7dc], eax
mov dword [esi + 0x7e0], edi
mov dword [esi + 0x7d8], 0x4e89
mov dword [esi + 0x76c], 2
mov dword [esi + 0x75c], eax
mov dword [esi + 0x760], edi
mov dword [esi + 0x758], 0x4ea7
call fcn.004a04b0
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x49dbb0
mov ecx, eax
call fcn.0048e500
jmp 0x49dbb2
xor eax, eax
mov dword [esi + 0x754], eax
or ecx, 0xffffffff
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov eax, dword [esi + 0x754]
mov dword [ebp - 4], ecx
mov dword [eax + 0x40], edi
mov dword [eax + 0x44], 3
mov ecx, dword [esi + 0x754]
push esi
call fcn.004a27b0
mov eax, dword [esi + 0x754]
mov ecx, dword [eax + 0x28]
inc ecx
push 0
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0x754]
push 0
call fcn.004a19f0
mov eax, dword [esi + 0x754]
mov eax, dword [eax + 0x24]
push 0
push 0
push eax
call fcn.004a1ec0
add esp, 0xc
lea ecx, [esi + 0x850]
call fcn.0048aa30
lea edi, [esi + 0x500]
lea ebx, [esi + 0x138]
mov dword [ebp - 0x14], 0x10
push 0x54
call fcn.004a04b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x49dc51
mov ecx, eax
call fcn.0048e500
jmp 0x49dc53
xor eax, eax
push str.ShapeMenuR61DiePlus.SHP
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
call fcn.00585e90
push str.ShapeMenuR61DiePlus1.SHP
mov dword [ebp - 0x10], eax
call fcn.00585e90
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x48], edx
mov dword [ecx + 0x4c], eax
mov eax, dword [edi]
add esp, 8
mov dword [eax + 0x40], 0x1e
mov dword [eax + 0x44], 3
mov ecx, dword [edi]
push esi
call fcn.004a27b0
mov ecx, dword [edi]
push 0
push 0
call fcn.004a19f0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [edi]
add eax, 2
push eax
mov eax, dword [edx + 0x24]
add ecx, 2
push ecx
push eax
call fcn.004a1ec0
mov ecx, dword [edi]
add esp, 0xc
xor eax, eax
push eax
push eax
push eax
mov eax, 0x49cff0
push eax
push ecx
mov ecx, esi
call fcn.004a1140
add edi, 4
add ebx, 0x10
dec dword [ebp - 0x14]
jne 0x49dc30
push str.ShapeMenuR61DiePlusBG.SHP
call fcn.00585e90
add esp, 4
mov dword [esi + 0x4c8], eax
lea edi, [esi + 0x500]
lea ebx, [esi + 0x138]
mov dword [ebp - 0x14], 2
lea esp, [esp]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, dword [edi]
add edx, 0xf
push edx
mov edx, dword [ecx + 0x24]
add eax, 5
push eax
push edx
call fcn.004a1ec0
add esp, 0xc
add edi, 4
add ebx, 0x10
dec dword [ebp - 0x14]
jne 0x49dd10
lea edi, [esi + 0x538]
lea ebx, [esi + 0x218]
mov dword [ebp - 0x14], 2
lea esp, [esp]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [edi]
add eax, 0xf
push eax
mov eax, dword [edx + 0x24]
add ecx, 5
push ecx
push eax
call fcn.004a1ec0
add esp, 0xc
add edi, 4
add ebx, 0x10
dec dword [ebp - 0x14]
jne 0x49dd50
push str.ShapeMenuR61DieDice01.SHP
call fcn.00585e90
lea ecx, [eax + 1]
lea edx, [eax + 2]
mov dword [esi + 0x584], ecx
mov dword [esi + 0x5bc], edx
lea ecx, [eax + 3]
lea edx, [eax + 4]
mov dword [esi + 0x54c], eax
add eax, 5
push str.ShapeMenuR61DieDiceBG.SHP
mov dword [esi + 0x5f4], ecx
mov dword [esi + 0x62c], edx
mov dword [esi + 0x664], eax
call fcn.00585e90
mov dword [esi + 0x69c], eax
mov eax, 4
mov dword [esi + 0x6ac], eax
mov dword [esi + 0x738], eax
mov eax, 0xf
mov ebx, 1
push str.ShapeMenuR61DieProgressBG.SHP
mov dword [esi + 0x6a8], 0x20000000
mov dword [esi + 0x540], 0x362
mov dword [esi + 0x544], 0x1e
mov dword [esi + 0x548], 0x14
mov dword [esi + 0x720], ebx
mov dword [esi + 0x734], 2
mov dword [esi + 0x728], 0xffe5
mov dword [esi + 0x718], 0x51
mov dword [esi + 0x71c], eax
mov dword [esi + 0x6e8], 9
mov dword [esi + 0x6e0], ebx
mov dword [esi + 0x6d8], eax
mov dword [esi + 0x6dc], eax
call fcn.00585e90
push 0x5aa238
mov dword [ebp - 0x14], eax
call fcn.00585e90
add esp, 0x10
push 0x14
push 0x1c9
push 0x18
push 0x18
push 0x18
push 0x18
push eax
mov eax, dword [ebp - 0x14]
push 0x1b9
push 0x1f5
push eax
lea ecx, [esi + 0x358]
call fcn.0049eda0
mov dword [esi + 0x438], ebx
push str.ShapeMenuR61GambleTitle_BG.SHP
mov dword [esi + 0x410], 9
mov dword [esi + 0x414], 0xffff
call fcn.00585e90
mov dword [esi + 0x2a8], eax
mov dword [esi + 0x2b0], 0xffffffd8
mov dword [esi + 0x2e0], 0xffffffff
mov dword [esi + 0x2ec], 0x41000000
add esp, 4
xor ecx, ecx
mov dword [esi + 0x2ac], ecx
mov dword [esi + 0x2f0], 0x632c
mov dword [esi + 0x2e4], 0x9a
mov dword [esi + 0x2e8], 0xffffffdf
mov dword [esi + 0x310], ebx
mov dword [esi + 0x318], 0x4e80
mov eax, 0x24
mov dword [esi + 0x344], eax
mov dword [esi + 0x34c], eax
mov eax, 0xffffffe0
mov dword [esi + 0x348], eax
mov dword [esi + 0x350], eax
mov dword [esi + 0x31c], 0x77
mov eax, 0x1a
mov dword [esi + 0x320], eax
mov dword [esi + 0x32c], 6
mov dword [esi + 0x43c], 0x4e8f
push 0x18
push 0x34c
push 0xffffffffffffffe3
mov dword [esi + 0x45c], ecx
push 0x9f
lea ecx, [esi + 0x43c]
mov dword [esi + 0x440], 0x2cc
mov dword [esi + 0x444], eax
mov dword [esi + 0x450], 0xfe40
call fcn.0049e9f0
fld dword [0x5a92a8]
push ecx
fstp dword [esp]
push 0xffffffffffffffe3
push 0xffffffffffffffe3
push 0x9f
push 0x3eb
lea ecx, [esi + 0x43c]
call fcn.0049e9c0
lea ecx, [esi + 0x43c]
call fcn.004a1d60
push eax
lea ecx, [esi + 0x43c]
call fcn.0049f7d0
push ebx
lea ecx, [esi + 0x714]
push 0x258
mov dword [ecx], 0x4ea5
call fcn.004a1d60
push eax
lea ecx, [esi + 0xca1]
call fcn.0049f400
push 0
push 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xbf3
mov ecx, esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004a19c0
push eax
push 0
call fcn.005506e0
add esp, 0x18
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret