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

Disassembly:
push 0xffffffffffffffff
push 0x101f321d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
xor ebx, ebx
cmp edi, ebx
mov esi, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
jne 0x101569ef
xor al, al
jmp 0x10156c25
push edi
call fcn.10156c50
add esp, 4
mov dword [esp + 0x80], ebx
call fcn.101c6680
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x80], 1
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffffffffffffff
mov dword [esp + 0x50], eax
lea eax, [edi + 0xc]
push ebx
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
call fcn.10007880
mov byte [esp + 0x80], 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x80], 3
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x5c]
push 0xa
push eax
call fcn.1019fef0
add esp, 0xc
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ebx
xor ebp, ebp
lea ebx, [ebx]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10156b4c
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x10156b48
xor ecx, ecx
cmp ebp, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
jb 0x10156acb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
test esi, esi
mov ecx, dword [ebx + esi + 0x14]
mov dword [esp + 0x50], ecx
je 0x10156af0
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x10156afa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
cmp dword [ebx + esi + 0x18], 8
jb 0x10156b07
mov esi, dword [ebx + esi + 4]
jmp 0x10156b0b
lea esi, [ebx + esi + 4]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
push edx
push eax
push esi
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x44]
jle 0x10156b2f
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
add edx, ebp
add dword [esp + 0x14], edx
add ebp, 1
add ebx, 0x1c
jmp 0x10156a80
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, esi
je 0x10156b73
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0x44]
lea edx, [edx + ecx + 0xb]
mov dword [eax], edx
mov ecx, dword [esp + 0x3c]
cmp ecx, esi
je 0x10156b90
mov eax, dword [esp + 0x14]
mov edi, dword [edi + 8]
add eax, 6
add edi, 6
cmp eax, edi
jg 0x10156b8e
mov eax, edi
mov dword [ecx], eax
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x10156bc0
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
push ecx
call fcn.10002b40
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0x80], 1
cmp dword [esp + 0x70], 8
jb 0x10156be8
mov eax, dword [esp + 0x5c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], esi
mov word [esp + 0x5c], si
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x10156c18
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, esi
je 0x10156c18
mov dword [esp + 0x2c], esi
mov dword [esp + 0x80], 0xffffffff
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.101d19cc
add esp, 0x70
ret