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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea ecx, [ebp + 8]
sub esp, 0x30
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 [0x10004018], 8
jne 0x10001e80
cmp edi, 0x403e
ja 0x10001ec6
cmp edi, 0x4003
jbe 0x10001f80
lea eax, [edi - 0x4004]
cmp eax, 0x3a
ja case.0x10001e77.16389
jmp dword [eax*4 + 0x100062d0]
mov dword [esp + 0x20], edx
mov dword [ebp - 0x14], 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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
cmp edi, 0x403e
jbe 0x10001e5c
cmp edi, 0x5002
jne 0x10001fa0
test ebx, ebx
je 0x10001f66
cmp edx, 0x237
jbe case.0x10001e77.16398
mov eax, 0x238
mov edx, 0x63646976
mov dword [ebx], eax
mov eax, 0x4d415243
mov dword [ebx + 4], edx
test esi, esi
je 0x10001f00
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 + 0xc], 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], 0x64
mov eax, dword [section..bss]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x65
mov eax, dword [section..bss]
mov dword [esp], eax
call esi
sub esp, 0x10
mov esi, 0x238
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea eax, [edi - 1]
cmp eax, 5
ja case.0x10001e77.16389
cmp edi, 6
ja case.0x10001f91.0
jmp dword [edi*4 + 0x100063bc]
cmp edi, 0x500a
je case.0x10001f91.2
lea esi, [esi]
test byte [0x10004018], 1
je case.0x10001f91.2
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], 0x10004018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
jmp case.0x10001f91.2
test byte [0x10004018], 8
jne 0x10002540
test edx, edx
je 0x1000201c
mov eax, dword [edx + 4]
xor eax, 0x63646976
test eax, 0xdfdfdfdf
jne case.0x10001e77.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 0x10001f6b
mov dword [eax + 4], 0
mov dword [eax], 0x4d415243
jmp 0x10001f6b
mov dword [esp + 8], esi
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
lea esi, [esi]
mov esi, 0xffffffff
jmp 0x10001f6b
test byte [0x10004018], 8
jne 0x10002510
mov esi, 1
jmp 0x10001f6b
test byte [0x10004018], 8
jne 0x100025e8
test esi, esi
je 0x1000295e
cmp dword [esi], 0x4d415243
jne 0x1000295e
movzx eax, word [ebx + 0xe]
mov ecx, dword [ebx]
cmp ax, 8
jbe 0x100024f0
sub eax, 8
test ax, 0xfff7
jne 0x1000296c
mov esi, ecx
test edx, edx
je 0x10001f6b
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [ebp - 0x14], edx
call sym._memcpy
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x14]
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
xor esi, esi
jmp 0x10001f6b
test byte [0x10004018], 8
jne 0x10002570
test esi, esi
je 0x1000295e
cmp dword [esi], 0x4d415243
jne 0x1000295e
mov eax, dword [ebx + 4]
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 4]
mov edi, dword [ebx + 0x10]
movzx edx, word [ecx + 0xe]
cmp edx, eax
je 0x100021d6
mov edx, dword [ecx + 4]
imul edx, dword [ecx + 8]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
imul edx, eax
test edx, edx
lea eax, [edx + 7]
cmovns eax, edx
sar eax, 3
mov dword [esp + 8], eax
mov eax, dword [edi + 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 0x10002a31
mov eax, dword [esi + 4]
cmp eax, 8
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x14]
je 0x10002920
shl eax, 4
mov dword [esp + 4], edi
add eax, 0x1f
sar eax, 4
and eax, 0xfffffffe
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
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.0x10001e77.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 0x10001f6b
test byte [0x10004018], 1
je case.0x10001f91.2
mov dword [esp + 0xc], str.ICM_DECOMPRESSEX_QUERY_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10004018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
jmp case.0x10001f91.2
test byte [0x10004018], 1
je case.0x10001f91.2
mov dword [esp + 0xc], str.ICM_DECOMPRESS_GET_PALETTE_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10004018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
jmp case.0x10001f91.2
test byte [0x10004018], 8
je 0x10002155
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002155
test byte [0x10004018], 8
jne 0x10002628
test esi, esi
je 0x1000295e
cmp dword [esi], 0x4d415243
jne 0x1000295e
test byte [0x10004018], 8
jne 0x100027d0
movzx eax, word [ebx + 0xe]
cmp ax, 8
je 0x10002500
cmp ax, 0x10
je 0x10002950
mov dword [esi + 4], 0
test byte [0x10004018], 1
je case.0x10001e77.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], 0x10004018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
jmp 0x10001f6b
test byte [0x10004018], 8
jne 0x100025a8
test esi, esi
je 0x1000295e
cmp dword [esi], 0x4d415243
jne 0x1000295e
movzx eax, byte [0x10004018]
mov byte [ebp - 0x14], al
test al, 8
jne 0x10002660
mov eax, dword [ebx + 0x10]
cmp eax, 0x4d415243
mov dword [ebp - 0x18], eax
setne cl
cmp eax, 0x4356534d
mov edi, ecx
setne cl
mov esi, ecx
mov ecx, edi
mov eax, esi
test cl, al
je 0x1000240a
cmp dword [ebp - 0x18], 0x4d414857
jne 0x1000296c
movzx ecx, word [ebx + 0xe]
movzx eax, byte [ebp - 0x14]
lea esi, [ecx - 8]
and eax, 8
test si, 0xfff7
jne 0x100029c6
test edx, edx
je 0x10002474
test al, al
jne 0x10002808
xor eax, eax
movzx esi, word [edx + 0xe]
cmp si, cx
je 0x1000244e
cmp si, 0x18
jne 0x10002976
cmp cx, 0x10
jne 0x10002976
movzx esi, word [edx + 0xc]
cmp word [ebx + 0xc], si
jne 0x10002968
mov esi, dword [edx + 8]
cmp dword [ebx + 8], esi
jne 0x10002968
mov esi, dword [edx + 4]
cmp dword [ebx + 4], esi
jne 0x10002968
test al, al
je case.0x10001e77.16398
mov dword [esp + 0xc], str.OK__n
xor esi, esi
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001f6b
mov esi, 0xffffffff
test byte [0x10004018], 1
je 0x10001f6b
mov dword [esp + 0xc], str.compression_not_implemented_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10004018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
jmp 0x10001f6b
mov esi, dword [ebx + 0x20]
lea ecx, [ecx + esi*4]
jmp 0x100020e1
mov dword [esi + 4], 8
xor esi, esi
jmp 0x10001f6b
mov dword [esp + 0xc], str.Loaded_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100020a5
mov dword [ebp - 0x14], edx
mov dword [esp + 0xc], str.Opened_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
jmp 0x10002005
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002155
mov dword [esp + 0x18], edx
mov dword [ebp - 0x14], 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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
jmp 0x100023b5
mov dword [esp + 0x18], edx
mov dword [ebp - 0x14], 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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
jmp 0x100020bd
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002325
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x18], edx
mov dword [esp + 0xc], str.in__planes____d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10004018]
mov edx, dword [ebp - 0x18]
test al, 8
mov byte [ebp - 0x14], al
je 0x100023db
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10004018]
mov edx, dword [ebp - 0x18]
test al, 8
mov byte [ebp - 0x14], al
je 0x100023db
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10004018]
mov edx, dword [ebp - 0x18]
test al, 8
mov byte [ebp - 0x14], al
je 0x100023db
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10004018]
mov edx, dword [ebp - 0x18]
test al, 8
mov byte [ebp - 0x14], al
je 0x100023db
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x14], edx
mov dword [esp + 0xc], str.in__compr____0x_lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
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 - 0x14]
je 0x100027b8
cmp eax, 0x4d414857
jne 0x100029f7
movzx eax, byte [0x10004018]
mov byte [ebp - 0x14], al
jmp 0x1000240a
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002346
movzx eax, word [edx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [esp + 0xc], str.out__planes___d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x10004018], 8
mov edx, dword [ebp - 0x14]
je 0x10002a44
movzx eax, word [edx + 0xe]
mov dword [ebp - 0x14], edx
mov dword [esp + 0xc], str.out__bpp______d_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x10004018], 8
mov edx, dword [ebp - 0x14]
je 0x10002a44
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10004018]
mov edx, dword [ebp - 0x14]
and eax, 8
je 0x10002a3b
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], edx
mov dword [esp + 0xc], str.out__width____ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10004018]
movzx ecx, word [ebx + 0xe]
mov edx, dword [ebp - 0x14]
and eax, 8
jmp 0x10002431
mov esi, 0xfffffffe
jmp 0x100024b5
lea eax, [eax*8 + 0x1f]
mov dword [esp + 4], edi
sar eax, 3
and eax, 0xfffffffc
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call sym._msvideo1_decode_8bit
jmp 0x1000220a
mov dword [esi + 4], 0x10
xor esi, esi
jmp 0x10001f6b
mov esi, 0xfffffffa
jmp 0x10001f6b
test al, al
jne 0x100029a0
mov esi, 0xfffffffe
jmp 0x10001f6b
test al, al
je 0x1000296c
mov dword [esp + 0xc], str.incompatible_depth_requested_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000296c
mov dword [esp + 0xc], str.incompatible_output_requested_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000296c
test al, al
je 0x1000296c
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], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000296c
test byte [0x10004018], 8
je 0x1000296c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cant_do_0x_lx_compression_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x10004018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000296c
mov esi, 0xfffffffd
jmp 0x10001f6b
movzx ecx, word [ebx + 0xe]
jmp 0x10002431
movzx ecx, word [ebx + 0xe]
jmp 0x1000242f