Function at 0x487490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
fild dword [0x6f355c]
push 0x69ccfe
push eax
fmul dword [0x6a95b8]
mov dword fs:[0], esp
sub esp, 0x414
push ebx
fsub dword [0x6adef8]
push ebp
push esi
push edi
mov esi, ecx
call fcn.005ba9a8
mov dword [esi + 0xb8], eax
fild dword [0x6f3560]
fmul dword [0x6a95b8]
fsub dword [0x6adef4]
call fcn.005ba9a8
xor ebx, ebx
mov dword [esi + 0xbc], eax
xor edi, edi
lea ebp, [esi + 0x158]
push edi
lea eax, [esp + 0x28]
push str.data_interface_gamecard_game_card_d.tga
push eax
call dword [0x6a8554]
mov edx, dword [0x21f3f98]
push ebp
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.0040bfa0
add esp, 0x18
test eax, eax
jl 0x487fdf
inc edi
add ebp, 4
cmp edi, 0x17
jl 0x4874f5
push edi
lea eax, [esp + 0x28]
push str.data_interface_tarocard_tarocard22.tga
push eax
call dword [0x6a8554]
mov eax, dword [0x21f3f98]
lea ecx, [esi + 0x1bc]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call fcn.0040bfa0
add esp, 0x18
test eax, eax
jl 0x487fdf
mov dword [esi + 0xc4], ebx
mov byte [esi + 0xc8], bl
mov byte [esi + 0xca], bl
mov byte [esi + 0xc9], bl
mov dword [esi + 0xd0], ebx
mov eax, 0x40490fdb
mov dword [esi + 0xcc], eax
mov byte [esi + 0xd8], bl
mov byte [esi + 0xda], bl
mov byte [esi + 0xd9], bl
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], ebx
mov byte [esi + 0xe8], bl
mov byte [esi + 0xea], bl
mov byte [esi + 0xe9], bl
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xec], eax
mov dword [esi + 0xf0], ebx
mov byte [esi + 0xf8], bl
mov byte [esi + 0xfa], bl
mov byte [esi + 0xf9], bl
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xfc], eax
mov dword [esi + 0x100], ebx
mov byte [esi + 0x108], bl
mov byte [esi + 0x10a], bl
mov byte [esi + 0x109], bl
mov dword [esi + 0x104], ebx
mov dword [esi + 0x10c], eax
mov dword [esi + 0x110], ebx
mov byte [esi + 0x118], bl
mov byte [esi + 0x11a], bl
mov byte [esi + 0x119], bl
mov dword [esi + 0x114], ebx
mov dword [esi + 0x11c], eax
mov dword [esi + 0x120], ebx
mov byte [esi + 0x128], bl
mov byte [esi + 0x12a], bl
mov byte [esi + 0x129], bl
mov dword [esi + 0x124], ebx
mov dword [esi + 0x12c], eax
mov dword [esi + 0x130], ebx
mov byte [esi + 0x138], bl
mov byte [esi + 0x13a], bl
mov byte [esi + 0x139], bl
mov dword [esi + 0x134], ebx
mov dword [esi + 0x13c], eax
push ebx
mov dword [esi + 0x140], ebx
mov byte [esi + 0x148], bl
mov byte [esi + 0x14a], bl
lea edi, [esi + 0x154]
push edi
push 1
mov byte [esi + 0x149], bl
mov dword [esi + 0x144], ebx
push 0x112
mov dword [esi + 0x14c], eax
push 8
mov dword [esi + 0x150], ebx
mov eax, dword [0x21f3f98]
mov ecx, dword [eax]
push 0x80
push eax
call dword [ecx + 0x68]
test eax, eax
jl 0x487fdf
mov eax, dword [edi]
mov edx, dword [eax]
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push eax
call dword [edx + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, 0xbf000000
mov dword [edx], ecx
mov eax, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x18], ebx
mov eax, dword [esp + 0x10]
mov edx, 0x3f700000
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x10]
mov dword [eax + 0x20], ecx
mov ebp, dword [esp + 0x10]
mov eax, 0x3f000000
mov dword [ebp + 0x24], eax
mov ebp, dword [esp + 0x10]
mov dword [ebp + 0x38], ebx
mov ebp, dword [esp + 0x10]
mov dword [ebp + 0x3c], ebx
mov ebp, dword [esp + 0x10]
mov dword [ebp + 0x40], eax
mov ebp, dword [esp + 0x10]
mov dword [ebp + 0x44], ecx
mov ebp, dword [esp + 0x10]
mov ecx, 0x3f200000
mov dword [ebp + 0x58], ecx
mov ebp, dword [esp + 0x10]
mov dword [ebp + 0x5c], edx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x60], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x64], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x78], ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x7c], ebx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x68], ebx
mov eax, dword [esp + 0x10]
mov dword [eax + 0x48], ebx
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x28], ebx
mov edx, dword [esp + 0x10]
mov dword [edx + 8], ebx
mov eax, dword [esp + 0x10]
add eax, 0x6c
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov dword [esp + 0x20], 0xbf800000
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x10]
lea edx, [eax + 0x6c]
mov ecx, dword [edx]
add eax, 0x4c
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x4c]
mov edx, dword [ecx]
add eax, 0x2c
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x10]
lea edx, [eax + 0x2c]
mov ecx, dword [edx]
add eax, 0xc
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
push ebx
mov edx, dword [esi + 0xbc]
push 4
mov eax, dword [esi + 0xb8]
push pe_nt_image_headers32
push 0x400
push str.slotbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
push 0x212
push 0xe4
push edx
push eax
lea ecx, [esi + 0x1c0]
call fcn.00512780
push 0x3f800000
mov ecx, dword [esi + 0xbc]
push 4
mov edx, dword [esi + 0xb8]
push pe_nt_image_headers32
push 0x400
push str.slotbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
push 0x212
push 0x137
push ecx
lea ebp, [esi + 0x694]
push edx
mov ecx, ebp
call fcn.00512780
push 0x40000000
mov eax, dword [esi + 0xbc]
push 4
mov edx, dword [esi + 0xb8]
push pe_nt_image_headers32
push 0x400
push str.slotbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
push 0x212
push 0x18a
push eax
lea ecx, [esi + 0xb68]
push edx
call fcn.00512780
push 0x40400000
push 4
push pe_nt_image_headers32
push 0x400
push str.slotbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
lea ecx, [esi + 0x103c]
push 0x212
mov eax, dword [esi + 0xbc]
mov edx, dword [esi + 0xb8]
push 0x206
push eax
push edx
call fcn.00512780
push 0x40800000
mov eax, dword [esi + 0xbc]
push 4
mov ecx, dword [esi + 0xb8]
push pe_nt_image_headers32
push 0x400
push str.slotbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
push 0x212
push 0x260
push eax
push ecx
lea ecx, [esi + 0x1510]
call fcn.00512780
lea edi, [esi + 0x258]
mov dword [esp + 0x14], 5
mov edi, edi
push 1
push ebx
lea ecx, [edi - 0x98]
call fcn.00511490
mov eax, dword [esp + 0x14]
mov dword [edi], 0x3f800000
add edi, 0x4d4
dec eax
mov dword [esp + 0x14], eax
jne 0x487970
push ebx
mov edx, dword [esi + 0xbc]
push 4
mov eax, dword [esi + 0xb8]
push pe_nt_image_headers32
push 0x200
push str.cardbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
push 0x212
push 0xe4
push edx
push eax
lea ecx, [esi + 0x19e4]
call fcn.00512780
push 0x3f800000
mov ecx, dword [esi + 0xbc]
push 4
mov edx, dword [esi + 0xb8]
push pe_nt_image_headers32
push 0x200
push str.cardbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
push 0x212
push 0x137
push ecx
push edx
lea ecx, [esi + 0x1eb8]
call fcn.00512780
push 0x40000000
mov eax, dword [esi + 0xbc]
push 4
mov ecx, dword [esi + 0xb8]
push pe_nt_image_headers32
push 0x200
push str.cardbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
push 0x212
push 0x206
push eax
push ecx
lea ecx, [esi + 0x238c]
call fcn.00512780
push 0x40400000
mov edx, dword [esi + 0xbc]
push 4
mov eax, dword [esi + 0xb8]
push pe_nt_image_headers32
push 0x200
push str.cardbutton.tga
push ebx
push 0x24
push 0x53
push 0x40
push 0x80
push 0x212
push 0x260
push edx
push eax
lea ecx, [esi + 0x2860]
call fcn.00512780
lea edi, [esi + 0x1a7c]
mov dword [esp + 0x14], 4
push 1
push ebx
lea ecx, [edi - 0x98]
call fcn.00511490
mov eax, dword [esp + 0x14]
mov dword [edi], 0x3f800000
add edi, 0x4d4
dec eax
mov dword [esp + 0x14], eax
jne 0x487ab3
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0xb8]
push 0xff
push 0xff
push 0xff
push 0xffffffffffffffff
push 0xa9
push 0x68
push 0x26
push ecx
lea edi, [esi + 0x2d34]
push edx
mov ecx, edi
call fcn.005171a0
push 0x2336
call fcn.0041b840
add esp, 4
push eax
mov ecx, edi
call fcn.00517d60
mov dword [esi], ebx
mov eax, dword [0x851330]
mov dword [esi + 8], eax
mov ecx, dword [0x851aa8]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x58], ebx
or edi, 0xffffffff
mov dword [esi + 0x4c], edi
push ebx
mov ecx, ebp
mov byte [0x85133c], 1
mov byte [0x85133d], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x48], ebx
call fcn.005114d0
push ebx
lea ecx, [esi + 0xb68]
call fcn.005114d0
push ebx
lea ecx, [esi + 0x103c]
call fcn.005114d0
push 0x400
push 0x400
push str.slotmain.tga
push str.data_interface
lea ecx, [esi + 0x2da4]
call fcn.00533680
push 0x400
push 0x400
push str.cardmain.tga
push str.data_interface
lea ecx, [esi + 0x2db4]
call fcn.00533680
push pe_nt_image_headers32
push pe_nt_image_headers32
push str.batno.tga
push str.data_interface
lea ecx, [esi + 0x2dc4]
call fcn.00533680
push 0x80
push pe_nt_image_headers32
push str.batline.tga
push str.data_interface
lea ecx, [esi + 0x2dd4]
call fcn.00533680
push 0x80
push pe_nt_image_headers32
push str.batline2.tga
push str.data_interface
lea ecx, [esi + 0x2de4]
call fcn.00533680
push str.Strip_npc.EFT
push str.data_Effect
mov ecx, 0x21fb560
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x64], bl
call fcn.00543cf0
test eax, eax
je 0x487fdf
cmp byte [0x21e8d7a], bl
mov eax, dword [0x85132c]
mov byte [0x6f5d7c], 2
mov dword [0x851338], 0
jne 0x487cee
cmp eax, 6
ja case.default.0x487cf3
jmp dword [eax*4 + 0x487ffc]
mov eax, str.Strip_L_01.MON
mov dword [0x851338], 0
jmp 0x487d53
mov eax, str.Strip_L_02.MON
mov dword [0x851338], 0xbc23d70a
jmp 0x487d53
mov eax, str.Strip_L_03.MON
mov dword [0x851338], 0x3d23d70a
jmp 0x487d53
mov eax, str.Strip_L_04.MON
mov dword [0x851338], 0xbc23d70a
jmp 0x487d53
mov eax, str.Strip_L_05.MON
mov dword [0x851338], 0x3ca3d70a
jmp 0x487d53
cmp eax, 6
ja case.default.0x487cf3
jmp dword [eax*4 + 0x488018]
mov eax, str.Strip_F_01.MON
mov dword [0x851338], 0x3da3d70a
jmp 0x487d53
mov eax, str.Strip_F_02.MON
mov dword [0x851338], 0x3e3851ec
jmp 0x487d53
mov eax, str.Strip_F_03.MON
mov dword [0x851338], 0
jmp 0x487d53
mov eax, str.Strip_F_04.MON
mov dword [0x851338], 0x3b449ba6
jmp 0x487d53
mov eax, str.Strip_F_05.MON
mov dword [0x851338], 0x3c23d70a
jmp 0x487d53
mov eax, dword [esp + 0x14]
push eax
push str.Data_Strip
mov ecx, 0x6f5d74
call fcn.0053eb20
test eax, eax
je 0x487fdf
push 0x12c
call fcn.005b9e72
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x42c], ebx
je 0x487d90
mov ecx, eax
call fcn.00486f20
jmp 0x487d92
xor eax, eax
mov dword [esi + 0x2dfc], eax
add eax, 0x8c
mov dword [esp + 0x18], 0x4165999a
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov dword [esp + 0x1c], 0x3ee66666
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [esp + 0x20], 0x41566666
mov edx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov eax, dword [esi + 0x2dfc]
lea ecx, [eax + 0x8c]
mov edx, dword [ecx]
add eax, 0x38
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x2dfc]
add edx, 0x44
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov dword [edx], eax
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov dword [edx + 4], ecx
mov dword [esp + 0x20], 0xbf800000
mov eax, dword [esp + 0x20]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x2dfc]
lea ecx, [eax + 0x44]
mov edx, dword [ecx]
add eax, 0x98
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x2dfc]
mov dword [edx + 0x5c], 0xddf22
mov ecx, dword [esi + 0x2dfc]
push ebx
mov dword [esp + 0x430], edi
call fcn.00432940
mov eax, dword [esi + 0x2dfc]
mov edi, 2
mov dword [eax + 0x80], edi
mov ecx, dword [esi + 0x2dfc]
mov dword [ecx + 0x74], edi
mov edx, dword [esi + 0x2dfc]
mov dword [edx + 0x78], 1
mov eax, dword [esi + 0x2dfc]
add eax, 0x38
mov ecx, eax
mov eax, dword [ecx]
mov dword [0x21f406c], eax
mov edx, dword [ecx + 4]
mov dword [0x21f4070], edx
fld dword [0x21f4070]
fadd dword [0x851338]
mov ecx, dword [ecx + 8]
mov dword [0x21f4068], ecx
mov dword [0x21f4074], ecx
fadd dword [0x6a92f8]
mov dword [0x21f4060], eax
mov dword [0x851340], eax
fstp dword [0x21f4070]
mov edx, dword [0x21f4070]
mov dword [0x21f4064], edx
fld dword [0x21f4064]
fadd dword [0x6a960c]
fstp dword [0x21f4064]
mov ecx, dword [0x21f4064]
fld dword [0x21f4068]
mov dword [0x851344], ecx
fsub dword [0x6a9778]
fstp dword [0x21f4068]
mov edx, dword [0x21f4068]
mov dword [0x851348], edx
push 1
push 3
push str.cd_betting01.wav
mov dword [0x851350], ecx
mov dword [0x85134c], eax
mov dword [0x851354], edx
push ebx
push 0x32
mov ecx, 0x21f1d78
mov byte [esi + 0x2e08], bl
mov dword [esi + 0x2e00], 0x3f800000
mov dword [esi + 0x2df4], ebx
call fcn.00525aa0
push 1
push 3
push str.cd_turn01.wav
push 1
push 0x32
mov ecx, 0x21f1d78
call fcn.00525aa0
push 1
push edi
push str.cd_success01.wav
push edi
push 0x32
mov ecx, 0x21f1d78
call fcn.00525aa0
push 1
push edi
push str.cd_unsuccess01.wav
push 3
push 0x32
mov ecx, 0x21f1d78
call fcn.00525aa0
push 1
push edi
push str.cd_success02.wav
push 4
push 0x32
mov ecx, 0x21f1d78
call fcn.00525aa0
push 1
push 0xa
push str.cd_moneyup01.wav
push 5
push 0x32
mov ecx, 0x21f1d78
call fcn.00525aa0
push 1
push edi
push str.cd_open01.wav
push 6
push 0x32
mov ecx, 0x21f1d78
call fcn.00525aa0
mov eax, 1
jmp 0x487fe1
xor eax, eax
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret