Function at 0x4c9330
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x553fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
mov ebx, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], 0x55863c
push ebx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x144], eax
call sub.MFC42.DLL_CClientDC::CClientDC
lea ecx, [esp + 0x6c]
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CDC::CDC
mov esi, dword [ebp + 8]
push 1
mov ecx, esi
mov byte [esp + 0x144], 2
mov edx, dword [esi]
mov dword [esp + 0x8c], 1
call dword [edx + 0x3c]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push eax
call edi
mov ecx, dword [esi + 8]
push 0x5a
push ecx
mov dword [esp + 0x28], eax
call edi
mov edx, dword [esi + 8]
push 0x6e
push edx
mov dword [esp + 0x24], eax
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
push 0x6f
push eax
call edi
mov ecx, dword [esi + 8]
push 0x70
push ecx
mov dword [esp + 0x70], eax
call edi
mov edx, dword [esi + 8]
push 0x71
push edx
mov dword [esp + 0x38], eax
call edi
fild dword [esp + 0x20]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x50], eax
fst qword [esp + 0x3c]
fld st(0)
fmul qword [edi + 0x168]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x30]
fild dword [esp + 0x1c]
sub eax, edx
mov dword [esp + 0x8c], eax
fst qword [esp + 0x54]
fmul qword [edi + 0x170]
call sub.MSVCRT.dll__ftol
sub eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
fmul qword [edi + 0x178]
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x30]
fld qword [esp + 0x54]
sub eax, ecx
mov dword [esp + 0x94], eax
fmul qword [edi + 0x180]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x50]
mov edx, eax
mov eax, dword [esp + 0x68]
sub eax, edx
sub eax, ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x8c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::IntersectClipRect
push 0xffffffffffffffff
lea eax, [esp + 0x90]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edi, dword [ebx + 0x4e0]
test edi, edi
je 0x4c97d7
mov eax, dword [ebx + 0x4e4]
test eax, eax
je 0x4c97d7
fld qword [esp + 0x3c]
fmul qword [0x55de68]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x54]
fmul qword [0x55de68]
mov dword [esp + 0x3c], eax
call sub.MSVCRT.dll__ftol
mov edx, dword [esi]
push edi
mov ecx, esi
mov dword [esp + 0x44], eax
call dword [edx + 0x30]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
add ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
push str.Swedge_Analysis
lea ecx, [esp + 0x14]
lea edi, [eax + edx]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov byte [esp + 0x140], 3
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov ecx, esi
call dword [edx + 0x64]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x100]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0x110]
add eax, ecx
mov ecx, esi
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
add edi, eax
mov eax, dword [ebx + 0x4e4]
push eax
call dword [edx + 0x30]
push str.Document_Name:
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x18]
add ecx, 0x20
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov ecx, esi
call dword [edx + 0x64]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x100]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0x110]
add eax, ecx
mov dword [esp + 0x20], eax
add edi, eax
push 0x5a06d4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x68]
push eax
lea ecx, [edx + 0x58]
call fcn.0042f090
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x68]
mov byte [esp + 0x140], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov ecx, esi
call dword [edx + 0x64]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add ecx, 0x58
add edi, eax
call fcn.0042eff0
fst qword [esp + 0x54]
fcomp qword [0x558678]
mov byte [esp + 0x17], 0
fnstsw ax
test ah, 0x40
jne 0x4c9686
mov byte [esp + 0x17], 1
push str.View:
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebx + 0x58]
cmp eax, 1
jne 0x4c96a3
push 0x5a06c8
jmp 0x4c96c5
cmp eax, 2
jne 0x4c96af
push str.FRONT
jmp 0x4c96c5
cmp eax, 3
jne 0x4c96bb
push str.SIDE
jmp 0x4c96c5
cmp eax, 4
jne 0x4c96ce
push str.PERSPECTIVE
lea ecx, [esp + 0x14]
call fcn.00548178
mov al, byte [esp + 0x17]
test al, al
je 0x4c96e4
push str.___SCALED
lea ecx, [esp + 0x14]
call fcn.00548178
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov ecx, esi
call dword [edx + 0x64]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add ecx, 0x58
add edi, edx
call fcn.0042f070
cmp eax, 1
jne 0x4c972f
mov edx, dword [esp + 0x18]
lea ecx, [edx + 0x58]
call fcn.0042f040
sub esp, 8
lea eax, [esp + 0x18]
fstp qword [esp]
push str.Safety_Factor:__g
push eax
jmp 0x4c974b
mov ecx, dword [esp + 0x18]
add ecx, 0x58
call fcn.0042f030
sub esp, 8
lea edx, [esp + 0x18]
fstp qword [esp]
push str.Probability_of_Failure:__g
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov ecx, esi
call dword [edx + 0x64]
mov ecx, dword [esp + 0x20]
mov al, byte [esp + 0x17]
add edi, ecx
test al, al
je 0x4c97ad
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
lea eax, [esp + 0x18]
push str.Wedge_is_scaled__scale_factor:__g
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov ecx, esi
call dword [edx + 0x64]
add edi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x140], 2
add edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x90], edi
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x98]
cmp edx, eax
jl 0x4c97ed
xor edi, edi
jmp 0x4c97f4
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x50], ecx
sub ecx, dword [esp + 0x8c]
sub eax, edx
mov dword [esp + 0x1c], edx
test edi, edi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x68], eax
je 0x4c9f57
mov eax, dword [ebx + 0x58]
dec eax
cmp eax, 3
ja case.0x4c9837.3
jmp dword [eax*4 + 0x4ca080]
mov dword [esp + 0x24], 0xcccccccd
mov dword [esp + 0x28], 0x3ff4cccc
jmp 0x4c9884
mov dword [esp + 0x24], 0x66666666
mov dword [esp + 0x28], 0x3ff66666
jmp 0x4c9884
mov dword [esp + 0x24], 0x9999999a
mov dword [esp + 0x28], 0x3ff19999
jmp 0x4c9884
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3ff00000
fld qword [0x55de60]
fdiv qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0xbc]
mov edi, eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x9c], edi
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esp + 0xbc]
push edi
push 0x320
push edx
mov dword [esp + 0x84], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x7c]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x74]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0xbc]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0xa8], eax
call fcn.004c7030
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.OPENGL32.dll_wglCreateContext]
mov ecx, dword [esp + 0x70]
push eax
push ecx
mov dword [esp + 0xac], eax
call dword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov edx, dword [esp + 0x18]
lea ecx, [edx + 0x58]
mov dword [esp + 0x10], ecx
call fcn.0043d7b0
cmp eax, 1
jne 0x4c99ab
push 0x1b02
push 0x408
call dword [sym.imp.OPENGL32.dll_glPolygonMode]
push 0x1d00
call dword [sym.imp.OPENGL32.dll_glShadeModel]
push 0xba1
call dword [sym.imp.OPENGL32.dll_glEnable]
push 0xb71
call dword [sym.imp.OPENGL32.dll_glEnable]
push 0x4000
call dword [sym.imp.OPENGL32.dll_glEnable]
push 0x4001
call dword [sym.imp.OPENGL32.dll_glEnable]
push 0xb50
call dword [sym.imp.OPENGL32.dll_glEnable]
jmp 0x4c99ec
cmp eax, 2
jne 0x4c99ec
push 0x1b01
push 0x408
call dword [sym.imp.OPENGL32.dll_glPolygonMode]
push 0xba1
call dword [sym.imp.OPENGL32.dll_glDisable]
push 0x4000
call dword [sym.imp.OPENGL32.dll_glDisable]
push 0x4001
call dword [sym.imp.OPENGL32.dll_glDisable]
push 0xb50
call dword [sym.imp.OPENGL32.dll_glDisable]
push edi
push 0x320
push 0
push 0
call dword [sym.imp.OPENGL32.dll_glViewport]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0xdc]
push eax
lea edx, [esp + 0xd0]
push ecx
lea eax, [esp + 0xec]
push edx
lea ecx, [esp + 0xf8]
push eax
lea edx, [esp + 0x104]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.0042c7e0
fld qword [esp + 0xcc]
fabs
fstp qword [esp + 0x34]
fld qword [esp + 0xdc]
fabs
fcom qword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x4c9a5c
fstp qword [esp + 0x34]
jmp 0x4c9a5e
fstp st(0)
fld qword [esp + 0xd4]
fabs
fcom qword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x4c9a78
fstp qword [esp + 0x34]
jmp 0x4c9a7a
fstp st(0)
mov edi, dword [sym.imp.OPENGL32.dll_glMatrixMode]
push 0x1701
call edi
call dword [sym.imp.OPENGL32.dll_glLoadIdentity]
mov eax, dword [ebx + 0x58]
cmp eax, 2
jne 0x4c9afe
fld qword [esp + 0x34]
fmul qword [ebx + 0x48]
sub esp, 8
sub esp, 8
fst qword [esp + 0x4c]
fld st(0)
fmul qword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
fstp qword [esp + 0x64]
fld qword [esp + 0x44]
fmul qword [0x55de48]
mov edx, dword [esp + 0x68]
fstp qword [esp + 8]
fld qword [esp + 0x44]
fmul qword [0x558780]
fstp qword [esp]
push eax
mov eax, dword [esp + 0x68]
push ecx
sub esp, 8
fchs
fstp qword [esp]
push edx
push eax
fld qword [esp + 0x7c]
sub esp, 8
fchs
fstp qword [esp]
call dword [sym.imp.OPENGL32.dll_glOrtho]
jmp 0x4c9bf7
cmp eax, 1
jne 0x4c9b57
fld qword [esp + 0x34]
fmul qword [ebx + 0x48]
sub esp, 8
sub esp, 8
fst qword [esp + 0x4c]
fld st(0)
fmul qword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
fstp qword [esp + 0x64]
fld qword [esp + 0x44]
fmul qword [0x55de48]
mov eax, dword [esp + 0x68]
fstp qword [esp + 8]
fld qword [esp + 0x44]
fmul qword [0x558780]
fstp qword [esp]
push ecx
mov ecx, dword [esp + 0x68]
push edx
sub esp, 8
fchs
fstp qword [esp]
push eax
push ecx
jmp 0x4c9ae7
cmp eax, 3
jne 0x4c9bb3
fld qword [esp + 0x34]
fmul qword [ebx + 0x48]
sub esp, 8
sub esp, 8
fst qword [esp + 0x4c]
fld st(0)
fmul qword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
fstp qword [esp + 0x64]
fld qword [esp + 0x44]
fmul qword [0x55de48]
mov ecx, dword [esp + 0x68]
fstp qword [esp + 8]
fld qword [esp + 0x44]
fmul qword [0x558780]
fstp qword [esp]
push edx
mov edx, dword [esp + 0x68]
push eax
sub esp, 8
fchs
fstp qword [esp]
push ecx
push edx
jmp 0x4c9ae7
cmp eax, 4
jne 0x4c9bf7
fld qword [esp + 0x34]
fmul qword [0x55de48]
sub esp, 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub esp, 8
fstp qword [esp + 8]
fld qword [esp + 0x44]
fmul qword [0x558780]
fstp qword [esp]
fld qword [ebx + 0x48]
fmul qword [0x55de40]
push eax
push ecx
sub esp, 8
fstp qword [esp]
call sub.GLU32.dll_gluPerspective
push 0x1700
call edi
push 0x3f800000
push 0x3f800000
push 0x3f800000
push 0x3f800000
call dword [sym.imp.OPENGL32.dll_glClearColor]
push 0x4100
call dword [sym.imp.OPENGL32.dll_glClear]
mov edx, dword [ebx + 0x514]
mov eax, dword [ebx + 0x510]
mov ecx, dword [ebx + 0x50c]
push esi
push edx
mov edx, dword [ebx + 0x508]
push eax
mov eax, dword [ebx + 0x58]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
call fcn.004e90d0
mov ecx, dword [esp + 0x10]
call fcn.00419130
test al, al
je 0x4c9d17
mov eax, dword [ebx + 0x58]
cmp eax, 1
je 0x4c9c74
cmp eax, 2
je 0x4c9c74
cmp eax, 4
jne 0x4c9d17
lea ecx, [ebx + 0x64]
push ecx
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CDC::SelectObject_1
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4c9c9c
push 0xd
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CDC::SelectStockObject
test eax, eax
mov dword [esp + 0x18], eax
je 0x4c9d17
mov edi, 1
push edi
call dword [sym.imp.OPENGL32.dll_glIsList]
cmp al, 1
jne 0x4c9ccc
cmp edi, 0x2710
jge 0x4c9cc0
inc edi
push edi
call dword [sym.imp.OPENGL32.dll_glIsList]
cmp al, 1
je 0x4c9cac
test edi, edi
jle 0x4c9d09
cmp edi, 0x2710
jge 0x4c9d09
mov edx, dword [esp + 0x70]
push edi
push 0x100
push 0
push edx
call dword [sym.imp.OPENGL32.dll_wglUseFontBitmapsA]
test eax, eax
je 0x4c9d09
mov eax, dword [ebx + 0x58]
cmp eax, 1
jne 0x4c9cef
push esi
push eax
jmp 0x4c9cff
cmp eax, 2
jne 0x4c9cf8
push esi
push eax
jmp 0x4c9cff
cmp eax, 4
jne 0x4c9d09
push esi
push eax
mov ecx, dword [esp + 0x18]
push edi
call fcn.00427d80
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [esp + 0x10]
call fcn.00442e10
test al, al
je 0x4c9df7
mov eax, dword [ebx + 0x58]
cmp eax, 1
je 0x4c9d3e
cmp eax, 2
je 0x4c9d3e
cmp eax, 3
jne 0x4c9df7
lea ecx, [ebx + 0x64]
push ecx
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CDC::SelectObject_1
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4c9d6a
push 0xd
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CDC::SelectStockObject
test eax, eax
mov dword [esp + 0x18], eax
je 0x4c9df7
mov edi, 1
push edi
call dword [sym.imp.OPENGL32.dll_glIsList]
cmp al, 1
jne 0x4c9d9a
cmp edi, 0x2710
jge 0x4c9d8e
inc edi
push edi
call dword [sym.imp.OPENGL32.dll_glIsList]
cmp al, 1
je 0x4c9d7a
test edi, edi
jle 0x4c9de9
cmp edi, 0x2710
jge 0x4c9de9
mov edx, dword [esp + 0x70]
push edi
push 0x100
push 0
push edx
call dword [sym.imp.OPENGL32.dll_wglUseFontBitmapsA]
test eax, eax
je 0x4c9de9
mov eax, dword [ebx + 0x58]
cmp eax, 1
jne 0x4c9dc3
push eax
lea eax, [esp + 0x70]
push eax
push 1
jmp 0x4c9ddf
cmp eax, 2
jne 0x4c9dd2
lea ecx, [esp + 0x6c]
push 1
push ecx
push eax
jmp 0x4c9ddf
cmp eax, 3
jne 0x4c9de9
lea edx, [esp + 0x6c]
push 1
push edx
push eax
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004237d0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
cmp dword [ebx + 0x58], 1
jne 0x4c9e12
mov ecx, dword [esp + 0x10]
call fcn.00419140
test al, al
je 0x4c9e12
push esi
mov ecx, ebx
call fcn.004c7df0
call dword [sym.imp.OPENGL32.dll_glFinish]
fild dword [esp + 0x88]
fild dword [esp + 0x68]
fstp qword [esp + 0x3c]
fld st(0)
fdiv qword [esp + 0x3c]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 1
jne 0x4c9e6a
fstp st(0)
fld qword [esp + 0x3c]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x50]
mov ecx, eax
mov eax, edi
sub eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
sub edi, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], edi
jmp 0x4c9e94
fdiv qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov eax, edi
sub eax, edx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
sub edi, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], edi
mov eax, dword [ebx + 0xb0]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
lea eax, [esp + 0x80]
push 0
push eax
mov ecx, ebx
call fcn.004c7280
mov edi, eax
test edi, edi
je 0x4c9f1d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov ebx, dword [ebx + 0xb0]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x5c], eax
xor eax, eax
push ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0x320
mov dword [esp + 0x4c], edx
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x58]
push eax
push edi
push ecx
push edx
call fcn.0044e920
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x4c9f2b
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x74]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
push 0
push 0
call dword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov ecx, dword [esp + 0xa4]
push ecx
call dword [sym.imp.OPENGL32.dll_wglDeleteContext]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp edx, eax
je 0x4c9f77
mov ecx, dword [esp + 0x84]
xor eax, eax
mov edx, dword [ecx + 0x190]
test edx, edx
sete al
jmp 0x4c9f8d
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0x190]
neg eax
sbb eax, eax
and al, 0xfb
add eax, 5
push 0
push 1
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CPen::CPen
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
mov byte [esp + 0x144], 5
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esi]
push 5
mov ecx, esi
mov ebx, eax
call dword [edx + 0x2c]
mov edi, eax
push 0xffffffffffffffff
lea eax, [esp + 0xac]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xac]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
test edi, edi
je 0x4c9fff
mov edi, dword [edi + 4]
mov eax, dword [esi + 4]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov esi, 0x558628
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x140], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x6c]
mov byte [esp + 0x140], 1
call fcn.005480e2
lea ecx, [esp + 0xb8]
mov byte [esp + 0x140], 0
call fcn.005482c8
mov dword [esp + 0x7c], esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x140], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4