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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
test byte [0x6ee0402c], 8
jne 0x6ee015b0
cmp edi, 0x403e
ja 0x6ee01380
cmp edi, 0x4003
jbe 0x6ee01428
lea eax, [edi - 0x4004]
cmp eax, 0x3a
ja case.0x6ee01435.0
jmp dword [eax*4 + 0x6ee062d0]
cmp edi, 0x5002
jne 0x6ee01458
test ebx, ebx
je 0x6ee01e10
cmp edx, 0x237
jbe case.0x6ee01372.16398
mov dword [ebx], 0x238
mov eax, 0x4d415243
mov dword [ebx + 4], 0x63646976
test esi, esi
je 0x6ee013b8
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 [0x6ee04018]
mov dword [esp + 0xc], 0x10
mov dword [esp + 4], 0x64
mov dword [esp], eax
call esi
mov eax, dword [0x6ee04018]
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 0x6ee01445
lea eax, [edi - 1]
cmp eax, 5
ja case.0x6ee01435.0
cmp edi, 6
ja case.0x6ee01435.0
jmp dword [edi*4 + 0x6ee063bc]
mov esi, 0xffffffff
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov esi, 0xffffffff
cmp edi, 0x500a
je 0x6ee01445
mov esi, 0xffffffff
test byte [0x6ee0402c], 1
je 0x6ee01445
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Unknown_message:__04x__Id__Id_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01445
test byte [0x6ee0402c], 8
jne 0x6ee01ab0
test esi, esi
je 0x6ee01e5e
cmp dword [esi], 0x4d415243
jne 0x6ee01e5e
movzx eax, byte [0x6ee0402c]
mov byte [ebp - 0x1c], al
test al, 8
jne 0x6ee01b98
mov eax, dword [ebx + 0x10]
cmp eax, 0x4356534d
mov dword [ebp - 0x20], eax
setne cl
cmp eax, 0x4d415243
mov edi, ecx
setne cl
mov esi, ecx
mov ecx, edi
mov eax, esi
test cl, al
je 0x6ee0150a
cmp dword [ebp - 0x20], 0x4d414857
jne 0x6ee01e90
movzx ecx, word [ebx + 0xe]
movzx eax, byte [ebp - 0x1c]
lea esi, [ecx - 8]
and eax, 8
test si, 0xfff7
jne 0x6ee01ea8
test edx, edx
je 0x6ee01574
test al, al
jne 0x6ee01d10
xor eax, eax
movzx esi, word [edx + 0xe]
cmp si, cx
je 0x6ee0154e
cmp cx, 0x10
jne 0x6ee01e9a
cmp si, 0x18
jne 0x6ee01e9a
movzx esi, word [edx + 0xc]
cmp word [ebx + 0xc], si
jne 0x6ee01e68
mov esi, dword [edx + 8]
cmp dword [ebx + 8], esi
jne 0x6ee01e68
mov edx, dword [edx + 4]
cmp dword [ebx + 4], edx
jne 0x6ee01e68
test al, al
je case.0x6ee01372.16398
mov dword [esp + 0xc], str.OK__n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0x10]
xor esi, esi
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._Id__p__04x__08Ix__08Ix_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x1c]
jmp 0x6ee0134f
mov esi, 1
test byte [0x6ee0402c], 8
je 0x6ee01445
mov dword [esp + 0xc], str.Loaded_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01445
test byte [0x6ee0402c], 8
jne 0x6ee01b30
test edx, edx
je 0x6ee0165c
mov eax, dword [edx + 4]
xor eax, 0x63646976
test eax, 0xdfdfdfdf
jne case.0x6ee01372.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 0x6ee01445
mov dword [eax + 4], 0
mov dword [eax], 0x4d415243
jmp 0x6ee01445
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 0x6ee01445
mov esi, 0xffffffff
test byte [0x6ee0402c], 1
je 0x6ee01445
mov dword [esp + 0xc], str.compression_not_implemented_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01445
mov esi, 0xffffffff
test byte [0x6ee0402c], 1
je 0x6ee01445
mov dword [esp + 0xc], str.ICM_DECOMPRESS_GET_PALETTE_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01445
test byte [0x6ee0402c], 8
jne 0x6ee01af0
test esi, esi
je 0x6ee01e5e
cmp dword [esi], 0x4d415243
jne 0x6ee01e5e
movzx eax, word [ebx + 0xe]
mov esi, dword [ebx]
cmp ax, 8
jbe 0x6ee01a20
sub eax, 8
test ax, 0xfff7
jne 0x6ee01e90
test edx, edx
je 0x6ee01445
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [ebp - 0x1c], edx
call sym._memcpy
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x1c]
and ecx, 0xfffffffe
mov dword [edx + 4], ecx
mov eax, dword [ebx + 8]
mov dword [edx + 0x10], 0
and eax, 0xfffffffe
mov dword [edx + 8], eax
movzx eax, word [edx + 0xe]
imul eax, ecx
add eax, 0x1f
sar eax, 3
and eax, 0xfffffffc
imul eax, dword [ebx + 8]
mov dword [edx + 0x14], eax
jmp 0x6ee01445
mov esi, 0xffffffff
test byte [0x6ee0402c], 1
je 0x6ee01445
mov dword [esp + 0xc], str.ICM_DECOMPRESSEX_QUERY_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01445
test byte [0x6ee0402c], 8
jne 0x6ee01a40
test esi, esi
je 0x6ee01e5e
cmp dword [esi], 0x4d415243
jne 0x6ee01e5e
mov eax, dword [ebx + 4]
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 4]
movzx edx, word [ecx + 0xe]
cmp edx, eax
jne 0x6ee019d0
mov edi, dword [ebx + 0x10]
cmp eax, 8
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x1c]
je 0x6ee01e20
shl eax, 4
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], edi
add eax, 0x1f
sar eax, 4
mov dword [esp], edx
mov edx, dword [ebp - 0x20]
and eax, 0xfffffffe
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
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.0x6ee01372.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 0x6ee01445
test byte [0x6ee0402c], 8
jne 0x6ee01a78
test esi, esi
je 0x6ee01e5e
cmp dword [esi], 0x4d415243
jne 0x6ee01e5e
test byte [0x6ee0402c], 8
jne 0x6ee01b60
movzx eax, word [ebx + 0xe]
cmp ax, 8
je 0x6ee01a30
cmp ax, 0x10
je 0x6ee01e50
mov dword [esi + 4], 0
test byte [0x6ee0402c], 1
je case.0x6ee01372.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], 0x6ee0402c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01445
test byte [0x6ee0402c], 8
je 0x6ee01835
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.ICM_DECOMPRESS__p__p__ld_n
mov dword [esp + 8], str.CRAM_Decompress
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01835
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 0x6ee01eed
mov eax, dword [esi + 4]
jmp 0x6ee01873
mov ecx, dword [ebx + 0x20]
lea esi, [esi + ecx*4]
jmp 0x6ee01781
mov dword [esi + 4], 8
xor esi, esi
jmp 0x6ee01445
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.ICM_DECOMPRESSEX__p__p__ld_n
mov dword [esp + 8], str.CRAM_DecompressEx
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01835
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.ICM_DECOMPRESS_BEGIN__p__p__p_n
mov dword [esp + 8], str.CRAM_DecompressBegin
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01905
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.ICM_DECOMPRESS_QUERY__p__p__p_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x1c]
jmp 0x6ee014b5
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.ICM_DECOMPRESS_GETFORMAT__p__p__p_n
mov dword [esp + 8], str.CRAM_DecompressGetFormat
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x1c]
jmp 0x6ee0175d
mov dword [esp + 0xc], str.Opened_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x1c]
jmp 0x6ee01645
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], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01926
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], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x20], edx
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x6ee0402c]
mov edx, dword [ebp - 0x20]
test al, 8
mov byte [ebp - 0x1c], al
je 0x6ee014db
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], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x6ee0402c]
mov edx, dword [ebp - 0x20]
test al, 8
mov byte [ebp - 0x1c], al
je 0x6ee014db
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], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x6ee0402c]
mov edx, dword [ebp - 0x20]
test al, 8
mov byte [ebp - 0x1c], al
je 0x6ee014db
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], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x6ee0402c]
mov edx, dword [ebp - 0x20]
test al, 8
mov byte [ebp - 0x1c], al
je 0x6ee014db
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], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x10]
cmp eax, 0x4d415243
setne dl
cmp eax, 0x4356534d
setne cl
test dl, cl
mov edx, dword [ebp - 0x1c]
je 0x6ee01cf0
cmp eax, 0x4d414857
jne 0x6ee01ed6
movzx eax, byte [0x6ee0402c]
mov byte [ebp - 0x1c], al
jmp 0x6ee0150a
mov esi, 0xfffffffe
jmp 0x6ee016d5
movzx eax, word [edx + 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], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0
test byte [0x6ee0402c], 8
mov edx, dword [ebp - 0x1c]
je 0x6ee01f00
movzx eax, word [edx + 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], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0
test byte [0x6ee0402c], 8
mov edx, dword [ebp - 0x1c]
je 0x6ee01f00
mov eax, dword [edx + 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], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x6ee0402c]
mov edx, dword [ebp - 0x1c]
and eax, 8
je 0x6ee01ef7
mov eax, dword [edx + 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], 0x6ee0402c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x6ee0402c]
movzx ecx, word [ebx + 0xe]
mov edx, dword [ebp - 0x1c]
and eax, 8
jmp 0x6ee01531
mov esi, 0x238
jmp 0x6ee01445
lea eax, [eax*8 + 0x1f]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], edi
sar eax, 3
and eax, 0xfffffffc
mov dword [esp], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
call sym._msvideo1_decode_8bit
jmp 0x6ee018a7
mov dword [esi + 4], 0x10
xor esi, esi
jmp 0x6ee01445
mov esi, 0xfffffffa
jmp 0x6ee01445
test al, al
je 0x6ee01e90
mov dword [esp + 0xc], str.incompatible_output_requested_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov esi, 0xfffffffe
jmp 0x6ee01445
test al, al
je 0x6ee01e90
mov dword [esp + 0xc], str.incompatible_depth_requested_n
jmp 0x6ee01e74
test al, al
je 0x6ee01e90
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.cant_do__d_bpp_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x6ee0402c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6ee01e90
test byte [0x6ee0402c], 8
je 0x6ee01e90
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cant_do_0x_lx_compression_n
jmp 0x6ee01eb8
mov esi, 0xfffffffd
jmp 0x6ee01445
movzx ecx, word [ebx + 0xe]
jmp 0x6ee01531
movzx ecx, word [ebx + 0xe]
jmp 0x6ee0152f