Function at 0x402420
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x416e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CDC::CDC
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], ebx
call fcn.00404df0
mov dword [esp + 0x30], 0x41889c
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
push eax
push ebp
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x90], 1
call fcn.00404c30
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ecx
mov ecx, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call sub.MFC42.DLL_CWnd::GetStyle
mov esi, eax
lea ecx, [esp + 0x28]
shr esi, 0x1b
and esi, 1
call fcn.00404df0
mov edi, 0x4188b0
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 2
call fcn.00404df0
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 3
call fcn.00404df0
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 4
call fcn.00404df0
mov dword [esp + 0x10], edi
mov edx, esi
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
neg edx
sbb edx, edx
mov byte [esp + 0x7c], 5
and edx, 0x808080
push edx
push 1
push ebx
call edi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CGdiObject::Attach
push 0xffffff
push 1
push ebx
call edi
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xbfc0c1
add eax, 0xffff
push eax
push 1
push ebx
call edi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
neg esi
sbb esi, esi
and esi, 0x800000
add esi, 0x8080
push esi
push 1
push ebx
call edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], ecx
add eax, 0xd
inc ecx
push eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x58], ecx
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov dword [esp + 0x64], eax
call fcn.00404f50
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add eax, 0xa
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
mov eax, dword [edx + 8]
push eax
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0x5c]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
sub ecx, 4
add eax, 4
mov dword [esp + 0x58], ecx
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x50]
push 1
mov ecx, dword [eax + 8]
push ecx
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov eax, dword [eax + 4]
lea edx, [esp + 0x5c]
push edx
push 0x10
push eax
call edi
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
call fcn.00404fc0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
dec eax
push eax
push ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x50]
push 1
mov eax, dword [edx + 8]
push eax
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
sub eax, 9
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x50]
push 1
mov eax, dword [edx + 8]
push eax
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
sub eax, 5
add ecx, 5
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
push ecx
mov ecx, dword [esp + 0x54]
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x50]
push 1
mov ecx, dword [eax + 8]
push ecx
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov eax, dword [eax + 4]
lea edx, [esp + 0x5c]
push edx
push 0x10
push eax
call edi
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
call fcn.00404fc0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
sub eax, 8
push eax
push ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x50]
push 1
mov eax, dword [edx + 8]
push eax
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
inc eax
dec ecx
mov dword [esp + 0x58], ecx
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x50]
push 1
mov ecx, dword [eax + 8]
push ecx
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov eax, dword [eax + 4]
lea edx, [esp + 0x5c]
push edx
push 0x10
push eax
call edi
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
push ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edx
push eax
call fcn.00404fc0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add eax, 2
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x50]
push 1
mov eax, dword [edx + 8]
push eax
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
inc eax
inc ecx
mov dword [esp + 0x58], ecx
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x50]
push 1
mov ecx, dword [eax + 8]
push ecx
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov eax, dword [eax + 4]
lea edx, [esp + 0x5c]
push edx
push 0x10
push eax
call edi
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
call fcn.00404fc0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add eax, 6
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x50]
push 1
mov eax, dword [edx + 8]
push eax
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
lea ecx, [esp + 0x5c]
mov edx, dword [eax + 4]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
add eax, 2
mov dword [esp + 0x58], eax
push eax
mov eax, dword [esp + 0x58]
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x50]
push 1
mov edx, dword [ecx + 8]
push edx
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
add eax, 2
mov dword [esp + 0x54], ecx
add ecx, 9
mov dword [esp + 0x58], eax
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x58], ecx
push ecx
mov ecx, dword [esp + 0x58]
push eax
call fcn.00404f50
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
inc eax
dec ecx
mov dword [esp + 0x58], ecx
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x50]
push 1
mov edx, dword [ecx + 8]
push edx
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
push eax
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add eax, 2
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x50]
push 1
mov eax, dword [edx + 8]
push eax
call esi
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.00404fc0
push 2
push 2
lea ecx, [esp + 0x58]
call fcn.00402d20
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
inc eax
dec ecx
push ecx
mov dword [esp + 0x58], eax
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
call fcn.00404f50
push 2
push ebx
lea ecx, [esp + 0x58]
call fcn.00402d20
push ebx
push 0xfffffffffffffffe
lea ecx, [esp + 0x58]
call fcn.00402d20
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CDC::SelectObject_1
push 9
push 6
lea ecx, [esp + 0x58]
call fcn.00402c90
mov esi, 4
push ebx
push 8
lea ecx, [esp + 0x58]
call fcn.00402d20
push 1
push 0xfffffffffffffff7
lea ecx, [esp + 0x58]
call fcn.00402ce0
dec esi
jne 0x402a7e
lea edx, [esp + 0x18]
lea ecx, [esp + 0x40]
push edx
call sub.MFC42.DLL_CDC::SelectObject_1
push 6
push 2
lea ecx, [esp + 0x58]
call fcn.00402c90
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x58]
call fcn.00402d20
push 8
push 2
lea ecx, [esp + 0x58]
call fcn.00402c90
push 0xfffffffffffffffe
push 2
lea ecx, [esp + 0x58]
call fcn.00402d20
push 0xa
push 2
lea ecx, [esp + 0x58]
call fcn.00402c90
push 0xfffffffffffffffc
push 4
lea ecx, [esp + 0x58]
call fcn.00402d20
push 1
push 1
lea ecx, [esp + 0x58]
call fcn.00402d20
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x58]
call fcn.00402d20
push 1
push 1
lea ecx, [esp + 0x58]
call fcn.00402d20
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x58]
call fcn.00402d20
lea eax, [esp + 0x20]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
push 5
push 2
lea ecx, [esp + 0x58]
call fcn.00402c90
push ebx
push ebx
lea ecx, [esp + 0x58]
call fcn.00402d20
push 2
push ebx
lea ecx, [esp + 0x58]
call fcn.00402ce0
push 0xfffffffffffffffe
push 2
lea ecx, [esp + 0x58]
call fcn.00402d20
push 9
push 2
lea ecx, [esp + 0x58]
call fcn.00402c90
push 0xfffffffffffffffd
push 3
lea ecx, [esp + 0x58]
call fcn.00402d20
push 0xb
push 2
lea ecx, [esp + 0x58]
call fcn.00402c90
push 0xfffffffffffffffb
push 5
lea ecx, [esp + 0x58]
call fcn.00402d20
push 1
push 1
lea ecx, [esp + 0x58]
call fcn.00402d20
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x58]
call fcn.00402d20
push 1
push 1
lea ecx, [esp + 0x58]
call fcn.00402d20
mov eax, dword [ebp + 4]
push 0xcc0020
mov ecx, dword [ebp]
push ebx
lea edx, [esp + 0x48]
push ebx
push edx
mov edx, dword [ebp + 0xc]
sub edx, eax
push edx
mov edx, dword [ebp + 8]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0xa4]
call fcn.00404f80
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 4
call fcn.00404e90
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 3
call fcn.00404e90
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 2
call fcn.00404e90
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 1
call fcn.00404e90
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], bl
call fcn.00404f00
lea ecx, [esp + 0x40]
mov dword [esp + 0x7c], 0xffffffff
call fcn.004166fa
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 0xc