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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb4]
mov ebp, ecx
push edi
lea eax, [esi + esi*2]
add ecx, esi
shl eax, 3
sub eax, esi
mov dword [esp + 0x18], ebp
lea eax, [eax + eax*2]
lea edi, [ecx + eax*4]
mov ecx, dword [0x59ffec]
call fcn.00405fb0
mov ecx, dword [0x59ffec]
mov dword [esp + 0x14], eax
call fcn.00405fe0
mov edx, dword [0x59ffec]
mov ebx, eax
push str.Playing_Piece
mov dword [esp + 0x34], ebx
mov ecx, dword [edx + 0x141c]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x59ffec]
movsx eax, bx
mov ecx, dword [ecx + 0x141c]
push eax
movsx eax, word [esp + 0x18]
mov edx, dword [ecx]
add eax, 0x3c
push eax
call dword [edx + 0x28]
mov ecx, dword [0x59ffec]
call fcn.00407650
cmp byte [edi + 0x66], 0xff
je 0x484544
xor edx, edx
xor eax, eax
lea ecx, [ebp + 0x65]
cmp esi, eax
je 0x484536
mov bl, byte [edi + 0x66]
cmp bl, byte [ecx + 1]
jne 0x484536
mov bl, byte [edi + 0x65]
cmp bl, byte [ecx]
je 0x484544
inc eax
add ecx, 0x115
cmp eax, 4
jl 0x484523
jmp 0x4845c3
push 4
call fcn.004efcc0
add esp, 4
mov ebx, eax
push 4
call fcn.004efcc0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x484564
mov ebp, dword [esp + 0x18]
xor ecx, ecx
lea edx, [ebp + 0x65]
movsx eax, byte [edx]
cmp ebx, eax
je 0x48458d
movsx eax, byte [edx + 1]
cmp dword [esp + 0x10], eax
je 0x48458d
inc ecx
add edx, 0x115
cmp ecx, 4
mov ebp, 1
jl 0x484569
jmp 0x4845a9
push 4
xor ebp, ebp
call fcn.004efcc0
add esp, 4
mov ebx, eax
push 4
call fcn.004efcc0
add esp, 4
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x484560
mov cl, byte [esp + 0x10]
mov byte [edi + 0x65], bl
mov byte [edi + 0x66], cl
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [ecx]
call dword [edx + 0x64]
xor edx, edx
mov ebp, dword [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
add eax, 0x19
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], 0x8c1
mov dword [esp + 0x38], 0x8a8
mov dword [esp + 0x3c], 0x8bc
mov dword [esp + 0x40], 0x8d5
mov dword [esp + 0x44], 0x8d0
mov dword [esp + 0x48], 0x8b7
mov dword [esp + 0x4c], 0x8a6
mov dword [esp + 0x50], 0x8e4
mov dword [esp + 0x54], 0x8cb
mov dword [esp + 0x58], 0x8b2
mov dword [esp + 0x5c], 0x8a4
mov dword [esp + 0x60], 0x8df
mov dword [esp + 0x64], 0x8c6
mov dword [esp + 0x68], 0x8ad
mov dword [esp + 0x6c], 0x8a2
mov dword [esp + 0x70], 0x8da
mov dword [esp + 0x80], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xb0], edx
mov dword [esp + 0x18], eax
jmp 0x4846ca
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
xor ebx, ebx
movsx eax, cl
shl eax, 2
shl ecx, 2
add edx, 0x1e
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
push 0x68
call fcn.004d8630
add esp, 4
test eax, eax
je 0x484707
mov ecx, eax
call fcn.0040a740
jmp 0x484709
xor eax, eax
movsx ecx, word [esp + 0x24]
mov dword [edi + ecx*4 + 0x6d], eax
mov edx, dword [0x59ffec]
lea esi, [edi + ecx*4 + 0x6d]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
movsx eax, bl
add eax, edx
shl eax, 2
cmp ecx, 3
mov edx, dword [esp + eax + 0x34]
mov eax, dword [esp + eax + 0x74]
ja case.default.0x48473c
jmp dword [ecx*4 + 0x48484c]
mov ebp, 4
mov dword [esp + 0x1c], 0xffffffff
jmp case.default.0x48473c
mov ebp, 1
jmp 0x48476d
mov ebp, 4
mov dword [esp + 0x1c], 1
jmp case.default.0x48473c
mov ebp, 4
mov dword [esp + 0x1c], 0
mov bl, byte [edi + 0x50]
xor ecx, ecx
cmp bl, 0x64
mov ebx, dword [esp + 0x1c]
setne cl
add ebx, 0xfffffff0
dec ecx
push ebx
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
push 0x23
push 0x23
push ebx
mov ebx, dword [esp + 0x2c]
and ecx, 0xe
add ecx, ebx
push ecx
mov ecx, dword [esi]
push eax
push edx
lea eax, [edi + 0x6d]
push 0x10
push eax
push 0
call fcn.0040a7a0
mov ecx, dword [esi]
push 0xa
mov eax, dword [ecx]
call dword [eax + 0x10]
movsx cx, byte [edi + 0x66]
cmp word [esp + 0x10], cx
jne 0x4847e5
movsx dx, byte [edi + 0x65]
mov ebx, dword [esp + 0x20]
cmp bx, dx
jne 0x4847e9
mov ecx, dword [esi]
mov eax, 1
mov dword [ecx + 0x54], eax
mov edx, dword [esi]
mov dword [edx + 0x58], eax
jmp 0x4847e9
mov ebx, dword [esp + 0x20]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
inc ebx
mov ecx, 0x28
inc eax
inc esi
add edx, ecx
cmp bx, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], edx
jl 0x4846f0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc eax
add edx, ecx
cmp ax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jl 0x4846c6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4