Function at 0x470540
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x512712
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.004e0436
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], vtable.CFont.0
mov eax, dword [0x5580a0]
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 0x4705dd
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
cmp ecx, ebp
je 0x4705ce
mov edx, dword [ecx]
push 1
call dword [edx + 4]
push 1
push ebp
mov ecx, esi
call fcn.004d7102
cmp dword [esi + 8], ebp
jne 0x4705be
push 0x64
push ebp
mov ecx, esi
call fcn.004d6faf
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.004e04ed
call fcn.004f7db8
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.004e1093
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x48]
push eax
call fcn.004e0681
push ebp
push str.ListDiagnostic
push str.CuteFTP
mov ecx, 0x55e068
mov dword [esp + 0x6c], eax
call fcn.004f8042
push 0x400
call fcn.004dd75a
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 0x4709f2
cmp dword [eax + 0x34], ebp
jge 0x47068a
add eax, 0x38
push eax
call fcn.004d1c96
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.004d1cac
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
cmp dword [eax + 0x34], ebp
jge 0x4706b8
add eax, 0x38
push eax
call fcn.004d1ca1
add esp, 4
cmp dword [ebx + 8], ebp
je 0x4709de
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 0x4706d9
mov byte [ecx + esi], 0
cmp dword [0x55e1f0], ebp
je 0x4706ec
mov ecx, dword [esp + 0x18]
push ebp
push esi
call fcn.00452660
mov ecx, dword [0x5580a0]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x9c], 3
cmp eax, ebp
je 0x470751
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebp
call fcn.004dd29a
lea ecx, [esp + 0x10]
call fcn.004d4074
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebp
je 0x47073e
mov al, byte [eax]
cmp al, 0x6e
je 0x470730
cmp al, 0x4e
jne 0x47073e
mov edx, dword [esp + 0x18]
mov dword [edx + 0x40c], 1
push esi
lea ecx, [esp + 0x20]
call fcn.004dd29a
lea ecx, [esp + 0x1c]
call fcn.004d4074
push 0x3c
call fcn.004dd75a
add esp, 4
mov dword [esp + 0x58], eax
cmp eax, ebp
mov byte [esp + 0x9c], 4
je 0x470774
mov ecx, eax
call fcn.00429d90
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x9c], 3
test eax, eax
je 0x4707a1
push 0x55cdc0
lea ecx, [esp + 0x60]
call fcn.004dd17f
or dword [esp + 0x14], 1
mov byte [esp + 0x9c], 5
jmp 0x4707a5
lea eax, [esp + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.004dce86
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 0x4707e2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
and al, 0xfe
mov dword [esp + 0x14], eax
call fcn.004dd111
test edi, edi
je 0x470ab7
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 0xc]
push 0x554bd8
push eax
call fcn.004c27be
add esp, 8
test eax, eax
je 0x470aa0
mov eax, dword [edi]
push 0x55497c
push eax
call fcn.004c27be
add esp, 8
test eax, eax
je 0x470aa0
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x47082e
push 0x2f
mov ecx, edi
call fcn.004d3f3b
mov ecx, dword [esp + 0xa4]
push ebp
mov eax, dword [ecx + 8]
push eax
call fcn.004d6ed3
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 0x47086e
mov dword [esp + 0x20], eax
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.004dd24a
mov edi, dword [esp + 0x10]
cmp byte [edi], 0
je 0x47089c
movsx edx, byte [edi]
push edx
call fcn.004c210a
add esp, 4
test eax, eax
je 0x4708b0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x470884
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
add ecx, 0x274
call fcn.0042e180
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 0x4708d5
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.004319a0
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 0x470925
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.004318f0
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 0x470978
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 0x47099c
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 0x4709c0
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.004dd111
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 0x470679
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x48]
push edx
call fcn.004e0681
lea ecx, [esp + 0x3c]
call fcn.004e10ea
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.004dd783
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x9c], 1
call fcn.004dd111
mov dword [esp + 0x3c], vtable.CGdiObject.0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9c], 6
call fcn.004e10ea
lea ecx, [esp + 0x48]
mov dword [esp + 0x9c], 0xffffffff
call fcn.004e056b
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 0x4709cb
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 4]
jmp 0x4709cb
test ebp, ebp
je 0x4709cb
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 4]
jmp 0x4709cb