Function at 0x405cf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4507b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x504
push ebx
push esi
mov esi, dword [ecx + 0x3c]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
cmp esi, edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x20], esi
je 0x4065ba
mov eax, dword [ecx + 0x1c]
push 0xffff0000
push edi
push 0x1101
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.select__from_house
lea ecx, [ebp - 0x38]
call fcn.00433c04
mov eax, dword [0x485184]
mov dword [ebp - 4], edi
cmp eax, 1
jg 0x406223
inc eax
mov byte [ebp - 4], 1
mov dword [0x485184], eax
add eax, 8
cmp eax, 0x10
je 0x406220
lea ecx, [ebp - 0x40]
push 0x45f140
push ecx
mov dword [ebp - 0x40], 0x3499
call fcn.004197bd
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 3
call esi
mov cl, 0x65
mov al, 0x6c
push 3
mov byte [ebp - 0x34], 0x6b
mov byte [ebp - 0x33], cl
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x6e
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], al
mov byte [ebp - 0x2e], 0x62
mov byte [ebp - 0x2d], 0x61
mov byte [ebp - 0x2c], 0x73
mov byte [ebp - 0x2b], cl
mov byte [ebp - 0x2a], 0x2e
mov byte [ebp - 0x29], 0x64
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], al
mov byte [ebp - 0x26], 0
call esi
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 3
mov ebx, eax
call esi
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x30b]
mov byte [ebp - 0x30c], 0
rep stosd dword es:[edi], eax
push 3
stosw word es:[edi], ax
call esi
lea eax, [ebp - 0x30c]
push 0xff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
call esi
mov ebx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30c]
push ecx
mov ecx, ebx
call fcn.00405cb0
push 3
call esi
push 3
call esi
push 3
mov dword [ebp - 0x14], 0
call esi
mov dx, word [ebp - 0x30c]
mov al, byte [ebp - 0x30a]
lea ecx, [ebp - 0x30c]
mov word [ebp - 0x14], dx
cmp ecx, 0x298
mov byte [ebp - 0x12], al
jne 0x406016
mov ecx, ebx
mov byte [ebp - 0x14], 0x42
mov byte [ebp - 0x15], 1
call fcn.00405aa0
mov ecx, ebx
call fcn.00405ac0
mov esi, dword [ebp - 0x14]
push str._enter_row_and_column
push esi
push str.Player
push 0x487688
call fcn.00408400
add esp, 8
push eax
call fcn.00408690
add esp, 8
push eax
call fcn.00408400
add esp, 8
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x24]
mov ecx, 0x487718
push edx
push eax
call fcn.00407bb0
mov ecx, eax
call fcn.00407bb0
mov eax, dword [ebp - 0x24]
test eax, eax
jl 0x405fa4
cmp eax, 0xf
jge 0x405fa4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jl 0x405fa4
cmp ecx, 0xf
jge 0x405fa4
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
lea eax, [eax + ecx + 0x48509c]
cmp byte [eax], 0x2e
jne 0x405fa4
mov dl, byte [ebp - 0x14]
mov ecx, ebx
mov byte [eax], dl
call fcn.00405ac0
push esi
mov ecx, ebx
call fcn.00405b60
test al, al
je 0x405f91
push str._wins_
push esi
push str.Player
push 0x487688
call fcn.00408400
add esp, 8
push eax
call fcn.00408690
add esp, 8
push eax
call fcn.00408400
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00407a40
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x405f6c
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x405f6c
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x405f8d
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x405f85
or al, 4
push 0
push eax
call fcn.004274a4
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x14], 0x42
setne cl
dec ecx
and ecx, 0x15
add ecx, 0x42
mov byte [ebp - 0x14], cl
jmp 0x406005
push str.Invalid_move._Try_again.
push 0x487688
call fcn.00408400
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00407a40
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], 6
jne 0x405fe4
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x405fe4
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x406005
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x405ffd
or al, 4
push 0
push eax
call fcn.004274a4
mov al, byte [ebp - 0x15]
test al, al
jne 0x405e70
mov eax, 0x40621b
ret
lea ecx, [ebp - 0x30c]
cmp ecx, 0x22fa
jne 0x4060bf
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0x47f2e0
push 0
call edi
push 3
call esi
mov ecx, ebx
call fcn.00405600
push 0
push 0
push 0x47f2e0
push 0
call edi
push 3
call esi
mov al, byte [0x48517d]
test al, al
jne 0x4060b8
mov ecx, ebx
call fcn.00405660
push 0
push 0
push 0x47f2e0
push 0
call edi
push 3
call esi
mov ecx, ebx
call fcn.004058c0
push 0
push 0
push 0x47f2e0
push 0
call edi
push 3
call esi
mov ecx, ebx
call fcn.00405950
push 0
push 0
push 0x47f2e0
push 0
call edi
push 3
call esi
push 0x335
call esi
mov al, byte [0x48517d]
test al, al
je 0x406060
push 0
call fcn.004196ca
mov edx, dword [ebp - 0x14]
push 0xe6d23
push edx
push 0x17e00
push 0x46749c
mov ecx, ebx
call fcn.00405c70
push 0x17e00
push 0x46749c
call fcn.0040f5d0
add esp, 8
mov edi, eax
mov dword [ebp - 0x1c], edi
push 1
call esi
test edi, edi
je 0x40620c
push 2
mov byte [ebp - 0x16], 0x79
mov byte [ebp - 0x15], 0
call esi
push 2
mov byte [ebp - 0x22], 0x6f
mov byte [ebp - 0x21], 0
call esi
push 2
mov byte [ebp - 0x12], 0x75
mov byte [ebp - 0x11], 0
call esi
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x50b]
mov byte [ebp - 0x50c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x16]
lea ecx, [ebp - 0x50c]
push eax
push ecx
mov ecx, ebx
call fcn.00405c30
push 2
call esi
lea edx, [ebp - 0x22]
lea eax, [ebp - 0x50c]
push edx
push eax
mov ecx, ebx
call fcn.00405c30
push 2
call esi
lea ecx, [ebp - 0x12]
lea edx, [ebp - 0x50c]
push ecx
push edx
mov ecx, ebx
call fcn.00405c30
push 1
call esi
push 1
call esi
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x50c]
push eax
push ecx
call fcn.0040fe30
add esp, 8
mov edi, eax
mov dword [ebp - 0x1c], edi
push 2
call esi
test edi, edi
je 0x40620c
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x40b]
mov byte [ebp - 0x40c], 0
rep stosd dword es:[edi], eax
push 2
stosw word es:[edi], ax
call esi
lea edx, [ebp - 0x40c]
push 0x47f2dc
push edx
mov ecx, ebx
call fcn.00405c30
push 2
call esi
lea eax, [ebp - 0x40c]
push 0x47f2d8
push eax
mov ecx, ebx
call fcn.00405c30
push 2
call esi
lea ecx, [ebp - 0x40c]
push 0x47f2d4
push ecx
mov ecx, ebx
call fcn.00405c30
push 2
call esi
lea edx, [ebp - 0x40c]
push edx
call dword [ebp - 0x1c]
add esp, 4
push 2
call esi
push 1
call esi
push 0
call fcn.004196ca
mov esi, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x64]
call fcn.00404660
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x64]
neg eax
sbb eax, eax
mov dword [ebp - 0x58], edi
and eax, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
push 4
mov byte [ebp - 4], 3
call fcn.0042fcfe
mov ebx, dword [ebp - 0x38]
add esp, 4
cmp ebx, edi
mov dword [ebp - 0x24], eax
jne 0x406269
mov ebx, 0x467318
add esi, 0x21c
lea ecx, [ebp - 0x48]
push esi
call fcn.004039f0
mov esi, eax
cmp esi, edi
jl 0x4062ec
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x14]
push ecx
push str.:s_f
mov edx, dword [eax]
push eax
mov byte [ebp - 4], 4
call dword [edx]
mov esi, eax
cmp esi, edi
jl 0x4062d7
cmp ebx, edi
jne 0x4062a4
xor eax, eax
jmp 0x4062c6
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00419380
mov eax, esp
push edi
push esi
push ebx
push eax
call fcn.00402570
mov ecx, dword [ebp - 0x14]
push eax
push 0x45b920
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, edi
je 0x4062e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, edi
jge 0x4062f3
mov ebx, dword [ebp - 0x24]
mov eax, esi
jmp 0x406305
mov ebx, dword [ebp - 0x24]
push 1
push ebx
push edi
lea ecx, [ebp - 0x20c]
call fcn.00404980
cmp eax, edi
je 0x4063a4
push edi
push edi
push str.error
call fcn.0043b1d2
push ebx
call fcn.0042fd27
add esp, 4
lea esi, [ebp - 0x20c]
lea edx, [ebp - 0x48]
neg esi
sbb esi, esi
and esi, edx
mov dword [ebp - 0x20], esi
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00404340
mov esi, dword [esi]
mov byte [ebp - 4], 5
cmp esi, edi
je 0x40634f
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 7
cmp eax, edi
je 0x40636b
push eax
lea ecx, [ebp - 0x64]
call fcn.00403f90
lea ecx, [ebp - 0x58]
call fcn.00402bc0
lea esi, [ebp - 0x20c]
lea ecx, [ebp - 0x58]
neg esi
sbb esi, esi
and esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00402bc0
lea ecx, [esi + 4]
mov byte [ebp - 4], 8
call fcn.00403b00
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00403b00
jmp 0x4065ab
push ebx
call fcn.0042fd27
mov eax, dword [ebp - 0x4c]
add esp, 4
cmp eax, edi
je 0x4063c9
mov eax, dword [ebp - 0x58]
push edi
push edi
lea ecx, [ebp - 0x4c]
mov edx, dword [eax]
push edi
push ecx
push 1
push eax
call dword [edx + 0x18]
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp - 0x58]
push edi
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp eax, edi
jge 0x4063db
mov esi, eax
jmp 0x406421
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], edi
call fcn.00402c20
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
push edx
push 1
mov ecx, dword [eax]
push edi
push edi
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, edi
jne 0x4064c6
lea ecx, [ebp - 0x58]
call fcn.00404110
mov esi, eax
cmp esi, edi
jge 0x406423
lea ecx, [ebp - 0x58]
call fcn.00402c20
cmp esi, edi
jne 0x4064c6
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x1d8]
push eax
push ecx
push edx
push ecx
lea eax, [ebp - 0x98]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00433c04
mov ecx, dword [ebp - 0x3c]
call fcn.004066d0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], edi
cmp eax, edi
je 0x406477
mov eax, dword [ebp - 0x58]
push edi
push edi
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
push edi
push edx
push 1
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x4c], edi
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
push edx
push 1
mov ecx, dword [eax]
push edi
push edi
push eax
call dword [ecx + 0x14]
cmp eax, edi
jne 0x4064c6
lea ecx, [ebp - 0x58]
call fcn.00404110
mov esi, eax
cmp esi, edi
jge 0x4064c0
cmp dword [ebp - 0x4c], edi
je 0x4064be
mov eax, dword [ebp - 0x58]
push edi
push edi
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
push edi
push edx
push 1
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x4c], edi
cmp esi, edi
je 0x406429
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x40654a
cmp dword [ebp - 0x60], edi
jbe 0x40652e
mov dword [ebp - 0x14], edi
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x45b380
push eax
mov byte [ebp - 4], 0xa
call dword [ecx]
cmp eax, edi
jl 0x40650d
mov eax, dword [ebp - 0x60]
xor esi, esi
cmp eax, edi
jbe 0x40650d
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x14]
push edi
mov edx, dword [edx + esi*8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x60]
inc esi
cmp esi, eax
jb 0x4064f4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], edi
push eax
call fcn.0042fd27
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x64], edi
mov byte [ebp - 4], 3
call fcn.00403b00
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x40654a
lea ecx, [ebp - 0x58]
call fcn.00402c20
lea ecx, [ebp - 0x58]
call fcn.00404730
lea ecx, [ebp - 0x54]
call fcn.00404730
lea esi, [ebp - 0x20c]
lea ecx, [ebp - 0x48]
neg esi
sbb esi, esi
and esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00404340
mov esi, dword [esi]
mov byte [ebp - 4], 0xb
cmp esi, edi
je 0x406577
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0xd
cmp eax, edi
je 0x406593
push eax
lea ecx, [ebp - 0x64]
call fcn.00403f90
lea ecx, [ebp - 0x58]
call fcn.00402bc0
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x58]
neg ecx
sbb ecx, ecx
mov byte [ebp - 4], 0
and ecx, eax
call fcn.00402b10
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00433b96
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x51c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret