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

Disassembly:
push 0xffffffffffffffff
push 0x429be0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435df8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x44]
call fcn.0040e797
xor ebp, ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], vtable.CBitmap.0
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x88]
push eax
push ebx
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x54]
push eax
mov ecx, esi
mov byte [esp + 0x94], 1
call fcn.00401770
lea ecx, [esp + 0x44]
mov dword [esp + 0x54], ecx
mov ecx, esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
call fcn.0040d48e
mov esi, eax
shr esi, 0x1b
mov eax, vtable.CPen.0
and esi, 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], eax
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
mov edx, esi
neg edx
sbb edx, edx
and edx, 0x808080
push edx
push 1
push ebp
mov byte [esp + 0x8c], 5
call edi
push eax
lea ecx, [esp + 0x30]
call fcn.0040ee21
push 0xffffff
push 1
push ebp
call edi
push eax
lea ecx, [esp + 0x28]
call fcn.0040ee21
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xbfc0c1
add eax, 0xffff
push eax
push 1
push ebp
call edi
push eax
lea ecx, [esp + 0x20]
call fcn.0040ee21
neg esi
sbb esi, esi
and esi, 0x800000
add esi, 0x8080
push esi
push 1
push ebp
call edi
push eax
lea ecx, [esp + 0x18]
call fcn.0040ee21
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x48]
call fcn.0040ef0c
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
add eax, 0xd
inc ecx
push eax
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x68], eax
call fcn.0040ea76
push ebp
push 0xa
lea ecx, [esp + 0x5c]
call fcn.00401420
push 0xfffffffffffffffc
push 4
lea ecx, [esp + 0x5c]
call fcn.00401420
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x5c]
call fcn.00401420
push ebp
push 0xfffffffffffffff7
lea ecx, [esp + 0x5c]
call fcn.00401420
push 5
push 0xfffffffffffffffb
lea ecx, [esp + 0x5c]
call fcn.00401420
push 0xfffffffffffffff8
push ebp
lea ecx, [esp + 0x5c]
call fcn.00401420
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x5c]
call fcn.00401420
push ebp
push 2
lea ecx, [esp + 0x5c]
call fcn.00401420
push 1
push 1
lea ecx, [esp + 0x5c]
call fcn.00401420
push ebp
push 6
lea ecx, [esp + 0x5c]
call fcn.00401420
push 2
push ebp
lea ecx, [esp + 0x5c]
call fcn.00401420
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add eax, 2
mov dword [esp + 0x58], ecx
add ecx, 9
push eax
mov dword [esp + 0x60], eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push eax
call fcn.0040ea76
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x5c]
call fcn.00401420
push ebp
push 2
lea ecx, [esp + 0x5c]
call fcn.00401420
push 2
push 2
lea ecx, [esp + 0x5c]
call fcn.00401420
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
dec ecx
push ecx
inc eax
mov dword [esp + 0x60], ecx
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
call fcn.0040ea76
push 2
push ebp
lea ecx, [esp + 0x5c]
call fcn.00401420
push ebp
push 0xfffffffffffffffe
lea ecx, [esp + 0x5c]
call fcn.00401420
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
call fcn.0040ef0c
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add eax, 9
mov dword [esp + 0x58], ecx
add ecx, 6
push eax
mov dword [esp + 0x60], eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push eax
call fcn.0040ea76
mov esi, dword [sym.imp.GDI32.dll_GetCurrentObject]
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
mov ebp, dword [sym.imp.GDI32.dll_SetPixel]
mov dword [esp + 0x8c], 4
nop
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add eax, 8
push ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
inc ecx
push ecx
sub eax, 9
push eax
lea edx, [esp + 0x44]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x64], eax
call fcn.0040ea76
sub dword [esp + 0x8c], 1
jne 0x402e70
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x48]
call fcn.0040ef0c
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
add ecx, 2
add eax, 6
push eax
push ecx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x68], eax
call fcn.0040ea76
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
dec ecx
inc eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
add eax, 8
add ecx, 2
push eax
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x68], eax
call fcn.0040ea76
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
sub ecx, 2
add eax, 2
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 8]
push 1
push ecx
call esi
push eax
call fcn.0040ee0d
lea edx, [esp + 0x60]
mov eax, dword [eax + 4]
push edx
push 0x10
push eax
call edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call ebp
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add eax, 0xa
mov dword [esp + 0x58], ecx
add ecx, 2
push eax
mov dword [esp + 0x60], eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push eax
call fcn.0040ea76
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
sub ecx, 4
add eax, 4
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 8]
push 1
push edx
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
inc ecx
inc eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
lea ecx, [esp + 0x60]
push ecx
push 0x10
mov edx, dword [eax + 4]
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
dec ecx
inc eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
inc ecx
inc eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov eax, dword [esp + 0x58]
inc eax
mov ecx, dword [esp + 0x5c]
dec ecx
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x48]
call fcn.0040ef0c
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add eax, 5
mov dword [esp + 0x58], ecx
add ecx, 2
push eax
mov dword [esp + 0x60], eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push eax
call fcn.0040ea76
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.0040e6e5
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 8]
push 1
push ecx
call esi
push eax
call fcn.0040ee0d
mov eax, dword [eax + 4]
lea edx, [esp + 0x60]
push edx
push 0x10
push eax
call edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call ebp
mov eax, dword [esp + 0x5c]
add eax, 2
mov dword [esp + 0x5c], eax
push eax
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x60]
call fcn.0040ea76
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
sub ecx, 2
add eax, 2
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
add eax, 9
add ecx, 2
push eax
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x68], eax
call fcn.0040ea76
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
sub ecx, 3
add eax, 3
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 8]
push 1
push ecx
call esi
push eax
call fcn.0040ee0d
mov eax, dword [eax + 4]
lea edx, [esp + 0x60]
push edx
push 0x10
push eax
call edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 4]
push edx
call ebp
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add eax, 0xb
mov dword [esp + 0x58], ecx
add ecx, 2
push eax
mov dword [esp + 0x60], eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
push eax
call fcn.0040ea76
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
sub ecx, 5
add eax, 5
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 8]
push 1
push edx
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
inc ecx
inc eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
dec ecx
inc eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
inc ecx
inc eax
push ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x60], eax
call fcn.0040e6e5
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
push 1
push eax
call esi
push eax
call fcn.0040ee0d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x10
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx]
mov esi, dword [esp + 0x48]
mov ebx, dword [ebx + 8]
push 0xcc0020
push 0
push 0
sub eax, ecx
push esi
sub ebx, edx
push eax
push ebx
push ecx
push edx
mov edx, dword [esp + 0xa8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x2c]
call fcn.0040ee79
lea ecx, [esp + 0x24]
call fcn.0040ee79
lea ecx, [esp + 0x1c]
call fcn.0040ee79
lea ecx, [esp + 0x14]
call fcn.0040ee79
lea ecx, [esp + 0x34]
call fcn.0040ee79
mov esi, vtable.CPen.0
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 4
mov dword [esp + 0x14], esi
call fcn.004028c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 3
mov dword [esp + 0x1c], esi
call fcn.004028c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 2
mov dword [esp + 0x24], esi
call fcn.004028c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
mov dword [esp + 0x2c], esi
call fcn.004028c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
mov dword [esp + 0x34], vtable.CBitmap.0
call fcn.004028c0
lea ecx, [esp + 0x44]
mov dword [esp + 0x80], 0xffffffff
call fcn.0040ec5d
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0xc