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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f79e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
sub eax, esi
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
push edi
fild dword [esp + 0x14]
fld qword [ebp + 0x1c]
fadd qword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0x18]
sub ecx, edx
mov edx, dword [edi + 0x80]
fst qword [esp + 0x5c]
fadd qword [ebp + 0x2c]
mov dword [esp + 0x14], ecx
push edx
push 1
push 0
lea ecx, [esp + 0x40]
fst qword [esp + 0x70]
fld st(1)
fmul qword [0x540258]
fdiv st(1)
fstp qword [esp + 0x48]
fstp st(0)
fmul qword [0x540250]
fiadd dword [ebp + 0xc]
fstp qword [esp + 0x38]
fild dword [esp + 0x20]
fld st(0)
fmul qword [0x540258]
fdiv qword [ebp + 0x34]
fstp qword [esp + 0x58]
fmul qword [str.ffffff]
fiadd dword [ebp + 0x10]
fstp qword [esp + 0x50]
call fcn.004cfce1
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
mov dword [esp + 0x7c], 0
call fcn.004ceb59
fld qword [esp + 0x44]
mov dword [esp + 0x28], eax
call fcn.004a7884
fld qword [esp + 0x2c]
mov ebx, eax
call fcn.004a7884
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004cf212
fld qword [esp + 0x4c]
fmul qword [ebp + 0x3c]
fsubr qword [esp + 0x44]
call fcn.004a7884
mov edx, dword [esp + 0xc]
push eax
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.004cf25e
fld qword [esp + 0x4c]
fmul qword [ebp + 0x34]
fsubr qword [esp + 0x44]
call fcn.004a7884
fld qword [esp + 0x3c]
fmul qword [ebp + 0x1c]
mov dword [esp + 0x10], eax
push eax
fadd qword [esp + 0x30]
call fcn.004a7884
push eax
mov ecx, esi
call fcn.004cf25e
fld qword [esp + 0x5c]
fmul qword [esp + 0x3c]
mov eax, dword [esp + 0x10]
push eax
fadd qword [esp + 0x30]
call fcn.004a7884
push eax
mov ecx, esi
call fcn.004cf25e
fld qword [esp + 0x64]
fmul qword [esp + 0x3c]
fadd qword [esp + 0x2c]
call fcn.004a7884
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
push eax
mov ecx, esi
call fcn.004cf25e
mov edx, dword [esp + 0x14]
push ebx
push edx
mov ecx, esi
call fcn.004cf25e
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.004ceb59
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x466515
mov dword [esp + 0x34], vtable.CGdiObject.0
mov dword [esp + 0x78], 1
jmp 0x46665b
mov eax, dword [edi + 0x40]
test eax, eax
mov dword [esp + 0x28], eax
jge 0x466535
mov dword [esp + 0x34], vtable.CGdiObject.0
mov dword [esp + 0x78], 2
jmp 0x46665b
jne 0x466544
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
jmp 0x4665ea
fild dword [esp + 0x28]
fcom qword [ebp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x466586
fld st(0)
fmul qword [esp + 0x3c]
fadd qword [esp + 0x2c]
call fcn.004a7884
fld qword [ebp + 0x34]
fsub qword [ebp + 0x3c]
mov dword [esp + 0x3c], eax
fmul st(1)
fdiv qword [ebp + 0x1c]
fadd qword [ebp + 0x3c]
fmul qword [esp + 0x4c]
fsubr qword [esp + 0x44]
call fcn.004a7884
fstp st(0)
mov ebx, eax
jmp 0x4665ea
fcom qword [esp + 0x5c]
fnstsw ax
test ah, 0x41
je 0x4665a8
fmul qword [esp + 0x3c]
fadd qword [esp + 0x2c]
call fcn.004a7884
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
jmp 0x4665ea
fcom qword [esp + 0x64]
fnstsw ax
test ah, 0x41
je 0x4665d9
fld st(0)
fmul qword [esp + 0x3c]
fadd qword [esp + 0x2c]
call fcn.004a7884
fld qword [esp + 0x64]
fsub st(1)
fld qword [ebp + 0x34]
fsub qword [ebp + 0x3c]
mov dword [esp + 0x3c], eax
fmulp st(1)
fdiv qword [ebp + 0x2c]
jmp 0x466570
mov edx, dword [esp + 0x14]
mov dword [edi + 0x40], 0xffffffff
fstp st(0)
mov dword [esp + 0x3c], edx
mov eax, dword [edi + 0x84]
lea ecx, [esp + 0x54]
push eax
call fcn.004cfd87
mov edx, dword [esp + 0x3c]
lea ecx, [ebx - 3]
lea edi, [ebx + 3]
mov ebx, dword [esp + 0x58]
lea eax, [edx - 3]
add edx, 3
mov dword [esp + 0x18], eax
lea eax, [esp + 0x54]
neg eax
sbb eax, eax
mov dword [esp + 0x1c], ecx
and eax, ebx
mov dword [esp + 0x20], edx
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_FillRect]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x78], 3
call fcn.004cfccb
mov dword [esp + 0x34], esi
mov dword [esp + 0x78], 4
lea ecx, [esp + 0x34]
call fcn.004cfccb
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x3c