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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2fc
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407cfe
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x74]
jmp 0x407d04
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407d22
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
jmp 0x407d31
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x94]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407d4c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
jmp 0x407d55
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407d70
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
jmp 0x407d79
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x4c]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407d94
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
jmp 0x407d9d
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407db8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
jmp 0x407dc1
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407ddb
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x407de4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x140]
mov dword [esp + 0xac], eax
lea eax, [ebp - 0x138]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._pawnSingleAndDblPushes
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x68]
cmp eax, 0xffffffff
je 0x407e4c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x68]
mov edx, dword [eax*8 + 0x410084]
mov eax, dword [eax*8 + 0x410080]
jmp 0x407e56
mov eax, 0
mov edx, 0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
jmp 0x408350
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407ed3
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax*8 + 0x410080]
mov ebx, dword [eax*8 + 0x410084]
mov eax, dword [0x40c018]
mov edx, dword [0x40c01c]
mov edi, ecx
and edi, eax
mov dword [ebp - 0x170], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x16c], edi
mov ebx, dword [ebp - 0x170]
mov esi, dword [ebp - 0x16c]
mov eax, ebx
or eax, esi
test eax, eax
setne al
jmp 0x407f1b
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax*8 + 0x410080]
mov ebx, dword [eax*8 + 0x410084]
mov eax, dword [0x40c010]
mov edx, dword [0x40c014]
mov edi, ecx
and edi, eax
mov dword [ebp - 0x178], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x174], edi
mov ebx, dword [ebp - 0x178]
mov esi, dword [ebp - 0x174]
mov eax, ebx
or eax, esi
test eax, eax
setne al
mov byte [ebp - 0x8d], al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x407f3c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x94]
mov eax, dword [eax + 0x90]
jmp 0x407f4b
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
mov ecx, eax
or ecx, dword [ebp - 0x88]
mov dword [ebp - 0x98], ecx
mov eax, edx
or eax, dword [ebp - 0x84]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x40815e
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax*8 + 0xbaa264]
mov eax, dword [eax*8 + 0xbaa260]
mov ecx, eax
and ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa0], ecx
mov eax, edx
and eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax*8 + 0xbaa264]
mov eax, dword [eax*8 + 0xbaa260]
or dword [ebp - 0x48], eax
or dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax*8 + 0xb69c64]
mov eax, dword [eax*8 + 0xb69c60]
or dword [ebp - 0x48], eax
or dword [ebp - 0x44], edx
mov eax, dword [ebp - 0xa0]
xor ah, 0
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x9c]
xor ah, 0
mov dword [ebp - 0x1cc], eax
mov ebx, dword [ebp - 0x1d0]
mov esi, dword [ebp - 0x1cc]
mov eax, esi
or eax, ebx
test eax, eax
je 0x40807f
mov eax, dword [ebp - 0x8c]
add eax, 7
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
movzx edx, byte [ebp - 0x8d]
lea eax, [ebp - 0x12c]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xb8], eax
mov eax, dword [ebp - 0xa4]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], edx
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._addPawnAdvanceWithPossiblePromos
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax*8 + 0xb69c64]
mov eax, dword [eax*8 + 0xb69c60]
mov ecx, eax
and ecx, dword [ebp - 0x98]
mov dword [ebp - 0xb0], ecx
mov eax, edx
and eax, dword [ebp - 0x94]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xb0]
xor ah, 0
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0xac]
xor ah, 0
mov dword [ebp - 0x1d4], eax
mov ebx, dword [ebp - 0x1d8]
mov esi, dword [ebp - 0x1d4]
mov eax, esi
or eax, ebx
test eax, eax
je 0x40833e
mov eax, dword [ebp - 0x8c]
add eax, 9
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
movzx edx, byte [ebp - 0x8d]
lea eax, [ebp - 0x12c]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xb8], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], edx
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._addPawnAdvanceWithPossiblePromos
jmp 0x40833e
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax*8 + 0xb69e64]
mov eax, dword [eax*8 + 0xb69e60]
mov ecx, eax
and ecx, dword [ebp - 0x98]
mov dword [ebp - 0xc0], ecx
mov eax, edx
and eax, dword [ebp - 0x94]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax*8 + 0xb69e64]
mov eax, dword [eax*8 + 0xb69e60]
or dword [ebp - 0x48], eax
or dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax*8 + 0x969864]
mov eax, dword [eax*8 + 0x969860]
or dword [ebp - 0x48], eax
or dword [ebp - 0x44], edx
mov eax, dword [ebp - 0xc0]
xor ah, 0
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0xbc]
xor ah, 0
mov dword [ebp - 0x1dc], eax
mov ebx, dword [ebp - 0x1e0]
mov esi, dword [ebp - 0x1dc]
mov eax, esi
or eax, ebx
test eax, eax
je 0x408268
mov eax, dword [ebp - 0x8c]
sub eax, 7
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
movzx edx, byte [ebp - 0x8d]
lea eax, [ebp - 0x12c]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xb8], eax
mov eax, dword [ebp - 0xc4]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], edx
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._addPawnAdvanceWithPossiblePromos
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax*8 + 0x969864]
mov eax, dword [eax*8 + 0x969860]
mov ecx, eax
and ecx, dword [ebp - 0x98]
mov dword [ebp - 0xd0], ecx
mov eax, edx
and eax, dword [ebp - 0x94]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xd0]
xor ah, 0
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0xcc]
xor ah, 0
mov dword [ebp - 0x1e4], eax
mov ebx, dword [ebp - 0x1e8]
mov esi, dword [ebp - 0x1e4]
mov eax, esi
or eax, ebx
test eax, eax
je 0x40833e
mov eax, dword [ebp - 0x8c]
sub eax, 9
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
movzx edx, byte [ebp - 0x8d]
lea eax, [ebp - 0x12c]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xb8], eax
mov eax, dword [ebp - 0xd4]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], edx
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._addPawnAdvanceWithPossiblePromos
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x40], eax
and dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x40]
xor ah, 0
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x3c]
xor ah, 0
mov dword [ebp - 0x1ec], eax
mov ebx, dword [ebp - 0x1f0]
mov esi, dword [ebp - 0x1ec]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x407e67
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._getKingMask
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x74]
mov edx, dword [eax*8 + 0xbaa464]
mov eax, dword [eax*8 + 0xbaa460]
or dword [ebp - 0x48], eax
or dword [ebp - 0x44], edx
jmp 0x408504
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x134]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x4083ee
mov eax, dword [ebp - 0xd8]
sub eax, 8
jmp 0x4083f7
mov eax, dword [ebp - 0xd8]
add eax, 8
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x40842a
cmp dword [ebp - 0xdc], 0x2f
jle 0x408420
cmp dword [ebp - 0xdc], 0x37
jg 0x408420
mov eax, 1
jmp 0x408425
mov eax, 0
and eax, 1
jmp 0x40844b
cmp dword [ebp - 0xdc], 7
jle 0x408443
cmp dword [ebp - 0xdc], 0xf
jg 0x408443
mov eax, 1
jmp 0x408448
mov eax, 0
and eax, 1
mov byte [ebp - 0xdd], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
movzx edx, byte [ebp - 0xdd]
lea eax, [ebp - 0x12c]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xb8], eax
mov eax, dword [ebp - 0xd8]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], edx
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._addPawnAdvanceWithPossiblePromos
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x134]
add eax, 0xffffffff
adc edx, 0xffffffff
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x134]
mov edi, ecx
and edi, eax
mov dword [ebp - 0x180], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x17c], edi
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 0x134]
mov edi, eax
xor edi, 0
mov dword [ebp - 0x1f8], edi
mov eax, edx
xor ah, 0
mov dword [ebp - 0x1f4], eax
mov ebx, dword [ebp - 0x1f8]
mov esi, dword [ebp - 0x1f4]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x4083bb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x40854f
mov eax, 0
jmp 0x408554
mov eax, 6
mov dword [ebp - 0xe4], eax
jmp 0x4086e2
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x408592
mov eax, dword [ebp - 0xe8]
sub eax, 0x10
jmp 0x40859b
mov eax, dword [ebp - 0xe8]
add eax, 0x10
mov dword [ebp - 0xec], eax
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x4085b5
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x15c], eax
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov eax, dword [0x410024]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x408694
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, eax
mov eax, dword [ebp - 0x160]
mov dword [edx], eax
mov eax, dword [ebp - 0x15c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x150]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x144]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
add eax, 0xffffffff
adc edx, 0xffffffff
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
mov edi, ecx
and edi, eax
mov dword [ebp - 0x188], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x184], edi
mov eax, dword [ebp - 0x188]
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
mov edi, eax
xor edi, 0
mov dword [ebp - 0x200], edi
mov eax, edx
xor ah, 0
mov dword [ebp - 0x1fc], eax
mov ebx, dword [ebp - 0x200]
mov esi, dword [ebp - 0x1fc]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x40855f
jmp 0x40883e
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0xf0], eax
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x40874d
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x15c], eax
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov eax, dword [0x410024]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xe4]
add eax, 5
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x40882c
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, eax
mov eax, dword [ebp - 0x160]
mov dword [edx], eax
mov eax, dword [ebp - 0x15c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x150]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x144]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x50], eax
and dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x50]
xor ah, 0
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x4c]
xor ah, 0
mov dword [ebp - 0x204], eax
mov ebx, dword [ebp - 0x208]
mov esi, dword [ebp - 0x204]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x408721
jmp 0x408a55
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
mov eax, dword [eax + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xf4]
mov dword [esp], eax
call sym._getBishopAttacks
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x58]
or dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x54]
or dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x80]
not eax
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x7c]
not eax
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x190]
mov edx, dword [ebp - 0x18c]
mov edi, eax
and dword [ebp - 0x58], edi
mov eax, edx
and dword [ebp - 0x54], eax
jmp 0x408a13
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0xf8], eax
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x40891f
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x15c], eax
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov eax, dword [0x410024]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xe4]
add eax, 2
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x408a01
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, eax
mov eax, dword [ebp - 0x160]
mov dword [edx], eax
mov eax, dword [ebp - 0x15c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x150]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x144]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x58], eax
and dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x58]
xor ah, 0
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x54]
xor ah, 0
mov dword [ebp - 0x20c], eax
mov ebx, dword [ebp - 0x210]
mov esi, dword [ebp - 0x20c]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x4088f3
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x20], eax
and dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
xor ah, 0
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x1c]
xor ah, 0
mov dword [ebp - 0x214], eax
mov ebx, dword [ebp - 0x218]
mov esi, dword [ebp - 0x214]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x408873
jmp 0x408c6c
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
mov eax, dword [eax + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xfc]
mov dword [esp], eax
call sym._getRookAttacks
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x60]
or dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x5c]
or dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x80]
not eax
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x7c]
not eax
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x198]
mov edx, dword [ebp - 0x194]
mov edi, eax
and dword [ebp - 0x60], edi
mov eax, edx
and dword [ebp - 0x5c], eax
jmp 0x408c2a
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0x100], eax
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x408b36
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x15c], eax
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov eax, dword [0x410024]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xe4]
add eax, 3
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x408c18
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, eax
mov eax, dword [ebp - 0x160]
mov dword [edx], eax
mov eax, dword [ebp - 0x15c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x150]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x144]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x60], eax
and dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x60]
xor ah, 0
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x5c]
xor ah, 0
mov dword [ebp - 0x21c], eax
mov ebx, dword [ebp - 0x220]
mov esi, dword [ebp - 0x21c]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x408b0a
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x28], eax
and dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
xor ah, 0
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x24]
xor ah, 0
mov dword [ebp - 0x224], eax
mov ebx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x224]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x408a8a
jmp 0x408ed8
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
mov eax, dword [eax + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x104]
mov dword [esp], eax
call sym._getRookAttacks
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
mov eax, dword [eax + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x104]
mov dword [esp], eax
call sym._getBishopAttacks
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x118]
or eax, dword [ebp - 0x110]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x114]
or eax, dword [ebp - 0x10c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x68]
or dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x64]
or dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x80]
not eax
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x7c]
not eax
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x1a0]
mov edx, dword [ebp - 0x19c]
mov edi, eax
and dword [ebp - 0x68], edi
mov eax, edx
and dword [ebp - 0x64], eax
jmp 0x408e96
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0x11c], eax
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x408da2
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x15c], eax
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov eax, dword [0x410024]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xe4]
add eax, 4
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x408e84
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, eax
mov eax, dword [ebp - 0x160]
mov dword [edx], eax
mov eax, dword [ebp - 0x15c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x150]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x144]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x68], eax
and dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x68]
xor ah, 0
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x64]
xor ah, 0
mov dword [ebp - 0x22c], eax
mov ebx, dword [ebp - 0x230]
mov esi, dword [ebp - 0x22c]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x408d76
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x30], eax
and dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
xor ah, 0
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x2c]
xor ah, 0
mov dword [ebp - 0x234], eax
mov ebx, dword [ebp - 0x238]
mov esi, dword [ebp - 0x234]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x408ca1
jmp 0x4090ea
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
mov edx, dword [eax*8 + 0xb69a64]
mov eax, dword [eax*8 + 0xb69a60]
or dword [ebp - 0x48], eax
or dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x120]
mov edx, dword [eax*8 + 0xb69a60]
mov ecx, dword [eax*8 + 0xb69a64]
mov eax, dword [ebp - 0x80]
not eax
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x7c]
not eax
mov dword [ebp - 0x1a4], eax
mov ebx, dword [ebp - 0x1a8]
mov esi, dword [ebp - 0x1a4]
mov eax, ebx
and eax, edx
mov dword [ebp - 0x70], eax
mov eax, ecx
and eax, esi
mov dword [ebp - 0x6c], eax
jmp 0x4090a8
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__ctzdi2
mov dword [ebp - 0x124], eax
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x408fb4
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x15c], eax
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov eax, dword [0x410024]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xe4]
add eax, 1
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov ebx, esp
mov edx, eax
mov eax, 0x2a
mov edi, ebx
mov esi, edx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x409096
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, eax
mov eax, dword [ebp - 0x160]
mov dword [edx], eax
mov eax, dword [ebp - 0x15c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x150]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x144]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x70], eax
and dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x70]
xor ah, 0
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x6c]
xor ah, 0
mov dword [ebp - 0x23c], eax
mov ebx, dword [ebp - 0x240]
mov esi, dword [ebp - 0x23c]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x408f88
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add eax, 0xffffffff
adc edx, 0xffffffff
and dword [ebp - 0x38], eax
and dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
xor ah, 0
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x34]
xor ah, 0
mov dword [ebp - 0x244], eax
mov ebx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x244]
mov eax, esi
or eax, ebx
test eax, eax
jne 0x408f0d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x4093d7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
and eax, 1
test eax, eax
je 0x40927b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
mov eax, dword [0x40c770]
mov edx, dword [0x40c774]
mov edi, ecx
and edi, eax
mov dword [ebp - 0x1b0], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x1ac], edi
mov ebx, dword [ebp - 0x1b0]
mov esi, dword [ebp - 0x1ac]
mov eax, ebx
or eax, esi
test eax, eax
sete al
mov byte [ebp - 0x125], al
cmp byte [ebp - 0x125], 0
je 0x40927b
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x4091a3
mov dword [ebp - 0x160], 3
mov dword [ebp - 0x15c], 1
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x14c], 0xffffffff
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov edx, esp
mov ebx, eax
mov eax, 0x2a
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x40927b
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 0x160]
mov dword [eax], edx
mov edx, dword [ebp - 0x15c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x158]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x154]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x150]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x14c]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x148]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x144]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
and eax, 2
test eax, eax
je 0x40967d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
mov eax, dword [0x40c778]
mov edx, dword [0x40c77c]
mov edi, ecx
and edi, eax
mov dword [ebp - 0x1b8], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x1b4], edi
mov ebx, dword [ebp - 0x1b8]
mov esi, dword [ebp - 0x1b4]
mov eax, ebx
or eax, esi
test eax, eax
sete al
mov byte [ebp - 0x126], al
cmp byte [ebp - 0x126], 0
je 0x40967d
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x4092f6
mov dword [ebp - 0x160], 3
mov dword [ebp - 0x15c], 5
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], 2
mov dword [ebp - 0x14c], 0xffffffff
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov edx, esp
mov ebx, eax
mov eax, 0x2a
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x40967d
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 0x160]
mov dword [eax], edx
mov edx, dword [ebp - 0x15c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x158]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x154]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x150]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x14c]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x148]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x144]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
jmp 0x40967d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
and eax, 4
test eax, eax
je 0x40952a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
mov eax, dword [0x40c780]
mov edx, dword [0x40c784]
mov edi, ecx
and edi, eax
mov dword [ebp - 0x1c0], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x1bc], edi
mov ebx, dword [ebp - 0x1c0]
mov esi, dword [ebp - 0x1bc]
mov eax, ebx
or eax, esi
test eax, eax
sete al
mov byte [ebp - 0x127], al
cmp byte [ebp - 0x127], 0
je 0x40952a
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x409452
mov dword [ebp - 0x160], 0x3b
mov dword [ebp - 0x15c], 0x39
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], 4
mov dword [ebp - 0x14c], 0xffffffff
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov edx, esp
mov ebx, eax
mov eax, 0x2a
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x40952a
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 0x160]
mov dword [eax], edx
mov edx, dword [ebp - 0x15c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x158]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x154]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x150]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x14c]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x148]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x144]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
and eax, 8
test eax, eax
je 0x40967d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov ebx, dword [eax + 0x84]
mov eax, dword [0x40c788]
mov edx, dword [0x40c78c]
mov edi, ecx
and edi, eax
mov dword [ebp - 0x1c8], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x1c4], edi
mov ecx, dword [ebp - 0x1c8]
mov ebx, dword [ebp - 0x1c4]
mov eax, ecx
or eax, ebx
test eax, eax
sete al
mov byte [ebp - 0x128], al
cmp byte [ebp - 0x128], 0
je 0x40967d
mov ecx, 0
mov eax, 0x20
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x160], ecx
add eax, 4
cmp eax, edx
jb 0x4095a5
mov dword [ebp - 0x160], 0x3b
mov dword [ebp - 0x15c], 0x3d
mov eax, dword [0x40c7b0]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], 8
mov dword [ebp - 0x14c], 0xffffffff
lea eax, [ebp - 0x160]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
mov edx, esp
mov ebx, eax
mov eax, 0x2a
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
call sym._validateMove
mov eax, dword [ebp - 0x150]
cmp eax, 1
jne 0x40967d
mov eax, dword [ebp - 0x12c]
shl eax, 5
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 0x160]
mov dword [eax], edx
mov edx, dword [ebp - 0x15c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x158]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x154]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x150]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x14c]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x148]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x144]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 0xa0], eax
mov dword [ecx + 0xa4], edx
mov eax, dword [ebp - 0x12c]
add esp, 0x2fc
pop ebx
pop esi
pop edi
pop ebp
ret