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

Disassembly:
push 0xffffffffffffffff
push 0x426bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
xor ecx, ecx
cmp eax, edi
sete cl
mov esi, ecx
test esi, esi
mov dword [esp + 0x14], esi
je 0x40c863
mov eax, dword [edi + 0x114]
jmp 0x40c869
mov eax, dword [edi + 0x110]
push eax
push 1
push 0
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CPen::CPen
test esi, esi
mov dword [esp + 0x70], 0
je 0x40c88b
mov eax, dword [edi + 0x11c]
jmp 0x40c891
mov eax, dword [edi + 0x118]
push eax
push 1
push 0
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CPen::CPen
mov esi, dword [esp + 0x78]
lea edx, [esp + 0x38]
push edx
mov ecx, esi
mov byte [esp + 0x74], 1
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.0040e0d0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
lea ebp, [edi + 0x194]
mov ebx, dword [esp + 0x64]
mov ecx, ebp
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x60]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebx
mov ecx, dword [edi + 0x1d4]
test ecx, ecx
je 0x40c9e8
mov eax, dword [edi + 0x1cc]
mov ecx, dword [edi + 0x1c4]
mov ebx, dword [edi + 0x1c0]
sub eax, ecx
mov ecx, dword [edi + 0x1c8]
lea edx, [edi + 0x1b0]
sub ecx, ebx
test edx, edx
je 0x40c91e
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x40c967
mov ecx, dword [edi + 0x1dc]
test ecx, ecx
je 0x40c967
mov edx, dword [edi + 0x198]
mov eax, dword [ebp]
push edx
push eax
call fcn.00409510
mov ecx, dword [edi + 0x1dc]
push 0
push esi
jmp 0x40c9b3
mov ecx, dword [edi + 0x1d8]
test ecx, ecx
je 0x40c994
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c994
mov edx, dword [edi + 0x198]
mov eax, dword [ebp]
push edx
push eax
call fcn.00409510
mov ecx, dword [edi + 0x1d8]
push 0
push esi
jmp 0x40c9b3
mov ecx, dword [edi + 0x198]
mov edx, dword [ebp]
push ecx
mov ecx, dword [edi + 0x1d4]
push edx
call fcn.00409510
mov ecx, dword [edi + 0x1d4]
push 0
push esi
call fcn.00408e40
mov esi, 0x42a110
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x38], 0x42a0fc
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], 3
jmp 0x40d955
mov ecx, dword [edi + 0xc4]
test ecx, ecx
jne 0x40d75f
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x40d75f
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x40ca16
mov eax, dword [edi + 0x120]
jmp 0x40ca1c
mov eax, dword [edi + 0x124]
push eax
push 1
push 0
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CPen::CPen
mov eax, dword [edi + 0xbc]
mov byte [esp + 0x70], 6
test eax, eax
je 0x40ca41
mov eax, dword [edi + 0x128]
jmp 0x40ca47
mov eax, dword [edi + 0x12c]
push eax
push 1
push 0
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CPen::CPen
mov eax, dword [edi + 0xbc]
mov byte [esp + 0x70], 7
test eax, eax
je 0x40ca6c
mov eax, dword [edi + 0x124]
jmp 0x40ca72
mov eax, dword [edi + 0x120]
push eax
push 1
push 0
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CPen::CPen
mov eax, dword [edi + 0xbc]
mov byte [esp + 0x70], 8
test eax, eax
je 0x40ca97
mov eax, dword [edi + 0x12c]
jmp 0x40ca9d
mov eax, dword [edi + 0x128]
push eax
push 1
push 0
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CPen::CPen
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov eax, dword [edi + 0xcc]
dec ecx
dec ebx
mov byte [esp + 0x70], 9
test eax, eax
mov eax, dword [edi + 0xd8]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebx
je 0x40d0f2
test eax, eax
je 0x40cdd2
mov ebp, dword [esp + 0x5c]
mov eax, ebx
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
lea edx, [eax + ebp]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x58]
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x60]
sub ecx, eax
inc ecx
inc ebp
cmp ebp, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x78], ecx
jge 0x40cb71
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x78]
push ebp
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x5c]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x64]
cmp ebp, edx
jge 0x40cb4b
mov eax, dword [esp + 0x78]
inc eax
jmp 0x40cb58
mov edx, ecx
sub edx, eax
cmp ebp, edx
jl 0x40cb5c
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
cmp ebp, ebx
jge 0x40cb67
dec eax
jmp 0x40cb68
inc eax
inc ebp
mov dword [esp + 0x10], eax
cmp ebp, ecx
jl 0x40cb13
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x58]
push ebx
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
lea edx, [ecx + ebp]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
cmp eax, 1
jle 0x40cbe0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
sub edx, eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add eax, 2
push eax
mov eax, dword [edi + 0x60]
sub ecx, eax
add ecx, 2
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
jmp 0x40cc0c
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [edi + 0x60]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
add ecx, eax
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x40cc1d
lea ecx, [esp + 0x28]
push ecx
jmp 0x40cc22
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [edi + 0x60]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add eax, edx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x64]
mov ecx, dword [edi + 0x60]
mov eax, dword [esp + 0x60]
sub edx, ecx
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ecx
mov ecx, dword [edi + 0x60]
sub edx, ecx
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
push eax
lea edx, [ecx + ebp]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x58]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x9c]
test eax, eax
jne 0x40d6ca
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov edi, dword [edi + 0x60]
lea edx, [esp + 0x50]
dec edi
push edx
mov ecx, esi
dec ebp
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x58]
push ebx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push edx
lea ecx, [eax + ebp]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
cmp edi, 1
jle 0x40cd13
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
sub eax, edi
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
sub edx, edi
add ecx, 2
add edx, 2
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
jmp 0x40cd3d
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
lea eax, [edi + edx]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
lea edx, [edi + ecx]
mov ecx, esi
push edx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
sub ecx, edi
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub ecx, edi
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
push edx
lea ecx, [eax + ebp]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x58]
push ebx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x58]
push ebx
lea eax, [esp + 0x24]
lea edx, [ecx + ebp + 1]
mov ecx, esi
push edx
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x60]
push ebx
dec ecx
push ecx
jmp 0x40d6c3
mov edx, dword [esp + 0x58]
mov eax, ecx
sub eax, edx
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x58]
sar ebp, 1
lea edx, [eax + ebp]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x5c]
add edx, ebp
mov dword [esp + 0x10], edx
mov edx, dword [edi + 0x60]
sub ebx, edx
inc ebx
mov dword [esp + 0x78], ebx
lea ebx, [eax + 1]
cmp ebx, ecx
jge 0x40ce69
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ebx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x78]
mov ecx, esi
push edx
push ebx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x58]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x60]
cmp ebx, edx
jge 0x40ce3f
mov eax, dword [esp + 0x78]
inc eax
jmp 0x40ce4c
mov edx, ecx
sub edx, eax
cmp ebx, edx
jl 0x40ce50
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov eax, dword [esp + 0x10]
jge 0x40ce5f
dec eax
jmp 0x40ce60
inc eax
inc ebx
mov dword [esp + 0x10], eax
cmp ebx, ecx
jl 0x40ce07
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [edi + 0x60]
cmp eax, 1
jle 0x40ceaf
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
sub ecx, eax
lea eax, [esp + 0x20]
inc ecx
inc edx
push ecx
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x64]
mov ebx, dword [edi + 0x60]
mov edx, dword [esp + 0x58]
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
jmp 0x40cec6
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
dec eax
lea edx, [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
lea ecx, [eax + ebp]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
dec ecx
lea ebx, [eax + 1]
push ecx
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x40cf00
lea edx, [esp + 0x28]
push edx
jmp 0x40cf05
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x20]
inc ecx
push ecx
push ebx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
lea ecx, [eax + ebp]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x64]
mov edx, dword [edi + 0x60]
mov ecx, dword [esp + 0x60]
sub eax, edx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [edi + 0x60]
sub eax, edx
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x60]
push ecx
mov ecx, dword [esp + 0x5c]
add edx, ecx
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
cmp eax, 1
jle 0x40cf8d
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
sub ecx, eax
inc ecx
inc edx
push ecx
push edx
jmp 0x40cf98
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
dec eax
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x9c]
test eax, eax
jne 0x40d6ca
lea edx, [esp + 0x28]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
inc eax
lea edx, [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
dec edx
lea ecx, [eax + ebp]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x64]
mov edx, dword [edi + 0x60]
mov ecx, dword [esp + 0x60]
sub eax, edx
dec ecx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov ecx, dword [edi + 0x60]
dec edx
sub eax, ecx
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
cmp eax, 2
jle 0x40d04b
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
dec ecx
add eax, edx
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x64]
mov ecx, dword [edi + 0x60]
sub eax, ecx
mov ecx, dword [esp + 0x58]
inc eax
add ecx, 2
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
jmp 0x40d07a
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x58]
dec edx
inc eax
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x64]
mov eax, dword [edi + 0x60]
mov edx, dword [esp + 0x58]
sub ecx, eax
inc edx
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x64]
mov eax, dword [edi + 0x60]
sub edx, eax
mov eax, dword [esp + 0x58]
inc eax
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
inc eax
lea edx, [ecx + ebp]
mov ecx, esi
push edx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x5c]
push ecx
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea ecx, [eax + ebp + 2]
push ecx
push edi
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x64]
add eax, 0xfffffffe
push eax
jmp 0x40d6c2
test eax, eax
je 0x40d3ce
mov edx, dword [esp + 0x5c]
mov eax, ebx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x5c]
mov ebp, eax
sar ebp, 1
sub ecx, ebp
lea eax, [edx + ebp]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x60]
add eax, dword [esp + 0x58]
inc ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x10], eax
lea eax, [edx + 1]
cmp eax, ebx
mov dword [esp + 0x20], eax
jge 0x40d195
mov ebx, eax
mov ecx, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x78]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x5c]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x64]
cmp ebx, edx
jge 0x40d16b
mov eax, dword [esp + 0x10]
dec eax
jmp 0x40d178
mov edx, ecx
sub edx, eax
cmp ebx, edx
jl 0x40d17c
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov eax, dword [esp + 0x78]
jge 0x40d18b
inc eax
jmp 0x40d18c
dec eax
inc ebx
mov dword [esp + 0x78], eax
cmp ebx, ecx
jl 0x40d133
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x64]
mov eax, dword [edi + 0x60]
mov edx, dword [esp + 0x58]
sub ecx, eax
inc ecx
inc edx
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x60]
sub ecx, edx
mov edx, dword [esp + 0x58]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
add eax, edx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x5c]
mov eax, dword [edi + 0x60]
push edx
mov edx, dword [esp + 0x5c]
add eax, edx
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
sub edx, ebp
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
inc ecx
lea ebx, [eax + 1]
push ebx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x40d239
lea edx, [esp + 0x28]
push edx
jmp 0x40d23e
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x60]
push ebx
dec ecx
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub ecx, ebp
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x64]
mov eax, dword [edi + 0x60]
push edx
mov edx, dword [esp + 0x5c]
add eax, edx
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x60]
sub ecx, edx
mov edx, dword [esp + 0x58]
inc ecx
inc edx
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x9c]
test eax, eax
jne 0x40d6ca
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x60]
dec ecx
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x5c]
add edx, ecx
mov ecx, esi
push edx
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x64]
mov eax, dword [edi + 0x60]
mov edx, dword [esp + 0x58]
sub ecx, eax
inc edx
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
add eax, edx
inc ecx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x5c]
mov eax, dword [edi + 0x60]
inc edx
mov ecx, esi
push edx
mov edx, dword [esp + 0x5c]
add eax, edx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
inc ecx
sub edx, ebp
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x60]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x60]
push ebx
add edx, 0xfffffffe
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
dec ecx
sub edx, ebp
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x64]
mov ecx, dword [edi + 0x60]
mov edx, dword [esp + 0x58]
dec eax
push eax
add ecx, edx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edi, dword [edi + 0x60]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x58]
sub edx, edi
inc edx
lea ecx, [edi + eax - 1]
push edx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
add eax, 3
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x60]
push edi
sub edx, ebp
push edx
jmp 0x40d6c3
mov edx, dword [esp + 0x58]
mov eax, ecx
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
mov ebp, eax
sar ebp, 1
sub ebx, ebp
lea eax, [edx + ebp]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x60]
add eax, dword [esp + 0x5c]
inc ebx
mov dword [esp + 0x78], ebx
lea ebx, [edx + 1]
cmp ebx, ecx
mov dword [esp + 0x10], eax
jge 0x40d463
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push ebx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x78]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x58]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x60]
cmp ebx, edx
jge 0x40d439
mov eax, dword [esp + 0x10]
dec eax
jmp 0x40d446
mov edx, ecx
sub edx, eax
cmp ebx, edx
jl 0x40d44a
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov eax, dword [esp + 0x78]
jge 0x40d459
inc eax
jmp 0x40d45a
dec eax
inc ebx
mov dword [esp + 0x78], eax
cmp ebx, ecx
jl 0x40d401
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push ebx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
sub eax, ebp
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [edi + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
add edx, ecx
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x5c]
mov edx, dword [edi + 0x60]
push ecx
mov ecx, dword [esp + 0x5c]
add edx, ecx
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
cmp eax, 1
jle 0x40d4fd
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
sub edx, eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add eax, 2
push eax
mov eax, dword [edi + 0x60]
sub ecx, eax
add ecx, 2
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
jmp 0x40d526
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
inc ecx
dec edx
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x40d537
lea ecx, [esp + 0x28]
push ecx
jmp 0x40d53c
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [edi + 0x60]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add eax, edx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
sub edx, ebp
mov ecx, esi
push edx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x64]
push ecx
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x9c]
test eax, eax
jne 0x40d6ca
lea edx, [esp + 0x28]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x64]
inc ebx
add eax, 0xfffffffe
lea ecx, [esp + 0x20]
push eax
push ebx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
sub edx, ebp
dec eax
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
cmp eax, 2
jle 0x40d5f5
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
add eax, ecx
dec edx
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add eax, 2
push eax
mov eax, dword [edi + 0x60]
sub ecx, eax
inc ecx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
jmp 0x40d624
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
inc edx
dec eax
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
inc ecx
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [edi + 0x60]
sub edx, ecx
mov ecx, esi
push edx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
inc edx
mov ecx, esi
push edx
mov edx, dword [edi + 0x60]
sub eax, edx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x5c]
mov edx, dword [edi + 0x60]
inc ecx
push ecx
mov ecx, dword [esp + 0x5c]
add edx, ecx
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x5c]
add eax, ecx
mov ecx, dword [esp + 0x58]
inc ecx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x58]
sub edx, ebp
inc eax
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x64]
push ecx
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
add eax, 3
lea ecx, [esp + 0x20]
push eax
push edi
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x64]
sub edx, ebp
push edx
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov esi, 0x42a110
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 0xa
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, 0x42a0fc
mov dword [esp + 0x28], esi
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 0xb
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x28], edi
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0xc
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 0xd
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x50], edi
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 0xe
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], 0xf
jmp 0x40d955
mov ecx, dword [edi + 0x60]
sub eax, ecx
lea ebp, [ecx + edx]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], eax
lea ebx, [ecx + 1]
dec edx
cmp ebx, edx
jge 0x40d7c9
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x78]
push ebx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [edi + 0x60]
mov edx, dword [esp + 0x5c]
lea ecx, [eax + edx]
cmp ebx, ecx
mov ecx, dword [esp + 0x64]
jge 0x40d7b0
mov eax, dword [esp + 0x78]
dec ebp
inc eax
jmp 0x40d7bf
mov edx, ecx
sub edx, eax
dec edx
cmp ebx, edx
jl 0x40d7c3
mov eax, dword [esp + 0x78]
inc ebp
dec eax
mov dword [esp + 0x78], eax
inc ebx
dec ecx
cmp ebx, ecx
jl 0x40d77b
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x40d7f7
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x12c]
mov edx, dword [edi + 0x60]
push eax
push ecx
lea eax, [esp + 0x60]
push edx
push eax
push esi
mov ecx, edi
call fcn.0040be90
jmp 0x40d91e
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x40d83e
mov ecx, dword [edi + 0x12c]
mov edx, dword [edi + 0x128]
mov eax, dword [edi + 0x60]
push ecx
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
push esi
mov ecx, edi
call fcn.0040be90
push 0xffffffffffffffff
lea edx, [esp + 0x5c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 0x124]
mov ecx, dword [edi + 0x120]
push eax
jmp 0x40d879
mov ecx, dword [edi + 0x128]
mov edx, dword [edi + 0x12c]
mov eax, dword [edi + 0x60]
push ecx
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
push esi
mov ecx, edi
call fcn.0040be90
push 0xffffffffffffffff
lea edx, [esp + 0x5c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x124]
push eax
mov edx, dword [edi + 0x60]
push ecx
dec edx
lea eax, [esp + 0x60]
push edx
push eax
push esi
mov ecx, edi
call fcn.0040be90
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
xor ebx, ebx
cmp eax, edi
mov eax, dword [edi + 0xd8]
setne bl
inc ebx
test eax, eax
je 0x40d8e8
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
mov edi, eax
sar edi, 1
add edi, ecx
lea eax, [ebx + edx]
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x60]
push edi
sub edx, ebx
push edx
jmp 0x40d917
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x5c]
sar edi, 1
add eax, ebx
add edi, ecx
push eax
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x64]
sub edx, ebx
push edx
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov esi, 0x42a110
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x38], 0x42a0fc
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], 5
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4