Function at 0x470c50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4961f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040d550
lea ecx, [ebp - 0x50]
call fcn.0040d550
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x38]
push 0xc0c0c0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x34]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x40f]
and ecx, 0x20
test ecx, ecx
jne 0x470cd9
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 0x40f]
and eax, 0x80
test eax, eax
je 0x470cd9
mov dword [ebp - 0x58], 1
jmp 0x470ce0
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x40f]
and edx, 0x20
test edx, edx
je 0x470d01
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4ed]
mov dword [ebp - 0x30], ecx
jmp 0x470d0e
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x423]
mov dword [ebp - 0x30], eax
push 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x411
push ecx
lea edx, [ebp - 0x40]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x60]
call fcn.00434f00
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x60]
call fcn.00471510
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
call fcn.004739b0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x40f]
and ecx, 2
test ecx, ecx
je 0x470dce
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 0x40f]
and eax, 1
test eax, eax
je 0x470dce
push 6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
push eax
push 0
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp - 0x58]
push edx
push 0
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0x425]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x4bd], 0
je 0x470dec
push 7
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0x2c]
mov dword [ebp - 0x18], eax
jmp 0x470e01
mov ecx, dword [ebp - 0x10]
add ecx, 0x461
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::SelectObject_1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x40f]
and ecx, 0x20
test ecx, ecx
jne 0x470ef1
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 0x40f]
and eax, 0x80
test eax, eax
je 0x470ef1
mov ecx, dword [ebp - 0x10]
add ecx, 0x461
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::SelectObject_1
push 1
push 0
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
push 1
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
push 6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx + 0x2c]
push 2
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
push 2
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x4bd], 0
je 0x470ee0
push 7
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x2c]
jmp 0x470ef1
mov eax, dword [ebp - 0x10]
add eax, 0x461
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [ebp - 0x10]
add ecx, 0x451
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x40f]
and edx, 2
test edx, edx
je 0x470f29
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x425]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], 0
jmp 0x470f47
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x42d]
call fcn.00489cd0
cmp dword [ebp - 0x1c], eax
jge 0x47140b
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x439], 0
je 0x470fe1
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x43d]
cmp dword [ebp - 0x1c], eax
jl 0x470fdf
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0x429]
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x43d]
add edx, ecx
cmp dword [ebp - 0x1c], edx
jge 0x470fdf
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 0x40f]
and eax, 0x100
test eax, eax
je 0x470fda
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x42d]
call fcn.00484ae0
test eax, eax
je 0x470fda
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00484ae0
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x470f3e
jmp 0x47103c
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x429]
cmp dword [ebp - 0x1c], eax
jge 0x47103c
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x40f]
and edx, 0x100
test edx, edx
je 0x471037
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00484ae0
test eax, eax
je 0x471037
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x42d]
call fcn.00484ae0
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x470f3e
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x42d]
call fcn.00489720
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x40f]
and edx, 0x100
test edx, edx
je 0x47116e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00484ae0
test eax, eax
je 0x47116e
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x42d]
call fcn.00484ae0
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47116e
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x42d]
call fcn.00484ae0
mov ecx, eax
call fcn.0040db80
test eax, eax
jne 0x4710f2
push 5
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x42d]
call fcn.00484ae0
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00484ae0
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xb4]
call dword [eax + 0xc8]
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x42d]
call fcn.00484ae0
mov ecx, eax
call fcn.00412020
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00484ae0
mov ecx, eax
call fcn.0040db60
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 0x40f]
and eax, 0x20
test eax, eax
je 0x4712bc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x435], 0
je 0x4712bc
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x42d]
call fcn.00484ae0
test eax, eax
je 0x4711bb
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x4bd], 0
je 0x4712bc
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0x4ed]
imul ecx, dword [eax + 0x4f5]
mov eax, ecx
cdq
mov ecx, 0x64
idiv ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x28]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x44], ecx
push 0x29
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00489990
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x42d]
call fcn.00489990
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx + 0x70]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x2c]
add ecx, eax
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x42d]
call fcn.00489a50
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4712ba
push 0x21
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx + 0x70]
jmp 0x47131c
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00484ae0
test eax, eax
je 0x4712de
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x4bd], 0
je 0x47131c
push 0x25
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x42d]
call fcn.00489990
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00489990
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0x70]
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x40f]
and edx, 8
test edx, edx
jne 0x471349
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x42d]
call fcn.00489930
test eax, eax
jne 0x4713e9
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x4bd], 0
je 0x471364
push 7
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x2c]
jmp 0x471375
mov eax, dword [ebp - 0x10]
add eax, 0x461
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x90]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
push 6
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [ebp - 0x30]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0xa0]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
jmp 0x470f3e
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x40f]
and edx, 4
test edx, edx
je 0x4714cc
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x40f]
and ecx, 8
test ecx, ecx
jne 0x4714cc
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x4bd], 0
je 0x471454
push 7
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x2c]
jmp 0x471465
mov eax, dword [ebp - 0x10]
add eax, 0x461
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [ebp - 0x30]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
push 6
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
lea edx, [ebp - 0xb0]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebp - 0x30]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x30]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CDC::SelectObject_1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00434f70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4