Function at 0x10091ad
Capabilities:
Get number of processors

Disassembly:
mov eax, dword [0x103803c]
mov dword [0x10382bc], eax
mov eax, dword [0x1038038]
mov dword [0x10382c0], eax
jmp 0x100916c
cmp ax, 7
jne 0x10091e8
or dword [0x10382cc], 1
jmp 0x10091e8
and dword [ebp - 4], 0xffdfffff
jmp 0x1009052
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x103825c]
mov ax, word [esi + 0x10]
sub ax, word [esi + 0xc]
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x74]
movsx ecx, cx
inc ax
cwde
imul eax, ecx
movsx ecx, word [0x1038344]
add eax, ecx
mov cx, word [esi + 0x12]
sub cx, word [esi + 0xe]
shr edx, 0x10
inc cx
movsx ecx, cx
movsx edx, dx
imul ecx, edx
movsx edx, word [0x1038346]
add ecx, edx
cmp byte [esi + 0x1a], 0
push edi
mov dword [ebp - 4], 0xff0000
je 0x100f016
mov dword [ebp - 4], 0xef0000
cmp byte [esi + 0x1b], 0
jne 0x1005430
movsx edx, word [0x1038004]
add eax, edx
mov edx, dword [0x10382f0]
mov edi, dword [0x10382f4]
lea ebx, [edx + eax]
mov dword [0x1038280], ebx
lea ebx, [edi + ecx]
mov dword [0x1038284], ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
push edi
push edx
push dword [ebp - 4]
mov dword [0x1038278], edx
push dword [0x10382b0]
mov dword [0x103827c], edi
push 0x1009a64
push 0x40310
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
cmp edi, ebx
je 0x100f024
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 6
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ecx
call fcn.01001847
push edi
mov dword [0x1038260], edi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [0x1038268], eax
cmp eax, ebx
je 0x100f054
call fcn.01008eb5
test eax, eax
jne 0x10090fe
push ebx
push dword [0x1038260]
call fcn.01009232
or dword [0x1038204], 1
push ebx
push dword [0x1038260]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [0x103826c], eax
call fcn.01009319
call fcn.01006e36
push esi
call fcn.01032005
mov eax, dword [0x10382b8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
jne 0x100f068
mov eax, dword [0x10382bc]
cmp eax, ebx
je 0x100538e
cmp eax, dword [0x103803c]
je 0x100916c
push eax
push 1
mov ebx, 0x80
push ebx
push dword [0x1038260]
call edi
push dword [0x10382c0]
push 0
push ebx
push dword [0x1038260]
call edi
xor ebx, ebx
push 2
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetBkMode]
push esi
call fcn.010094a0
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SelectObject]
movzx eax, word [esi + 0x18]
push ebx
push eax
movzx eax, word [esi + 0x16]
push eax
push esi
call fcn.01009570
cmp word [0x10382f8], bx
jne 0x100f079
mov ax, word [0x10382ee]
cmp ax, 4
je 0x10053ce
cmp ax, 7
je 0x10053d8
cmp ax, bx
je 0x10053ce
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ax, word [0x10382ee]
movzx eax, ax
push eax
push dword [0x1038260]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.010047ef
test byte [0x10382cc], 1
jne 0x1009217
cmp word [0x10382f8], bx
jne 0x1009217
push 1
call fcn.0100923d
cmp byte [section..data], 0
jne 0x100f0d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
movsx edx, word [0x1038002]
add ecx, edx
jmp 0x100903f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push eax
push 0x100f0f4
push 1
push 0x70
call esi
push 0x100aba8
push 1
push 0x70
call esi
add esp, 0x1c
mov eax, 0xc0000017
jmp 0x1009226
push dword [0x1038260]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x1038260], ebx
jmp 0x100f04a
push ebx
push eax
push 0x32
push dword [0x1038260]
call edi
jmp 0x1009133
cmp word [0x10382ee], 7
jne 0x100f0a5
push 7
push dword [0x1038260]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
or dword [0x10382cc], 1
mov word [0x10382f8], ax
jmp 0x10091f8
test dword [0x10382cc], 0x10000000
je 0x10091f8
call fcn.010219d2
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 4
push dword [0x1038260]
call fcn.010205c6
jmp 0x10091f8
push ebx
push dword [0x103804c]
push 2
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x1009224