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

Disassembly:
push 0xffffffffffffffff
push 0x42ad40
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 0x40d913
mov eax, dword [edi + 0x114]
jmp 0x40d919
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 0x40d93b
mov eax, dword [edi + 0x11c]
jmp 0x40d941
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.0040f180
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 0x40da98
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 0x40d9ce
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 0x40da17
mov ecx, dword [edi + 0x1dc]
test ecx, ecx
je 0x40da17
mov edx, dword [edi + 0x198]
mov eax, dword [ebp]
push edx
push eax
call fcn.0040a320
mov ecx, dword [edi + 0x1dc]
push 0
push esi
jmp 0x40da63
mov ecx, dword [edi + 0x1d8]
test ecx, ecx
je 0x40da44
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40da44
mov edx, dword [edi + 0x198]
mov eax, dword [ebp]
push edx
push eax
call fcn.0040a320
mov ecx, dword [edi + 0x1d8]
push 0
push esi
jmp 0x40da63
mov ecx, dword [edi + 0x198]
mov edx, dword [ebp]
push ecx
mov ecx, dword [edi + 0x1d4]
push edx
call fcn.0040a320
mov ecx, dword [edi + 0x1d4]
push 0
push esi
call fcn.00409c50
mov esi, 0x42e138
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x38], 0x42e124
mov dword [esp + 0x30], esi
mov dword [esp + 0x70], 3
jmp 0x40ea05
mov ecx, dword [edi + 0xc4]
test ecx, ecx
jne 0x40e80f
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x40e80f
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x40dac6
mov eax, dword [edi + 0x120]
jmp 0x40dacc
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 0x40daf1
mov eax, dword [edi + 0x128]
jmp 0x40daf7
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 0x40db1c
mov eax, dword [edi + 0x124]
jmp 0x40db22
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 0x40db47
mov eax, dword [edi + 0x12c]
jmp 0x40db4d
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 0x40e1a2
test eax, eax
je 0x40de82
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 0x40dc21
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 0x40dbfb
mov eax, dword [esp + 0x78]
inc eax
jmp 0x40dc08
mov edx, ecx
sub edx, eax
cmp ebp, edx
jl 0x40dc0c
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
cmp ebp, ebx
jge 0x40dc17
dec eax
jmp 0x40dc18
inc eax
inc ebp
mov dword [esp + 0x10], eax
cmp ebp, ecx
jl 0x40dbc3
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 0x40dc90
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 0x40dcbc
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 0x40dccd
lea ecx, [esp + 0x28]
push ecx
jmp 0x40dcd2
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 0x40e77a
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 0x40ddc3
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 0x40dded
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 0x40e773
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 0x40df19
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 0x40deef
mov eax, dword [esp + 0x78]
inc eax
jmp 0x40defc
mov edx, ecx
sub edx, eax
cmp ebx, edx
jl 0x40df00
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 0x40df0f
dec eax
jmp 0x40df10
inc eax
inc ebx
mov dword [esp + 0x10], eax
cmp ebx, ecx
jl 0x40deb7
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [edi + 0x60]
cmp eax, 1
jle 0x40df5f
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 0x40df76
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 0x40dfb0
lea edx, [esp + 0x28]
push edx
jmp 0x40dfb5
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 0x40e03d
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
sub ecx, eax
inc ecx
inc edx
push ecx
push edx
jmp 0x40e048
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 0x40e77a
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 0x40e0fb
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 0x40e12a
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 0x40e772
test eax, eax
je 0x40e47e
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 0x40e245
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 0x40e21b
mov eax, dword [esp + 0x10]
dec eax
jmp 0x40e228
mov edx, ecx
sub edx, eax
cmp ebx, edx
jl 0x40e22c
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 0x40e23b
inc eax
jmp 0x40e23c
dec eax
inc ebx
mov dword [esp + 0x78], eax
cmp ebx, ecx
jl 0x40e1e3
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 0x40e2e9
lea edx, [esp + 0x28]
push edx
jmp 0x40e2ee
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 0x40e77a
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 0x40e773
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 0x40e513
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 0x40e4e9
mov eax, dword [esp + 0x10]
dec eax
jmp 0x40e4f6
mov edx, ecx
sub edx, eax
cmp ebx, edx
jl 0x40e4fa
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 0x40e509
inc eax
jmp 0x40e50a
dec eax
inc ebx
mov dword [esp + 0x78], eax
cmp ebx, ecx
jl 0x40e4b1
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 0x40e5ad
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 0x40e5d6
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 0x40e5e7
lea ecx, [esp + 0x28]
push ecx
jmp 0x40e5ec
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 0x40e77a
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 0x40e6a5
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 0x40e6d4
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, 0x42e138
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 0xa
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, 0x42e124
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 0x40ea05
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 0x40e879
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 0x40e860
mov eax, dword [esp + 0x78]
dec ebp
inc eax
jmp 0x40e86f
mov edx, ecx
sub edx, eax
dec edx
cmp ebx, edx
jl 0x40e873
mov eax, dword [esp + 0x78]
inc ebp
dec eax
mov dword [esp + 0x78], eax
inc ebx
dec ecx
cmp ebx, ecx
jl 0x40e82b
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x40e8a7
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.0040cf40
jmp 0x40e9ce
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x40e8ee
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.0040cf40
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 0x40e929
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.0040cf40
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.0040cf40
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 0x40e998
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 0x40e9c7
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, 0x42e138
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x38], 0x42e124
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