Function at 0x4c0880
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x56e88c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + ebx + 4]
push ebp
mov ebp, dword [esp + 0x224]
push esi
push edi
push 0
push 0x5c8214
push 0x5c61c0
lea ecx, [ecx + ebx + 4]
push 0
push 0x5c8214
call dword [edx + 8]
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov edi, eax
add esp, 0x14
lea eax, [esp + 0x8c]
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.004c5390
fld qword [esp + 0x174]
call fcn.00549400
fld qword [esp + 0xd4]
mov esi, eax
call fcn.00549400
mov ecx, dword [edi + 0x14]
lea edx, [ecx + eax]
sub ecx, eax
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0x10]
add edi, 0x10
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], edi
lea edi, [edx + eax]
sub edx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
lea edi, [ecx + esi]
lea edx, [eax + esi]
sub ecx, esi
sub eax, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], edx
mov edx, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
call dword [edx + 0x24]
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_LPtoDP]
mov dword [esp + 0x58], eax
push 2
lea eax, [esp + 0x2c]
push eax
push ecx
call esi
mov eax, dword [ebp + 8]
push 2
lea edx, [esp + 0x3c]
push edx
push eax
call esi
lea edi, [esp + 0x8c]
mov dword [esp + 0x14], 9
mov ecx, dword [ebp + 8]
push 1
push edi
push ecx
call esi
mov eax, dword [esp + 0x14]
add edi, 0x28
dec eax
mov dword [esp + 0x14], eax
jne 0x4c0991
mov eax, dword [0x68c8bc]
xor edi, edi
cmp eax, 3
mov dword [esp + 0x14], edi
je 0x4c0afc
cmp eax, 4
je 0x4c0afc
cmp eax, 5
je 0x4c0afc
push 0x320
call sub.MFC71.DLL_operator_new
mov edx, dword [ebx]
mov esi, eax
add esp, 4
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
mov dword [esp + 0x18], esi
call dword [edx + 0x28]
fld qword [esp + 0x6c]
fsub qword [esp + 0x5c]
fmul qword [0x594f08]
call fcn.00549400
fld qword [esp + 0x5c]
mov dword [esp + 0x48], eax
call fcn.00549400
mov dword [esi], eax
fld qword [esp + 0x64]
call fcn.00549400
mov dword [esi + 4], eax
fld qword [esp + 0x6c]
call fcn.00549400
mov dword [esi + 0x188], eax
fld qword [esp + 0x64]
call fcn.00549400
mov dword [esi + 0x18c], eax
fld qword [esp + 0x6c]
call fcn.00549400
mov dword [esi + 0x190], eax
fld qword [esp + 0x74]
call fcn.00549400
mov dword [esi + 0x194], eax
fld qword [esp + 0x5c]
call fcn.00549400
mov dword [esi + 0x318], eax
fld qword [esp + 0x74]
call fcn.00549400
mov dword [esi + 0x31c], eax
lea edi, [esi + 0xc]
mov dword [esp + 0x18], 0x30
mov edx, dword [esp + 0x48]
mov ecx, dword [edi - 0xc]
add ecx, edx
mov dword [edi - 4], ecx
fld qword [esp + 0x64]
call fcn.00549400
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 8
dec eax
mov dword [esp + 0x18], eax
jne 0x4c0a80
add esi, 0x19c
mov edi, 0x30
mov eax, dword [esp + 0x48]
mov edx, dword [esi - 0xc]
sub edx, eax
mov dword [esi - 4], edx
fld qword [esp + 0x74]
call fcn.00549400
mov dword [esi], eax
add esi, 8
dec edi
jne 0x4c0ab0
lea esi, [esp + 0x48]
lea edi, [esp + 0x5c]
call fcn.004368c0
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
push 0x64
push eax
mov eax, esi
call fcn.004c55f0
mov ecx, dword [ebp + 8]
add esp, 8
push 0x64
push edi
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x3c]
mov edx, dword [ebp]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
xor esi, esi
call dword [edx + 0x40]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call sub.MFC71.DLL_CDC::SetWindowOrg
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], vtable.CRgn.0
mov dword [esp + 0x224], esi
mov eax, dword [0x68c8bc]
cmp eax, 3
je 0x4c0b58
cmp eax, 4
je 0x4c0b58
cmp eax, 5
jne 0x4c0d27
mov edx, dword [ebp + 4]
mov esi, dword [sym.imp.GDI32.dll_BeginPath]
push edx
call esi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
mov edx, dword [ebp + 4]
mov edi, dword [sym.imp.GDI32.dll_EndPath]
push edx
call edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], vtable.CRgn.0
mov byte [esp + 0x224], 1
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_PathToRegion]
push eax
lea ecx, [esp + 0x10]
call sub.MFC71.DLL_CGdiObject::Attach
mov ecx, dword [ebp + 4]
push ecx
call esi
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Ellipse]
mov ecx, dword [ebp + 4]
push ecx
call edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.CRgn.0
mov byte [esp + 0x224], 2
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.GDI32.dll_PathToRegion]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [ebp + 4]
push eax
call esi
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push esi
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Pie]
mov eax, dword [ebp + 4]
push eax
call edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], vtable.CRgn.0
mov byte [esp + 0x224], 3
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.GDI32.dll_PathToRegion]
push eax
lea ecx, [esp + 0x4c]
call sub.MFC71.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_CombineRgn]
push 1
push edx
push eax
push eax
call esi
mov eax, dword [esp + 0x1c]
push 4
push eax
mov eax, dword [esp + 0x18]
push eax
push eax
call esi
push 0x32
push 0x32
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push 5
push 0
push ecx
push edx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_PaintRgn]
mov byte [esp + 0x224], 2
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x224], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x224], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
jmp 0x4c0d94
cmp edi, esi
je 0x4c0d94
mov edx, dword [ebp + 4]
mov esi, dword [sym.imp.GDI32.dll_BeginPath]
push edx
call esi
mov eax, dword [ebp + 4]
push 0x64
push edi
mov edi, dword [sym.imp.GDI32.dll_Polyline]
push eax
call edi
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.GDI32.dll_EndPath]
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.GDI32.dll_FillPath]
mov eax, dword [ebp + 4]
push eax
call esi
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
push 0x64
push esi
push ecx
call edi
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_PathToRegion]
push eax
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CGdiObject::Attach
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push esi
mov esi, dword [sym.imp.GDI32.dll_Arc]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call esi
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov edi, dword [esp + 0x180]
mov edx, dword [esp + 0x17c]
push ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push edi
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push ecx
call esi
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp + 0xdc]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call sub.MFC71.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x180]
mov eax, dword [esp + 0x17c]
push ecx
push eax
mov ecx, ebp
call sub.MFC71.DLL_CDC::LineTo
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
push ecx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call sub.MFC71.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
push ecx
push eax
mov ecx, ebp
call sub.MFC71.DLL_CDC::LineTo
mov eax, dword [esp + 0x58]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x28]
mov edx, dword [ebx]
lea eax, [esp + 0x1f4]
push eax
mov ecx, ebx
call dword [edx + 0x28]
lea esi, [esp + 0x7c]
mov edi, eax
call fcn.004368c0
lea ecx, [esp + 0x20]
push ecx
mov edx, esi
push edx
push ebp
push ebx
call fcn.004bffd0
lea ecx, [esp + 0x20]
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x224], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CGdiObject.0
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x21c
ret 4