Function at 0x4ef850
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x61d5ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
mov dword [esp + 0x18], 0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov ebx, dword [esp + 0xb8]
xor edx, edx
mov ecx, eax
mov dl, ah
mov ebp, eax
mov eax, ebx
shr ecx, 0x10
shr eax, 0x10
and ecx, 0xff
and eax, 0xff
add eax, ecx
mov edi, edx
cdq
sub eax, edx
mov dword [esp + 0x3c], ecx
sar eax, 1
xor ecx, ecx
and edi, 0xff
mov ch, al
xor eax, eax
mov al, bh
and ebp, 0xff
and eax, 0xff
mov dword [esp + 0x1c], ebx
add eax, edi
mov dword [esp + 0x38], ebp
cdq
sub eax, edx
mov dword [esp + 0x60], edi
sar eax, 1
mov cl, al
mov eax, ebx
and eax, 0xff
mov ebx, dword [esp + 0xb4]
add eax, ebp
xor ebp, ebp
cdq
sub eax, edx
mov byte [esp + 0x12], 0
sar eax, 1
shl ecx, 8
and eax, 0xff
mov dword [esp + 0x2c], ebp
or ecx, eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx]
sub eax, ecx
sar eax, 3
lea edx, [eax + 1]
test edx, edx
jbe 0x4efdc1
mov edx, dword [0x6abf00]
cmp ebp, eax
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x14], edx
test al, al
mov dword [esp + 0x94], 0
je 0x4ef97d
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.005d5426
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.005dd29d
mov byte [esp + 0x94], 0
lea ecx, [esp + 0x30]
jmp 0x4ef9de
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
mov edx, dword [eax - 8]
xor eax, eax
mov al, byte [ecx + ebp*8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0x28]
cmp eax, edx
ja 0x4efdad
mov eax, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ecx + ebp*8]
lea ecx, [esp + 0x34]
push edx
push eax
push ecx
mov ecx, dword [esp + 0xbc]
call fcn.005d5449
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.005dd29d
mov byte [esp + 0x94], 0
lea ecx, [esp + 0x34]
call fcn.005dd1b0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x4efd40
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov ebp, ebx
and ebp, 0xff
sub eax, ebp
mov dword [esp + 0x5c], ebp
cdq
mov ecx, eax
xor eax, eax
mov al, bh
xor ecx, edx
mov ebx, eax
mov eax, edi
and ebx, 0xff
mov edi, dword [esp + 0x1c]
sub eax, ebx
sub ecx, edx
cdq
xor eax, edx
mov dword [esp + 0x58], ebx
sub eax, edx
shr edi, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
and edi, 0xff
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
and eax, 0xff
mov dword [esp + 0x50], eax
sub eax, ebp
cdq
xor eax, edx
mov ebp, dword [esp + 0x20]
sub eax, edx
mov dword [esp + 0x44], eax
xor eax, eax
mov al, byte [esp + 0x21]
and eax, 0xff
mov dword [esp + 0x4c], eax
sub eax, ebx
cdq
xor eax, edx
shr ebp, 0x10
sub eax, edx
and ebp, 0xff
mov dword [esp + 0x48], eax
mov eax, ebp
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
add eax, edx
add eax, ecx
mov ecx, dword [esp + 0x40]
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x48]
sar eax, 1
add ecx, edx
cmp eax, ecx
setl al
test al, al
jne 0x4efac9
mov cl, byte [esp + 0x12]
test cl, cl
je 0x4efad0
inc dword [esp + 0xa0]
test al, al
mov byte [esp + 0x12], al
je 0x4efc1f
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x28], eax
mov ecx, 0x64
imul ebp, edx
shr eax, 0x10
sub ecx, edx
and eax, 0xff
imul eax, ecx
add eax, ebp
lea ebx, [ecx + edx]
cdq
mov dword [esp + 0x24], ebx
mov ebx, dword [esi]
idiv dword [esp + 0x24]
mov dword [esp + 0x44], ebx
xor edx, edx
mov dl, byte [esp + 0x29]
xor ebx, ebx
and edx, 0xff
mov dword [esp + 0x48], ecx
imul edx, ecx
mov bh, al
mov eax, dword [esp + 0x4c]
imul eax, dword [esp + 0xc0]
add eax, edx
cdq
idiv dword [esp + 0x24]
mov bl, al
mov eax, dword [esp + 0x28]
and eax, 0xff
imul eax, ecx
mov ecx, dword [esp + 0x50]
imul ecx, dword [esp + 0xc0]
add eax, ecx
mov ecx, esi
cdq
idiv dword [esp + 0x24]
shl ebx, 8
and eax, 0xff
or ebx, eax
mov eax, dword [esp + 0x44]
push ebx
call dword [eax + 0x30]
fld qword [0x62fd10]
xor ebx, ebx
mov dword [esp + 0x28], ebx
call fcn.00511af0
fstp qword [esp + 0x50]
fild dword [esp + 0x28]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov ebp, dword [esp + 0xa0]
fmul qword [esp + 0x50]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
fmul qword [0x633d00]
fld st(0)
fcos
fmul qword [0x633cf8]
call fcn.00511abc
fsin
mov ecx, dword [esp + 0xa4]
sub ecx, eax
mov dword [esp + 0x70], ecx
fmul qword [0x633cf0]
call fcn.00511abc
mov edx, dword [esi]
add ebp, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], ebp
lea ebp, [esp + 0x6c]
push 0x8800
mov ecx, dword [eax - 8]
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
inc ebx
cmp ebx, 8
mov dword [esp + 0x28], ebx
jl 0x4efb8e
mov ebx, dword [esp + 0x58]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
imul ebx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x24], eax
mov ebp, 0x64
imul edi, ecx
shr eax, 0x10
sub ebp, ecx
and eax, 0xff
imul eax, ebp
lea edx, [ecx + ebp]
add eax, edi
mov dword [esp + 0x28], edx
mov edx, dword [esi]
mov dword [esp + 0x50], edx
xor ecx, ecx
cdq
idiv dword [esp + 0x28]
mov edi, dword [esp + 0x28]
mov ch, al
xor eax, eax
mov al, byte [esp + 0x25]
and eax, 0xff
imul eax, ebp
add eax, ebx
cdq
idiv edi
mov cl, al
mov eax, dword [esp + 0x24]
shl ecx, 8
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0xc0]
and eax, 0xff
imul eax, ebp
add eax, ecx
mov ecx, dword [esp + 0x58]
cdq
idiv edi
mov edx, dword [esp + 0x50]
and eax, 0xff
or ecx, eax
push ecx
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov edx, dword [esi]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ecx
mov ecx, dword [eax - 8]
lea ebp, [esp + 0x7c]
push 0x8800
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x64]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
add edi, dword [esp + 0x64]
cmp edi, ebx
mov dword [esp + 0xa0], edi
jge 0x4efdad
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0xb4]
mov al, byte [esp + 0x13]
test al, al
jne 0x4efdad
mov eax, dword [ebx]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [eax + ebp*8]
add edx, ecx
mov ecx, 0x1000000
mov dword [esp + 0x18], edx
mov edx, dword [eax + ebp*8 + 4]
cmp edx, ecx
jne 0x4efd73
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x1c], edx
jmp 0x4efd7d
ja 0x4efd7d
mov eax, dword [eax + ebp*8 + 4]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x94], 0xffffffff
call fcn.005dd1b0
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
inc ebp
sar eax, 3
mov dword [esp + 0x2c], ebp
lea edx, [eax + 1]
cmp ebp, edx
jb 0x4ef925
jmp 0x4efdc1
lea ecx, [esp + 0x14]
mov dword [esp + 0x94], 0xffffffff
call fcn.005dd1b0
mov ecx, dword [esp + 0xbc]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret