Function at 0x4039c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx + 0x50]
mov edi, dword [ebx + 0x58]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CBrush::CBrush
mov ecx, dword [ebp + 0x14]
push 0
push 0
push 5
mov edx, dword [ecx]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x74], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x78], eax
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CPen::CPen
mov eax, dword [ebp + 0x10]
mov byte [esp + 0x80], 1
mov ecx, dword [eax]
mov edx, dword [eax + 8]
sub edx, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], edx
sub eax, ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
sub esi, edx
fstp qword [esp + 0x34]
fild dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
sub eax, ecx
lea ecx, [edi*8]
fstp qword [esp + 0x3c]
fild dword [esp + 0x14]
push ecx
fstp qword [esp + 0x50]
fild dword [esp + 0x20]
mov dword [esp + 0x20], esi
fstp qword [esp + 0x60]
fild dword [esp + 0x20]
fld qword [esp + 0x38]
mov dword [esp + 0x20], eax
fdiv st(1)
fst qword [esp + 0x48]
fild dword [esp + 0x20]
fld qword [esp + 0x40]
fdiv st(1)
fst qword [esp + 0x58]
fxch st(1)
fmul st(1)
fstp qword [esp + 0x18]
fstp st(0)
fxch st(1)
fmul st(1)
fstp qword [esp + 0x20]
fstp st(0)
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test edi, edi
jle 0x403bbc
test eax, eax
je 0x403bc9
xor esi, esi
test edi, edi
jle 0x403b62
fld qword [esp + 0x34]
fsub qword [esp + 0x1c]
fmul qword [0x40c338]
fld qword [esp + 0x3c]
fsub qword [esp + 0x14]
fmul qword [0x40c338]
mov edx, dword [ebx + 0x5c]
mov ecx, dword [esp + 0x68]
mov eax, dword [edx + esi*8]
sub eax, ecx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [esp + 0x44]
fadd st(2)
fadd qword [esp + 0x4c]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x10]
mov dword [ecx + esi*8], eax
mov edx, dword [ebx + 0x5c]
mov eax, dword [edx + esi*8 + 4]
mov edx, dword [esp + 0x6c]
sub eax, edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [esp + 0x54]
fadd st(1)
fadd qword [esp + 0x5c]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, edi
mov dword [ecx + esi*8 - 4], eax
jl 0x403b03
fstp st(0)
fstp st(0)
mov esi, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov ecx, dword [ebx + 0x54]
mov dword [esp + 0x1c], eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetPolyFillMode
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_Polygon]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject_1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403bc9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, 0x40c324
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x24], 0x40c310
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret