Function at 0x404890
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 0x404b1a
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 0x404947
mov eax, ebx
mov ebx, esi
mov esi, eax
lea esi, [esi]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], sym._end_session_message_callback_16
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [0x417600]
sub esp, 0x18
test eax, eax
jne 0x40493e
dec dword [edi]
inc esi
add ebx, 0xc
cmp dword [ebp - 0x50], esi
jne 0x404908
mov eax, dword [sym.imp.kernelbase.dll_GetTickCount]
xor esi, esi
mov dword [ebp - 0x54], eax
call eax
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 [0x4175f4]
sub esp, 0x14
test eax, eax
je 0x404a90
lea ebx, [ebp - 0x34]
cmp eax, 1
je 0x404a00
cmp eax, 0x102
jne 0x404ae0
test esi, esi
jne 0x404ae0
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 [0x4175c8]
sub esp, 0x14
mov esi, eax
jmp 0x404960
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 dword [0x4175fc]
sub esp, 0x14
test eax, eax
je 0x404a68
test esi, esi
je 0x404a48
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [0x4175ec]
sub esp, 8
test eax, eax
jne 0x404a00
mov dword [esp], ebx
call dword [0x417610]
sub esp, 4
mov dword [esp], ebx
call dword [0x4175d0]
sub esp, 4
jmp 0x404a00
mov edx, eax
mov eax, dword [edi]
test eax, eax
je 0x404a84
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x404960
mov dword [edi + 4], 1
jmp 0x404ab9
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x404ae7
lea esi, [esi]
nop
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 0x404acf
mov dword [ebp - 0x50], edx
mov dword [esp], esi
call dword [0x4175cc]
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 0x404ab9
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x404a90
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 0x404ab9
mov edx, 1
jmp 0x404acf