Function at 0x4010e0
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
mov eax, dword fs:[0x18]
sub esp, 0x6c
mov dword [ebp - 0x50], edx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x4c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x40137b
mov dword [eax + 8], 1
mov edi, eax
mov dword [eax + 4], 0
mov eax, ebx
mov dword [edi], ebx
xor ebx, ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x40119c
mov eax, esi
mov esi, edi
mov edi, eax
lea esi, [esi]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], dbg.end_session_message_callback
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [0x418610]
sub esp, 0x18
test eax, eax
jne 0x40118f
sub dword [esi], 1
add ebx, 1
add edi, 0xc
cmp dword [ebp - 0x50], ebx
jne 0x401158
mov edi, esi
mov eax, dword [sym.imp.kernelbase.dll_GetTickCount]
xor esi, esi
mov dword [ebp - 0x54], eax
call eax
mov dword [ebp - 0x58], edi
add eax, 0x1388
mov dword [ebp - 0x50], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x54]
call eax
mov dword [esp + 0x10], 0x1cff
mov edx, eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], 0
mov dword [esp], 1
sub eax, edx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 4], eax
call dword [0x418600]
sub esp, 0x14
test eax, eax
je 0x4012e8
mov edi, dword [0x418608]
lea ebx, [ebp - 0x34]
cmp eax, 1
je 0x401260
cmp eax, 0x102
jne 0x401338
test esi, esi
jne 0x401338
mov dword [esp], 0
lea ebx, [ebp - 0x40]
call dword [sym.imp.kernelbase.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], sym._endtask_dlg_proc_16
mov dword [esp + 8], 0
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [0x4185d0]
sub esp, 0x14
mov esi, eax
jmp 0x4011b8
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call edi
sub esp, 0x14
test eax, eax
je 0x4012c0
test esi, esi
je 0x4012a4
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [0x4185f4]
sub esp, 8
test eax, eax
jne 0x401260
mov dword [esp], ebx
call dword [0x418620]
sub esp, 4
mov dword [esp], ebx
call dword [0x4185d8]
sub esp, 4
jmp 0x401260
mov edx, eax
mov eax, dword [ebp - 0x58]
mov edi, dword [eax]
test edi, edi
je 0x40133f
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4011b8
mov edi, dword [ebp - 0x58]
mov dword [edi + 4], 1
jmp 0x401314
mov edi, dword [ebp - 0x58]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
mov edx, 1
sub esp, 0xc
test esi, esi
je 0x40132a
mov dword [ebp - 0x50], edx
mov dword [esp], esi
call dword [0x4185d4]
mov edx, dword [ebp - 0x50]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
jmp 0x401314
mov ebx, dword [ebp - 0x38]
mov edi, eax
test ebx, ebx
jne 0x4012eb
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4012eb
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x50], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
mov edx, dword [ebp - 0x50]
sub esp, 0xc
jmp 0x401314
mov edx, 1
jmp 0x40132a