Function at 0x470580
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x512752
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
call fcn.004e0476
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], vtable.CFont.0
mov eax, dword [0x5581a0]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0xa4]
mov byte [esp + 0x9c], 2
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47061d
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
cmp ecx, ebp
je 0x47060e
mov edx, dword [ecx]
push 1
call dword [edx + 4]
push 1
push ebp
mov ecx, esi
call fcn.004d7142
cmp dword [esi + 8], ebp
jne 0x4705fe
push 0x64
push ebp
mov ecx, esi
call fcn.004d6fef
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.004e052d
call fcn.004f7df8
mov eax, dword [eax + 4]
add eax, 0x718
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x40]
call fcn.004e10d3
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x48]
push eax
call fcn.004e06c1
push ebp
push str.ListDiagnostic
push str.CuteFTP
mov ecx, 0x55e168
mov dword [esp + 0x6c], eax
call fcn.004f8082
push 0x400
call fcn.004dd79a
mov ebx, dword [esp + 0xb0]
mov dword [edi + 0x40c], ebp
mov esi, eax
add esp, 4
mov ecx, dword [ebx]
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], 1
mov edx, dword [ecx + 4]
mov ecx, dword [edx + ebx + 8]
cmp ecx, ebp
lea eax, [edx + ebx]
jne 0x470a32
cmp dword [eax + 0x34], ebp
jge 0x4706ca
add eax, 0x38
push eax
call fcn.004d1cd6
add esp, 4
mov edx, dword [ebx + 4]
push 0xa
inc edx
push 0x400
push esi
mov ecx, ebx
mov dword [ebx + 4], edx
call fcn.004d1cec
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
cmp dword [eax + 0x34], ebp
jge 0x4706f8
add eax, 0x38
push eax
call fcn.004d1ce1
add esp, 4
cmp dword [ebx + 8], ebp
je 0x470a1e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
cmp byte [ecx + esi], 0xd
jne 0x470719
mov byte [ecx + esi], 0
cmp dword [0x55e2f0], ebp
je 0x47072c
mov ecx, dword [esp + 0x18]
push ebp
push esi
call fcn.00452680
mov ecx, dword [0x5581a0]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x9c], 3
cmp eax, ebp
je 0x470791
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebp
call fcn.004dd2da
lea ecx, [esp + 0x10]
call fcn.004d40b4
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebp
je 0x47077e
mov al, byte [eax]
cmp al, 0x6e
je 0x470770
cmp al, 0x4e
jne 0x47077e
mov edx, dword [esp + 0x18]
mov dword [edx + 0x40c], 1
push esi
lea ecx, [esp + 0x20]
call fcn.004dd2da
lea ecx, [esp + 0x1c]
call fcn.004d40b4
push 0x3c
call fcn.004dd79a
add esp, 4
mov dword [esp + 0x58], eax
cmp eax, ebp
mov byte [esp + 0x9c], 4
je 0x4707b4
mov ecx, eax
call fcn.00429d90
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x9c], 3
test eax, eax
je 0x4707e1
push 0x55cec0
lea ecx, [esp + 0x60]
call fcn.004dd1bf
or dword [esp + 0x14], 1
mov byte [esp + 0x9c], 5
jmp 0x4707e5
lea eax, [esp + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.004dcec6
push esi
mov ecx, ebp
call fcn.0042a130
mov edi, eax
mov al, byte [esp + 0x14]
test al, 1
mov dword [esp + 0x9c], 3
je 0x470822
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
and al, 0xfe
mov dword [esp + 0x14], eax
call fcn.004dd151
test edi, edi
je 0x470af7
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 0xc]
push 0x554cd8
push eax
call fcn.004c27fe
add esp, 8
test eax, eax
je 0x470ae0
mov eax, dword [edi]
push 0x554a0c
push eax
call fcn.004c27fe
add esp, 8
test eax, eax
je 0x470ae0
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x47086e
push 0x2f
mov ecx, edi
call fcn.004d3f7b
mov ecx, dword [esp + 0xa4]
push ebp
mov eax, dword [ecx + 8]
push eax
call fcn.004d6f13
mov eax, dword [edi]
mov esi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x8c]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
call esi
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jle 0x4708ae
mov dword [esp + 0x20], eax
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.004dd28a
mov edi, dword [esp + 0x10]
cmp byte [edi], 0
je 0x4708dc
movsx edx, byte [edi]
push edx
call fcn.004c214a
add esp, 4
test eax, eax
je 0x4708f0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4708c4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
add ecx, 0x274
call fcn.0042e1a0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x64]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
call esi
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x470915
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea ebx, [ebp + 0x14]
sub esp, 0x14
lea eax, [ecx + 0x274]
mov ecx, 5
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.004319c0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x74]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jle 0x470965
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov ecx, 5
sub esp, 0x14
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [edx + 0x274]
call fcn.00431910
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x84]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
call esi
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x4709b8
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
lea edx, [esp + 0x6c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x5c]
push eax
call esi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jle 0x4709dc
mov dword [esp + 0x30], eax
mov ebp, dword [ebp + 0x34]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x7c]
mov eax, dword [ebp - 8]
push ecx
push eax
push ebp
push edx
call esi
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jle 0x470a00
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0xac]
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 2
call fcn.004dd151
xor ebp, ebp
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx + ebx]
mov ecx, dword [ecx + ebx + 8]
cmp ecx, ebp
je 0x4706b9
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x48]
push edx
call fcn.004e06c1
lea ecx, [esp + 0x3c]
call fcn.004e112a
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], edx
call fcn.004dd7c3
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x9c], 1
call fcn.004dd151
mov dword [esp + 0x3c], vtable.CGdiObject.0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9c], 6
call fcn.004e112a
lea ecx, [esp + 0x48]
mov dword [esp + 0x9c], 0xffffffff
call fcn.004e05ab
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret 0xc
test ebp, ebp
je 0x470a0b
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 4]
jmp 0x470a0b
test ebp, ebp
je 0x470a0b
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 4]
jmp 0x470a0b