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

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov ecx, dword [ebp + 8]
push ebx
push esi
sub eax, eax
push edi
mov edi, dword [ecx + 0x58]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x40c340
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [edx]
mov dword [esp + 0x60], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x64], ecx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov ebx, dword [edx + 8]
sub ebx, esi
mov dword [esp + 0x14], esi
mov esi, dword [edx + 4]
mov edx, dword [edx + 0xc]
mov dword [esp + 0xc], ebx
sub edx, esi
fild dword [esp + 0xc]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x1c], esi
sub eax, ebx
fstp qword [esp + 0x34]
fild dword [esp + 0xc]
sub ecx, dword [esp + 0x64]
fstp qword [esp + 0xc]
fild dword [esp + 0x14]
fstp qword [esp + 0x44]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
lea eax, [edi*8]
push eax
fstp qword [esp + 0x58]
fild dword [esp + 0x20]
fld qword [esp + 0x38]
mov dword [esp + 0x20], ecx
fdiv st(1)
fst qword [esp + 0x40]
fild dword [esp + 0x20]
fld qword [esp + 0x10]
fdiv st(1)
fst qword [esp + 0x50]
fxch st(1)
fmul st(1)
fstp qword [esp + 0x18]
fstp st(0)
fxch st(1)
fmul st(1)
fstp qword [esp + 0x20]
fstp st(0)
call sub.MFC42.DLL_operatornew
add esp, 4
push eax
pop ebx
or edi, edi
jle 0x403d94
test ebx, ebx
je 0x403d94
sub esi, esi
or edi, edi
jle 0x403d94
fld qword [esp + 0x34]
fsub qword [esp + 0x1c]
fmul qword [0x40c338]
fld qword [esp + 0xc]
fsub qword [esp + 0x14]
fmul qword [0x40c338]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
mov ecx, dword [esp + 0x60]
mov eax, dword [edx + esi*8]
sub eax, ecx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [esp + 0x3c]
fadd st(2)
fadd qword [esp + 0x44]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp + 8]
mov dword [ebx + esi*8], eax
mov edx, dword [ecx + 0x5c]
mov eax, dword [edx + esi*8 + 4]
mov edx, dword [esp + 0x64]
sub eax, edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [esp + 0x4c]
fadd st(1)
fadd qword [esp + 0x54]
call sub.MSVCRT.dll__ftol
mov dword [ebx + esi*8 + 4], eax
inc esi
cmp esi, edi
jl 0x403d37
fstp st(0)
fstp st(0)
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x54]
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CGdiObject::Attach
test eax, eax
je 0x403dca
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_PtInRegion]
mov esi, eax
jmp 0x403dce
mov esi, dword [esp + 0x28]
or ebx, ebx
je 0x403ddb
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x2c], 0x40c324
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
push ebp
pop esp
pop ebp
ret