Function at 0x10001830
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 [0x10003018], 8
jne 0x10001a90
cmp edi, 0x403e
ja 0x10001980
cmp edi, 0x4003
jbe 0x10001950
lea eax, [edi - 0x4004]
cmp eax, 0x3a
ja case.0x10001965.0
jmp dword [eax*4 + 0x100052d0]
movzx edx, word [ebx + 0xe]
lea esi, [esi]
xor eax, eax
mov ecx, dword [ebp + 0x18]
movzx ecx, word [ecx + 0xe]
cmp cx, dx
je 0x100018aa
cmp dx, 0x10
jne 0x10002372
cmp cx, 0x18
jne 0x10002372
mov edx, dword [ebp + 0x18]
movzx edx, word [edx + 0xc]
cmp word [ebx + 0xc], dx
jne 0x10002340
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
cmp dword [ebx + 8], ecx
jne 0x10002340
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 4]
cmp dword [ebx + 4], edx
jne 0x10002340
test al, al
je case.0x10001876.16398
mov dword [esp + 0xc], str.OK__n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov esi, 0xfffffffe
test byte [0x10003018], 1
je 0x10001903
mov dword [esp + 0xc], str.compression_not_implemented_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10003018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10001903
mov esi, 0xffffffff
jmp 0x10001914
lea eax, [edi - 1]
cmp eax, 5
ja case.0x10001965.0
cmp edi, 6
ja case.0x10001965.0
jmp dword [edi*4 + 0x100053bc]
lea esp, [ebp - 0xc]
mov esi, 0xffffffff
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x14
cmp edi, 0x5002
jne 0x10001a30
test ebx, ebx
je 0x100022eb
cmp dword [ebp + 0x18], 0x237
jbe case.0x10001876.16398
mov dword [ebx], 0x238
mov eax, 0x4d415243
mov dword [ebx + 4], 0x63646976
test esi, esi
je 0x100019b9
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 [section..bss]
mov dword [esp + 0xc], 0x10
mov dword [esp + 4], 0x64
mov dword [esp], eax
call esi
mov eax, dword [section..bss]
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 0x10001903
mov esi, 0xffffffff
cmp edi, 0x500a
je 0x10001903
mov esi, 0xffffffff
test byte [0x10003018], 1
je 0x10001903
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], 0x10003018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10001903
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000184f
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 0x10001903
test byte [0x10003018], 8
jne 0x10002130
test esi, esi
je 0x10002336
cmp dword [esi], 0x4d415243
jne 0x10002336
movzx eax, word [ebx + 0xe]
mov esi, dword [ebx]
cmp ax, 8
jbe 0x10002020
sub eax, 8
test ax, 0xfff7
jne 0x10002368
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10001903
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 0x10001903
test byte [0x10003018], 8
jne 0x100020f0
test esi, esi
je 0x10002336
cmp dword [esi], 0x4d415243
jne 0x10002336
movzx eax, byte [0x10003018]
test al, 8
jne 0x100021a8
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 0x10001bf3
cmp edi, 0x4d414857
jne 0x10002368
movzx edx, word [ebx + 0xe]
and eax, 8
lea ecx, [edx - 8]
test cx, 0xfff7
jne 0x10002380
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100018d9
test al, al
je 0x10001888
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x10003018], 8
je 0x1000187d
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x10003018], 8
je 0x1000187d
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10003018]
and eax, 8
je 0x100023cf
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10003018]
movzx edx, word [ebx + 0xe]
and eax, 8
jmp 0x1000188a
mov esi, 0xffffffff
test byte [0x10003018], 1
je 0x10001903
mov dword [esp + 0xc], str.ICM_DECOMPRESSEX_QUERY_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10003018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10001903
test byte [0x10003018], 8
jne 0x100020b0
test esi, esi
je 0x10002336
cmp dword [esi], 0x4d415243
jne 0x10002336
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 0x10001fd0
mov edi, dword [ebx + 0x10]
cmp eax, 8
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x10]
je 0x100022f8
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.0x10001876.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 0x10001903
mov esi, 0xffffffff
test byte [0x10003018], 1
je 0x10001903
mov dword [esp + 0xc], str.ICM_DECOMPRESS_GET_PALETTE_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10003018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10001903
mov esi, 1
test byte [0x10003018], 8
je 0x10001903
mov dword [esp + 0xc], str.Loaded_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001903
test byte [0x10003018], 8
jne 0x10002080
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x10001eb6
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
xor eax, 0x63646976
test eax, 0xdfdfdfdf
jne case.0x10001876.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 0x10001903
mov dword [eax + 4], 0
mov dword [eax], 0x4d415243
jmp 0x10001903
test byte [0x10003018], 8
je 0x10001d5a
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001d5a
test byte [0x10003018], 8
jne 0x10002040
test esi, esi
je 0x10002336
cmp dword [esi], 0x4d415243
jne 0x10002336
movzx eax, word [ebx + 0xe]
test byte [0x10003018], 8
jne 0x10002170
cmp ax, 8
je 0x10002030
cmp ax, 0x10
je 0x10002328
mov dword [esi + 4], 0
test byte [0x10003018], 1
je case.0x10001876.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], 0x10003018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10001903
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 0x100023c5
mov eax, dword [esi + 4]
jmp 0x10001d98
mov edx, dword [ebx + 0x20]
lea esi, [esi + edx*4]
jmp 0x10001b32
mov dword [esi + 4], 8
xor esi, esi
jmp 0x10001903
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001f4c
mov dword [esp + 0xc], str.Opened_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001e99
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001d5a
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001ba7
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001b0e
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.bitmap_is__d_bpp_n
mov dword [esp + 8], str.CRAM_DecompressBegin
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, word [ebx + 0xe]
jmp 0x10001f71
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10003018]
test al, 8
je 0x10001bca
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10003018]
test al, 8
je 0x10001bca
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10003018]
test al, 8
je 0x10001bca
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10003018]
test al, 8
je 0x10001bca
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], 0x10003018
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 0x100022df
cmp eax, 0x4d414857
jne 0x100023ae
movzx eax, byte [0x10003018]
jmp 0x10001bf3
mov esi, 0x238
jmp 0x10001903
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 0x10001dcc
mov dword [esi + 4], 0x10
xor esi, esi
jmp 0x10001903
mov esi, 0xfffffffa
jmp 0x10001903
test al, al
je 0x10002368
mov dword [esp + 0xc], str.incompatible_output_requested_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov esi, 0xfffffffe
jmp 0x10001903
test al, al
je 0x10002368
mov dword [esp + 0xc], str.incompatible_depth_requested_n
jmp 0x1000234c
test al, al
je 0x10002368
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], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002368
test byte [0x10003018], 8
je 0x10002368
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cant_do_0x_lx_compression_n
jmp 0x10002390
mov esi, 0xfffffffd
jmp 0x10001903
movzx edx, word [ebx + 0xe]
jmp 0x1000188a