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

Disassembly:
jmp 0x6110a0
push 0xffffffffffffffff
push 0x668f3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0041093d
push edi
lea ecx, [esp + 0x68]
mov esi, eax
call sub.MFC42.DLL_CClientDC::CClientDC
xor ebp, ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x2e8], ebp
call sub.MFC42.DLL_CDC::SaveDC
cmp dword [esi + 0x50a], ebp
jne 0x6111ec
lea ebx, [esi + 0x512]
push 0xffffffffffffffff
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [edi + 0x194]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fdiv qword [edi + 0x70]
fmul qword [0x67b400]
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x2f8]
push ebx
push ecx
mov ecx, esi
call fcn.00408b11
cmp eax, ebp
mov dword [esi + 0x50a], eax
je 0x611179
mov dword [eax + 0x70], ebp
mov edx, dword [esi + 0x50a]
mov ebx, 1
mov ecx, esi
mov dword [edx + 0x1f0], ebx
call fcn.0040213f
mov eax, dword [edi + 0x20]
push ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x18c], ebx
mov dword [edi + 0x198], ebx
push ecx
jmp 0x6111c9
lea edx, [esp + 0x2f4]
mov ecx, esi
push edx
call fcn.00407e05
cmp eax, ebp
mov dword [esi + 0x50a], eax
je 0x6111d9
mov dword [eax + 0x70], ebp
mov eax, dword [esi + 0x50a]
mov ebx, 1
mov ecx, esi
mov dword [eax + 0x1f0], ebx
call fcn.0040213f
mov ecx, dword [edi + 0x20]
push ebx
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x20]
mov dword [edi + 0x18c], ebx
mov dword [edi + 0x198], ebp
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebp
push ebp
push ebp
mov ecx, edi
call fcn.0040a2f9
xor eax, eax
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], ebp
jmp 0x611e39
push ebp
push ebp
push 2
mov ecx, edi
mov dword [edi + 0x18c], ebp
call fcn.0040a2f9
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.004037a6
mov ecx, eax
mov eax, dword [ecx]
cmp eax, ebp
mov dword [esp + 0x34], eax
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], ecx
jle 0x61122d
mov edx, dword [esi + 0x50a]
mov byte [esp + 0x1b], 1
test byte [edx + 0x70], 1
jne 0x611232
mov byte [esp + 0x1b], 0
cmp ecx, ebp
jle 0x611247
mov eax, dword [esi + 0x50a]
mov byte [esp + 0x13], 1
test byte [eax + 0x70], 2
jne 0x61124c
mov byte [esp + 0x13], 0
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x90]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x90]
mov ecx, edi
push eax
call fcn.004024cd
mov ecx, dword [esp + 0x2f8]
mov edx, dword [esp + 0x2f4]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call ebx
test eax, eax
je 0x611d58
mov eax, dword [edi + 0x198]
cmp eax, 1
jne 0x6117d2
lea ecx, [esp + 0x40]
call fcn.0063d896
mov dword [esp + 0x40], 0x679894
mov eax, dword [edi + 0x194]
mov byte [esp + 0x2e8], 1
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fdiv qword [edi + 0x70]
fmul qword [0x67b400]
call sub.MSVCRT.dll__ftol
push eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x2f8]
push edx
push eax
mov ecx, esi
call fcn.00408b11
push ebp
push ebp
test eax, eax
push ebp
mov ecx, edi
je 0x611551
call fcn.0040a2f9
push ebp
lea ecx, [esp + 0xa4]
call fcn.0040b7ad
lea ecx, [esp + 0xa0]
mov byte [esp + 0x2e8], 2
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
je 0x611362
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::RestoreDC
lea ecx, [esp + 0x100]
mov byte [esp + 0x2e8], 3
call sub.MFC42.DLL_CButton::CButton
mov byte [esp + 0x2e8], 1
lea ecx, [esp + 0xa0]
jmp 0x6117b7
mov ecx, dword [esp + 0x44]
mov ebx, 1
mov dword [esp + 0x14], 3
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x78], eax
mov ecx, dword [edx + 4]
lea edx, [esp + 0x54]
mov dword [esp + 0x7c], ecx
push edx
mov ecx, esi
call fcn.004037a6
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1cb9]
cmp eax, 7
ja case.0x6113a2.4
jmp dword [eax*4 + 0x611e74]
mov dword [esp + 0x14], 1
jmp case.0x6113a2.4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], 1
test ebp, ebp
mov edx, dword [eax]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x58], eax
je 0x611498
jmp 0x611491
mov dword [esp + 0x14], 2
jmp case.0x6113a2.4
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], 2
mov eax, dword [edx]
mov edx, dword [eax]
mov dword [esp + 0x54], edx
mov ebp, dword [eax + 4]
jmp 0x611460
mov eax, dword [esp + 0x44]
test ebp, ebp
mov edx, dword [eax]
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov edx, dword [edx + 4]
mov dword [esp + 0x30], edx
je 0x61141c
cdq
idiv ebp
mov ebx, eax
lea eax, [ebx + ebx + 1]
mov edx, dword [esp + 0x2c]
imul eax, ebp
sub eax, edx
test ecx, ecx
mov dword [esp + 0x78], eax
je 0x61143a
mov eax, dword [esp + 0x30]
cdq
idiv ecx
mov ebx, eax
lea eax, [ebx + 1]
mov ebp, dword [esp + 0x30]
imul eax, ecx
imul ecx, ebx
sub eax, ebp
add ecx, eax
mov dword [esp + 0x7c], ecx
jmp case.0x6113a2.4
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov eax, dword [edx]
mov dword [esp + 0x54], eax
mov ebp, dword [edx + 4]
test ecx, ecx
je 0x61146b
mov eax, ebp
cdq
idiv ecx
mov ebx, eax
lea eax, [ebx + 1]
imul eax, ecx
imul ecx, ebx
sub eax, ebp
add ecx, eax
mov dword [esp + 0x7c], ecx
jmp case.0x6113a2.4
mov ecx, dword [esp + 0x44]
test ebp, ebp
mov edx, dword [ecx]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x58], eax
je 0x611498
mov eax, ecx
cdq
idiv ebp
mov ebx, eax
lea eax, [ebx + 1]
imul eax, ebp
imul ebp, ebx
sub eax, ecx
add ebp, eax
mov dword [esp + 0x78], ebp
mov ecx, dword [esi + 0x516]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x7c]
mov eax, dword [edx]
mov ebp, dword [edx + 4]
mov edx, dword [esp + 0x78]
sub edx, eax
sub ecx, ebp
mov eax, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x50a]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::Offset_class_CSize_const__]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, esi
call fcn.004037a6
mov ecx, dword [esi + 0x50a]
push eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::YesBar_class_CSize_const___int_]
mov ecx, dword [edi + 0x198]
push 0xffffffffffffffff
inc ecx
mov dword [edi + 0x198], ecx
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::RestoreDC
lea ecx, [esp + 0x100]
mov byte [esp + 0x2e8], 4
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esp + 0xa0]
mov byte [esp + 0x2e8], 1
call fcn.0063d7b8
lea ecx, [esp + 0x40]
mov byte [esp + 0x2e8], 0
call sub.MFC42.DLL_CPtrArray::CPtrArray
jmp 0x611e44
call fcn.0040a2f9
push ebp
lea ecx, [esp + 0x144]
call fcn.004101a9
lea ecx, [esp + 0x140]
mov byte [esp + 0x2e8], 5
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
je 0x611619
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::RestoreDC
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x2e8], 0xa
call sub.MFC42.DLL_CEdit::CEdit
lea ecx, [esp + 0x260]
mov byte [esp + 0x2e8], 9
call sub.MFC42.DLL_CEdit::CEdit
lea ecx, [esp + 0x220]
mov byte [esp + 0x2e8], 8
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x2e8], 7
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x2e8], 6
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esp + 0x140]
mov byte [esp + 0x2e8], 1
call fcn.0063d7b8
lea ecx, [esp + 0x40]
mov byte [esp + 0x2e8], 0
call sub.MFC42.DLL_CPtrArray::CPtrArray
jmp 0x611e44
mov ecx, dword [esp + 0x2f8]
mov eax, dword [esp + 0x2f4]
lea edx, [esp + 0x54]
mov dword [esp + 0x38], ecx
push edx
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.004037a6
mov ebx, dword [eax]
mov ecx, esi
mov ebp, dword [eax + 4]
lea eax, [esp + 0x54]
push eax
call fcn.00410fcd
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov ecx, 1
mov edx, dword [eax + 4]
test ebx, ebx
mov dword [esp + 0x30], edx
je 0x611686
mov ecx, dword [esp + 0x34]
mov eax, ecx
cdq
idiv ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
cdq
idiv ebx
mov eax, ebx
mov ecx, edx
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
mov ecx, dword [esp + 0x1c]
jle 0x611686
inc ecx
imul ebx, ecx
test ebp, ebp
mov dword [esp + 0x34], ebx
je 0x6116af
mov ebx, dword [esp + 0x38]
mov eax, ebx
cdq
idiv ebp
mov ecx, eax
mov eax, ebx
cdq
idiv ebp
mov eax, ebp
mov ebx, edx
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x6116af
inc ecx
fild dword [esp + 0x34]
imul ebp, ecx
fadd qword [esi + 0x612]
mov dword [esp + 0x38], ebp
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x38]
mov ebx, eax
fadd qword [esi + 0x61a]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add ebx, edx
mov edx, dword [esi + 0x516]
add eax, ecx
mov edx, dword [edx]
mov ecx, dword [edx]
sub ebx, ecx
mov ecx, dword [esi + 0x50a]
mov ebp, dword [edx + 4]
mov dword [esp + 0x24], ebx
sub eax, ebp
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::Offset_class_CSize_const__]
mov ecx, dword [esi + 0x1cb9]
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, esi
call fcn.004037a6
mov ecx, dword [esi + 0x50a]
push eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::YesBar_class_CSize_const___int_]
mov ecx, dword [edi + 0x198]
push 0xffffffffffffffff
inc ecx
mov dword [edi + 0x198], ecx
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::RestoreDC
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x2e8], 0xf
call sub.MFC42.DLL_CEdit::CEdit
lea ecx, [esp + 0x260]
mov byte [esp + 0x2e8], 0xe
call sub.MFC42.DLL_CEdit::CEdit
lea ecx, [esp + 0x220]
mov byte [esp + 0x2e8], 0xd
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x2e8], 0xc
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x2e8], 0xb
call sub.MFC42.DLL_CButton::CButton
mov byte [esp + 0x2e8], 1
lea ecx, [esp + 0x140]
call fcn.0063d7b8
lea ecx, [esp + 0x40]
mov byte [esp + 0x2e8], 0
call sub.MFC42.DLL_CPtrArray::CPtrArray
jmp 0x611e44
cmp eax, ebp
jne 0x611a29
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x90]
push edx
push eax
mov ecx, edi
call fcn.0040946c
cmp eax, ebp
mov dword [esp + 0x20], eax
je 0x611a29
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
push ecx
mov ecx, dword [esi + 0x50a]
add ecx, 0x80
call ebx
mov ebp, dword [eax]
mov ecx, dword [esp + 0x20]
add ecx, 0x80
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x88]
push eax
mov dword [esp + 0x2c], edx
call ebx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
sub ecx, edx
lea edx, [esp + 0x24]
sub eax, ebp
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.004037a6
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov ebp, dword [eax + 4]
mov eax, dword [esp + 0x2c]
cdq
idiv ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x50a]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x2c], edx
cdq
idiv ebp
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], edx
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::Offset_class_CSize_const__]
lea ecx, [esp + 0x54]
push 3
push ecx
mov ecx, dword [esi + 0x50a]
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::YesBar_class_CSize_const___int_]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x50a]
push edx
add ecx, 0x80
call ebx
mov ebx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [esp + 0x18], 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], 3
call fcn.004037a6
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x8c]
cmp eax, 7
ja case.0x6118f2.4
jmp dword [eax*4 + 0x611e94]
mov dword [esp + 0x20], 1
jmp case.0x6118f2.4
test ebp, ebp
mov dword [esp + 0x20], 1
je 0x6119b7
jmp 0x6119ae
mov dword [esp + 0x20], 2
jmp case.0x6118f2.4
mov dword [esp + 0x20], 2
test ecx, ecx
je 0x61193f
mov eax, dword [esp + 0x44]
cdq
idiv ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x44]
lea eax, [edx + 1]
imul eax, ecx
imul ecx, edx
sub eax, ebp
add ecx, eax
mov dword [esp + 0x44], ecx
jmp case.0x6118f2.4
mov edx, dword [esp + 0x44]
mov dword [esp + 0x24], ebx
test ebp, ebp
mov dword [esp + 0x28], edx
je 0x611973
mov eax, ebx
cdq
idiv ebp
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
lea eax, [edx + edx + 1]
imul eax, ebp
sub eax, ebx
test ecx, ecx
mov ebx, eax
je 0x611993
mov eax, dword [esp + 0x28]
cdq
idiv ecx
mov dword [esp + 0x14], eax
mov edx, eax
lea eax, [edx + 1]
mov ebp, dword [esp + 0x28]
imul eax, ecx
imul ecx, edx
sub eax, ebp
add ecx, eax
mov dword [esp + 0x44], ecx
jmp case.0x6118f2.4
test ebp, ebp
je 0x6119b7
mov eax, ebx
cdq
idiv ebp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 1]
imul eax, ebp
imul ebp, ecx
sub eax, ebx
add ebp, eax
mov ebx, ebp
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x50a]
add ecx, 0x80
call dword [sym.imp.zmathdll.dll_public:_class_CPoint____thiscall_ZPointArray::operator___int_]
mov edx, eax
mov eax, dword [esp + 0x44]
mov ecx, dword [edx]
sub ebx, ecx
mov ecx, dword [esi + 0x50a]
mov ebp, dword [edx + 4]
mov dword [esp + 0x24], ebx
sub eax, ebp
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::Offset_class_CSize_const__]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.004037a6
mov ecx, dword [esi + 0x50a]
push eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::YesBar_class_CSize_const___int_]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [esi + 0x50a]
lea edx, [esp + 0x78]
push edx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [eax]
test ecx, ecx
mov ebp, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x48], edx
mov ebx, dword [eax + 0xc]
jge 0x611a83
mov al, byte [esp + 0x1b]
test al, al
je 0x611a64
mov eax, ecx
cdq
idiv dword [esp + 0x34]
add edx, dword [esp + 0x34]
sub ecx, edx
neg ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x50a]
push eax
mov dword [esp + 0x5c], 0
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::Offset_class_CSize_const__]
test ebp, ebp
jge 0x611abd
mov al, byte [esp + 0x13]
test al, al
je 0x611a9c
mov ecx, dword [esp + 0x38]
mov eax, ebp
cdq
idiv ecx
add edx, ecx
sub ebp, edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
neg ebp
push ecx
mov ecx, dword [esi + 0x50a]
mov dword [esp + 0x2c], ebp
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::Offset_class_CSize_const__]
xor ebp, ebp
mov ecx, dword [edi + 0x1ec]
cmp ebx, ecx
jle 0x611b07
mov al, byte [esp + 0x13]
test al, al
je 0x611ade
mov eax, ebx
cdq
idiv dword [esp + 0x38]
mov eax, dword [esp + 0x38]
sub eax, edx
add ebx, eax
mov eax, ecx
lea ecx, [esp + 0x2c]
sub eax, ebx
push ecx
mov ecx, dword [esi + 0x50a]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::Offset_class_CSize_const__]
mov ecx, dword [edi + 0x1ec]
mov ebx, ecx
test ebp, ebp
mov dword [esp + 0x20], 0xf
je 0x611b97
cmp ebx, ecx
je 0x611b97
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x611bed
mov edx, dword [esi + 0x50a]
push 1
push 1
push edx
mov ecx, edi
call fcn.00407c2a
test eax, eax
je 0x611b5a
mov eax, dword [esi + 0x50a]
push 1
push 3
push eax
mov ecx, edi
call fcn.00407c2a
test eax, eax
je 0x611b5a
mov ebx, 1
jmp 0x611b5c
xor ebx, ebx
xor ebp, ebp
test ebx, ebx
je 0x611bbd
mov ecx, dword [esi + 0x50a]
push 1
push 1
push ecx
mov ecx, edi
call fcn.00407c2a
cmp eax, 1
jne 0x611bb9
mov edx, dword [esi + 0x50a]
push eax
push 3
push edx
mov ecx, edi
call fcn.00407c2a
cmp eax, 1
jne 0x611bb9
inc ebp
cmp ebp, 4
jl 0x611b5e
jmp 0x611bb9
mov eax, dword [esi + 0x50a]
push 1
push 1
push eax
mov ecx, edi
call fcn.00407c2a
neg ebp
sbb ebp, ebp
mov ebx, eax
and ebp, 0xfffffffc
add ebp, 0xb
mov dword [esp + 0x20], ebp
test ebx, ebx
jne 0x611bf2
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x50a]
push ecx
push edx
mov ecx, edi
call fcn.00403b61
mov ebx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x611bde
test ebx, ebx
je 0x611bf2
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jge 0x611bf2
jmp 0x611a2d
mov ebx, 1
mov ecx, dword [esi + 0x50a]
lea edx, [esp + 0x54]
push edx
mov eax, dword [ecx]
call dword [eax]
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov ebp, dword [edx + 8]
mov dword [esp + 0x48], ebp
xor ebp, ebp
mov edx, dword [edx + 0xc]
cmp ebx, ebp
je 0x611ce2
cmp eax, ebp
jl 0x611ce2
cmp ecx, ebp
jl 0x611ce2
cmp edx, dword [edi + 0x1ec]
jg 0x611ce2
lea eax, [edi + 0x19c]
push ebp
push eax
mov ecx, esi
call fcn.004039d1
mov ecx, dword [esi + 0x50a]
mov dword [ecx + 0x1f0], ebp
mov ecx, esi
call fcn.0040213f
cmp dword [edi + 0x210], ebp
je 0x611cc7
mov edx, dword [edi + 0x200]
push 1
push ebp
lea ecx, [edi + 0x1fc]
mov eax, dword [edx]
mov dword [esi + 0x50a], eax
call sub.MFC42.DLL_CPtrArray::RemoveAt
cmp dword [edi + 0x204], ebp
jne 0x611c8c
mov dword [edi + 0x210], ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::RestoreDC
mov eax, 0x7fffffff
push ebp
mov ecx, eax
mov dword [edi + 0x120], eax
mov dword [edi + 0x124], ecx
push ebp
push 2
mov ecx, edi
call fcn.0040a2f9
mov ecx, dword [edi + 0x20]
push 1
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x611e44
mov edx, dword [edi + 0x20]
push 1
push ebp
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, edi
call fcn.00402c52
xor ebp, ebp
jmp 0x611dc4
mov ecx, dword [esi + 0x50a]
lea edx, [esp + 0x54]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov al, byte [esp + 0x1b]
test al, al
je 0x611d18
mov ebp, dword [esp + 0x2f4]
mov eax, ebp
sub eax, ecx
cdq
idiv dword [esp + 0x34]
sub ebp, edx
mov dword [esp + 0x2f4], ebp
mov al, byte [esp + 0x13]
test al, al
je 0x611d39
mov ecx, dword [esp + 0x2f8]
mov eax, ecx
sub eax, ebx
cdq
idiv dword [esp + 0x38]
sub ecx, edx
mov dword [esp + 0x2f8], ecx
mov ecx, dword [esi + 0x50a]
lea eax, [esp + 0x2f4]
push eax
call dword [sym.imp.zmathdll.dll_public:_void___thiscall_ZPiece::MoveTo_class_CPoint_const__]
push 0
push 0
push 0
jmp 0x611e32
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x90]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2f8]
mov ecx, dword [esp + 0x2f4]
push eax
lea edx, [esp + 0x94]
push ecx
push edx
call ebx
test eax, eax
je 0x611e2f
mov ecx, esi
call fcn.00408076
mov ebx, eax
mov eax, dword [esi + 0x50a]
push eax
mov ecx, esi
call fcn.00402617
push eax
mov ecx, edi
call fcn.004084b3
mov ecx, esi
call fcn.00408076
dec ebx
cmp eax, ebx
jge 0x611dc4
mov ecx, dword [edi + 0x20]
push 1
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x50a], ebp
mov dword [edi + 0x198], ebp
lea ecx, [esp + 0x3c]
mov dword [esi + 0x1043], ebp
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x3c]
mov ecx, esi
push edx
mov byte [esp + 0x2ec], 0x10
call fcn.00410df2
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403058
mov eax, 1
lea ecx, [esp + 0x3c]
mov dword [esi + 0x1043], eax
mov dword [esi + 0x1b45], eax
mov byte [esp + 0x2e8], 0
call fcn.0063d7fa
jmp 0x611e39
push ebp
push ebp
push ebp
mov ecx, edi
call fcn.0040a2f9
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::RestoreDC
lea ecx, [esp + 0x64]
mov dword [esp + 0x2e8], 0xffffffff
call fcn.0063d950
mov ecx, dword [esp + 0x2e0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2dc
ret 0xc