Function at 0x404970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
fld dword [0x58def4]
fmul dword [0x585c3c]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x38], 0
fiadd dword [esi + 4]
call sub.MSVCRT.dll__ftol
mov edi, dword [ebp + 8]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 4]
fadd dword [0x58def4]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi]
push eax
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov ebx, dword [esi]
fld dword [0x58def4]
mov dword [esp + 0x18], ebx
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 4]
mov dword [esp + 0xc], eax
fld dword [0x58def0]
add eax, ecx
mov dword [esp + 0x1c], eax
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x1c]
lea ecx, [eax + ebx]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc]
sub ebx, eax
mov eax, dword [edi + 4]
lea ecx, [edx + ecx*2]
lea edx, [esp + 0x18]
push 3
push edx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
call dword [sym.imp.GDI32.dll_Polygon]
fld dword [0x58def4]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 4]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
sub ecx, eax
lea eax, [esp + 0xc]
push ecx
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fld dword [0x58def4]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, eax
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov ebx, dword [esi]
fld dword [0x58def4]
mov dword [esp + 0x18], ebx
call sub.MSVCRT.dll__ftol
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 4]
fld dword [0x58def0]
sub ecx, eax
mov dword [esp + 0x1c], ecx
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0xc]
lea ecx, [eax + ebx]
mov dword [esp + 0x20], ecx
sub ebx, eax
lea ecx, [edx + edx]
lea eax, [esp + 0x18]
mov edx, ecx
mov ecx, dword [esp + 0x1c]
sub ecx, edx
push 3
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.GDI32.dll_Polygon]
fld dword [0x58def0]
fmul dword [0x585c3c]
mov edx, dword [esi + 4]
push edx
fiadd dword [esi]
call sub.MSVCRT.dll__ftol
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi]
mov ecx, dword [esi + 4]
push ecx
fadd dword [0x58def0]
call sub.MSVCRT.dll__ftol
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
fld dword [0x58def0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
fld dword [0x58def4]
add ecx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
lea edx, [ecx + eax*2]
mov dword [esp + 0x20], edx
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebx]
sub ebx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push 3
mov dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.GDI32.dll_Polygon]
push eax
push ecx
mov dword [esp + 0x34], edx
call ebx
mov edx, dword [esi + 4]
fld dword [0x58def0]
push edx
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi]
cdq
sub eax, edx
lea edx, [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 4]
push eax
fld dword [0x58def0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi]
sub ecx, eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
fld dword [0x58def0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi]
mov esi, dword [esi + 4]
fld dword [0x58def4]
sub ecx, eax
lea edx, [eax + eax]
mov dword [esp + 0x18], ecx
sub ecx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x20]
lea ecx, [eax + esi]
sub esi, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push 3
push eax
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], esi
call ebx
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0x14]
push eax
mov ecx, dword [edx + 0x7c]
mov edx, dword [ebp + 0x10]
push edx
call fcn.0045c770
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x14]
push 1
push ecx
mov ecx, dword [eax + 0x20]
push 0
add ecx, 0x190
call sub.MFC42.DLL_CStatusBar::SetPaneText
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10