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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test byte [0x1000402c], 8
jne 0x100015a8
cmp edi, 0x403e
ja 0x10001370
cmp edi, 0x4003
jbe 0x10001420
lea eax, [edi - 0x4004]
cmp eax, 0x3a
ja case.0x1000142d.0
jmp dword [eax*4 + 0x100062d0]
cmp edi, 0x5002
jne 0x10001450
test ebx, ebx
je 0x10001e07
cmp dword [ebp + 0x18], 0x237
jbe case.0x10001362.16398
mov dword [ebx], 0x238
mov eax, 0x4d415243
mov dword [ebx + 4], 0x63646976
test esi, esi
je 0x100013a9
mov eax, dword [esi]
mov dword [ebx + 8], eax
lea eax, [ebx + 0x18]
mov esi, dword [sym.imp.user32.dll_LoadStringW]
add ebx, 0x38
mov dword [ebx - 0x2c], 0
mov dword [ebx - 0x28], 0x104
mov dword [ebx - 0x24], 0x104
mov dword [esp + 8], eax
mov eax, dword [0x10004018]
mov dword [esp + 0xc], 0x10
mov dword [esp + 4], 0x64
mov dword [esp], eax
call esi
mov eax, dword [0x10004018]
sub esp, 0x10
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x65
mov dword [esp], eax
call esi
mov esi, 0x238
sub esp, 0x10
jmp 0x1000143d
lea eax, [edi - 1]
cmp eax, 5
ja case.0x1000142d.0
cmp edi, 6
ja case.0x1000142d.0
jmp dword [edi*4 + 0x100063bc]
mov esi, 0xffffffff
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov esi, 0xffffffff
cmp edi, 0x500a
je 0x1000143d
mov esi, 0xffffffff
test byte [0x1000402c], 1
je 0x1000143d
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.Unknown_message:__04x__Id__Id_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x1000402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x1000143d
test byte [0x1000402c], 8
jne 0x10001ad0
test esi, esi
je 0x10001e56
cmp dword [esi], 0x4d415243
jne 0x10001e56
movzx eax, byte [0x1000402c]
test al, 8
jne 0x10001bb8
mov edi, dword [ebx + 0x10]
cmp edi, 0x4356534d
setne cl
cmp edi, 0x4d415243
mov esi, ecx
setne cl
mov edx, esi
test dl, cl
je 0x100014f9
cmp edi, 0x4d414857
jne 0x10001e88
movzx edx, word [ebx + 0xe]
and eax, 8
lea ecx, [edx - 8]
test cx, 0xfff7
jne 0x10001ea0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x1000156e
test al, al
jne 0x10001d10
xor eax, eax
mov ecx, dword [ebp + 0x18]
movzx ecx, word [ecx + 0xe]
cmp cx, dx
je 0x1000153f
cmp dx, 0x10
jne 0x10001e92
cmp cx, 0x18
jne 0x10001e92
mov edx, dword [ebp + 0x18]
movzx edx, word [edx + 0xc]
cmp word [ebx + 0xc], dx
jne 0x10001e60
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
cmp dword [ebx + 8], ecx
jne 0x10001e60
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 4]
cmp dword [ebx + 4], edx
jne 0x10001e60
test al, al
je case.0x10001362.16398
mov dword [esp + 0xc], str.OK__n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._Id__p__04x__08Ix__08Ix_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000133f
mov esi, 1
test byte [0x1000402c], 8
je 0x1000143d
mov dword [esp + 0xc], str.Loaded_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000143d
test byte [0x1000402c], 8
jne 0x10001b50
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x1000165a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
xor eax, 0x63646976
test eax, 0xdfdfdfdf
jne case.0x10001362.16398
mov dword [esp + 8], 8
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.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x1000143d
mov dword [eax + 4], 0
mov dword [eax], 0x4d415243
jmp 0x1000143d
mov dword [esp + 8], esi
mov esi, 0xffffffff
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.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x1000143d
mov esi, 0xffffffff
test byte [0x1000402c], 1
je 0x1000143d
mov dword [esp + 0xc], str.compression_not_implemented_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x1000402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x1000143d
mov esi, 0xffffffff
test byte [0x1000402c], 1
je 0x1000143d
mov dword [esp + 0xc], str.ICM_DECOMPRESS_GET_PALETTE_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x1000402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x1000143d
test byte [0x1000402c], 8
jne 0x10001b10
test esi, esi
je 0x10001e56
cmp dword [esi], 0x4d415243
jne 0x10001e56
movzx eax, word [ebx + 0xe]
mov esi, dword [ebx]
cmp ax, 8
jbe 0x10001a28
sub eax, 8
test ax, 0xfff7
jne 0x10001e88
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1000143d
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
and edx, 0xfffffffe
mov dword [eax + 4], edx
mov eax, dword [ebx + 8]
mov dword [ecx + 0x10], 0
and eax, 0xfffffffe
mov dword [ecx + 8], eax
movzx eax, word [ecx + 0xe]
imul eax, edx
add eax, 0x1f
sar eax, 3
and eax, 0xfffffffc
imul eax, dword [ebx + 8]
mov dword [ecx + 0x14], eax
jmp 0x1000143d
mov esi, 0xffffffff
test byte [0x1000402c], 1
je 0x1000143d
mov dword [esp + 0xc], str.ICM_DECOMPRESSEX_QUERY_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x1000402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x1000143d
test byte [0x1000402c], 8
jne 0x10001a50
test esi, esi
je 0x10001e56
cmp dword [esi], 0x4d415243
jne 0x10001e56
mov eax, dword [ebx + 4]
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 4]
movzx edx, word [ecx + 0xe]
cmp edx, eax
jne 0x100019d8
mov edi, dword [ebx + 0x10]
cmp eax, 8
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x10]
je 0x10001e18
shl eax, 4
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edi
add eax, 0x1f
sar eax, 4
mov dword [esp], edx
mov edx, dword [ebp - 0x14]
and eax, 0xfffffffe
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
call sym._msvideo1_decode_16bit
mov eax, dword [ebx + 0xc]
mov edx, dword [esi + 4]
movzx ecx, word [eax + 0xe]
cmp ecx, edx
je case.0x10001362.16398
mov ecx, dword [ebx + 0x10]
mov dword [esp], eax
mov eax, edi
xor esi, esi
call sym._convert_depth
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.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x1000143d
test byte [0x1000402c], 8
jne 0x10001a90
test esi, esi
je 0x10001e56
cmp dword [esi], 0x4d415243
jne 0x10001e56
test byte [0x1000402c], 8
jne 0x10001b80
movzx eax, word [ebx + 0xe]
cmp ax, 8
je 0x10001a38
cmp ax, 0x10
je 0x10001e48
mov dword [esi + 4], 0
test byte [0x1000402c], 1
je case.0x10001362.16398
movzx eax, word [ebx + 0xe]
mov dword [esp + 0xc], str.Unsupported_output_format__i_n
xor esi, esi
mov dword [esp + 8], str.CRAM_DecompressBegin
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x1000143d
test byte [0x1000402c], 8
je 0x1000183d
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.ICM_DECOMPRESS__p__p__ld_n
mov dword [esp + 8], str.CRAM_Decompress
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000183d
mov edi, dword [ecx + 4]
imul edi, dword [ecx + 8]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
imul eax, edi
test eax, eax
lea ecx, [eax + 7]
cmovs eax, ecx
sar eax, 3
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x10001ee5
mov eax, dword [esi + 4]
jmp 0x1000187b
mov edx, dword [ebx + 0x20]
lea esi, [esi + edx*4]
jmp 0x10001781
mov dword [esi + 4], 8
xor esi, esi
jmp 0x1000143d
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.ICM_DECOMPRESSEX__p__p__ld_n
mov dword [esp + 8], str.CRAM_DecompressEx
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000183d
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.ICM_DECOMPRESS_BEGIN__p__p__p_n
mov dword [esp + 8], str.CRAM_DecompressBegin
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000190d
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.ICM_DECOMPRESS_QUERY__p__p__p_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100014ad
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.ICM_DECOMPRESS_GETFORMAT__p__p__p_n
mov dword [esp + 8], str.CRAM_DecompressGetFormat
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000175d
mov dword [esp + 0xc], str.Opened_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000163d
movzx eax, word [ebx + 0xe]
mov dword [esp + 0xc], str.bitmap_is__d_bpp_n
mov dword [esp + 8], str.CRAM_DecompressBegin
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000192e
movzx eax, word [ebx + 0xc]
mov dword [esp + 0xc], str.in__planes____d_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x1000402c]
test al, 8
je 0x100014d0
movzx eax, word [ebx + 0xe]
mov dword [esp + 0xc], str.in__bpp_______d_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x1000402c]
test al, 8
je 0x100014d0
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], str.in__height____ld_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x1000402c]
test al, 8
je 0x100014d0
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], str.in__width_____ld_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x1000402c]
test al, 8
je 0x100014d0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], str.in__compr____0x_lx_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x10]
cmp eax, 0x4d415243
setne cl
cmp eax, 0x4356534d
setne dl
test cl, dl
je 0x10001cef
cmp eax, 0x4d414857
jne 0x10001ece
movzx eax, byte [0x1000402c]
jmp 0x100014f9
mov esi, 0xfffffffe
jmp 0x100016d5
mov eax, dword [ebp + 0x18]
movzx eax, word [eax + 0xc]
mov dword [esp + 0xc], str.out__planes___d_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x1000402c], 8
je 0x10001ef8
mov eax, dword [ebp + 0x18]
movzx eax, word [eax + 0xe]
mov dword [esp + 0xc], str.out__bpp______d_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x1000402c], 8
je 0x10001ef8
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], str.out__height___ld_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x1000402c]
and eax, 8
je 0x10001eef
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], str.out__width____ld_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x1000402c]
movzx edx, word [ebx + 0xe]
and eax, 8
jmp 0x1000151f
mov esi, 0x238
jmp 0x1000143d
lea eax, [eax*8 + 0x1f]
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edi
sar eax, 3
and eax, 0xfffffffc
mov dword [esp], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
call sym._msvideo1_decode_8bit
jmp 0x100018af
mov dword [esi + 4], 0x10
xor esi, esi
jmp 0x1000143d
mov esi, 0xfffffffa
jmp 0x1000143d
test al, al
je 0x10001e88
mov dword [esp + 0xc], str.incompatible_output_requested_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov esi, 0xfffffffe
jmp 0x1000143d
test al, al
je 0x10001e88
mov dword [esp + 0xc], str.incompatible_depth_requested_n
jmp 0x10001e6c
test al, al
je 0x10001e88
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.cant_do__d_bpp_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x1000402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001e88
test byte [0x1000402c], 8
je 0x10001e88
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cant_do_0x_lx_compression_n
jmp 0x10001eb0
mov esi, 0xfffffffd
jmp 0x1000143d
movzx edx, word [ebx + 0xe]
jmp 0x1000151f
movzx edx, word [ebx + 0xe]
jmp 0x1000151d