Function at 0x6ee017a0
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 [0x6ee04018], 8
jne 0x6ee01a30
cmp edi, 0x403e
ja 0x6ee01800
cmp edi, 0x4003
jbe 0x6ee018a8
lea eax, [edi - 0x4004]
cmp eax, 0x3a
ja case.0x6ee018b5.0
jmp dword [eax*4 + 0x6ee062d0]
cmp edi, 0x5002
jne 0x6ee018d8
test ebx, ebx
je 0x6ee02290
cmp edx, 0x237
jbe case.0x6ee017f2.16398
mov dword [ebx], 0x238
mov eax, 0x4d415243
mov dword [ebx + 4], 0x63646976
test esi, esi
je 0x6ee01838
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 0x6ee018c5
lea eax, [edi - 1]
cmp eax, 5
ja case.0x6ee018b5.0
cmp edi, 6
ja case.0x6ee018b5.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 0x6ee018c5
mov esi, 0xffffffff
test byte [0x6ee04018], 1
je 0x6ee018c5
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], 0x6ee04018
mov dword [esp], 0
call fcn.6ee01080
jmp 0x6ee018c5
test byte [0x6ee04018], 8
jne 0x6ee01f30
test esi, esi
je 0x6ee022de
cmp dword [esi], 0x4d415243
jne 0x6ee022de
movzx eax, byte [0x6ee04018]
mov byte [ebp - 0x1c], al
test al, 8
jne 0x6ee02018
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 0x6ee0198a
cmp dword [ebp - 0x20], 0x4d414857
jne 0x6ee02310
movzx ecx, word [ebx + 0xe]
movzx eax, byte [ebp - 0x1c]
lea esi, [ecx - 8]
and eax, 8
test si, 0xfff7
jne 0x6ee02328
test edx, edx
je 0x6ee019f4
test al, al
jne 0x6ee02190
xor eax, eax
movzx esi, word [edx + 0xe]
cmp si, cx
je 0x6ee019ce
cmp cx, 0x10
jne 0x6ee0231a
cmp si, 0x18
jne 0x6ee0231a
movzx esi, word [edx + 0xc]
cmp word [ebx + 0xc], si
jne 0x6ee022e8
mov esi, dword [edx + 8]
cmp dword [ebx + 8], esi
jne 0x6ee022e8
mov edx, dword [edx + 4]
cmp dword [ebx + 4], edx
jne 0x6ee022e8
test al, al
je case.0x6ee017f2.16398
mov dword [esp + 0xc], str.OK__n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
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], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.6ee01080
mov edx, dword [ebp - 0x1c]
jmp 0x6ee017cf
mov esi, 1
test byte [0x6ee04018], 8
je 0x6ee018c5
mov dword [esp + 0xc], str.Loaded_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
jmp 0x6ee018c5
test byte [0x6ee04018], 8
jne 0x6ee01fb0
test edx, edx
je 0x6ee01adc
mov eax, dword [edx + 4]
xor eax, 0x63646976
test eax, 0xdfdfdfdf
jne case.0x6ee017f2.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 0x6ee018c5
mov dword [eax + 4], 0
mov dword [eax], 0x4d415243
jmp 0x6ee018c5
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 0x6ee018c5
mov esi, 0xffffffff
test byte [0x6ee04018], 1
je 0x6ee018c5
mov dword [esp + 0xc], str.compression_not_implemented_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee04018
mov dword [esp], 0
call fcn.6ee01080
jmp 0x6ee018c5
mov esi, 0xffffffff
test byte [0x6ee04018], 1
je 0x6ee018c5
mov dword [esp + 0xc], str.ICM_DECOMPRESS_GET_PALETTE_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee04018
mov dword [esp], 0
call fcn.6ee01080
jmp 0x6ee018c5
test byte [0x6ee04018], 8
jne 0x6ee01f70
test esi, esi
je 0x6ee022de
cmp dword [esi], 0x4d415243
jne 0x6ee022de
movzx eax, word [ebx + 0xe]
mov esi, dword [ebx]
cmp ax, 8
jbe 0x6ee01ea0
sub eax, 8
test ax, 0xfff7
jne 0x6ee02310
test edx, edx
je 0x6ee018c5
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [ebp - 0x1c], edx
call sub.ucrtbase.dll_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 0x6ee018c5
mov esi, 0xffffffff
test byte [0x6ee04018], 1
je 0x6ee018c5
mov dword [esp + 0xc], str.ICM_DECOMPRESSEX_QUERY_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee04018
mov dword [esp], 0
call fcn.6ee01080
jmp 0x6ee018c5
test byte [0x6ee04018], 8
jne 0x6ee01ec0
test esi, esi
je 0x6ee022de
cmp dword [esi], 0x4d415243
jne 0x6ee022de
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 0x6ee01e50
mov edi, dword [ebx + 0x10]
cmp eax, 8
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x1c]
je 0x6ee022a0
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 fcn.6ee01200
mov eax, dword [ebx + 0xc]
mov edx, dword [esi + 4]
movzx ecx, word [eax + 0xe]
cmp ecx, edx
je case.0x6ee017f2.16398
mov ecx, dword [ebx + 0x10]
mov dword [esp], eax
mov eax, edi
xor esi, esi
call fcn.6ee010d0
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 0x6ee018c5
test byte [0x6ee04018], 8
jne 0x6ee01ef8
test esi, esi
je 0x6ee022de
cmp dword [esi], 0x4d415243
jne 0x6ee022de
movzx eax, word [ebx + 0xe]
test byte [0x6ee04018], 8
jne 0x6ee01fe0
cmp ax, 8
je 0x6ee01eb0
cmp ax, 0x10
je 0x6ee022d0
mov dword [esi + 4], 0
test byte [0x6ee04018], 1
je case.0x6ee017f2.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], 0x6ee04018
mov dword [esp], 0
call fcn.6ee01080
jmp 0x6ee018c5
test byte [0x6ee04018], 8
je 0x6ee01cb5
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
jmp 0x6ee01cb5
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 0x6ee0236d
mov eax, dword [esi + 4]
jmp 0x6ee01cf3
mov ecx, dword [ebx + 0x20]
lea esi, [esi + ecx*4]
jmp 0x6ee01c01
mov dword [esi + 4], 8
xor esi, esi
jmp 0x6ee018c5
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
jmp 0x6ee01cb5
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
jmp 0x6ee01d85
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], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.6ee01080
mov edx, dword [ebp - 0x1c]
jmp 0x6ee01935
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], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.6ee01080
mov edx, dword [ebp - 0x1c]
jmp 0x6ee01bdd
mov dword [esp + 0xc], str.Opened_n
mov dword [esp + 8], str.CRAM_DriverProc
mov dword [esp + 4], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.6ee01080
mov edx, dword [ebp - 0x1c]
jmp 0x6ee01ac5
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
movzx eax, word [ebx + 0xe]
jmp 0x6ee01daa
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], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x20], edx
call fcn.6ee01080
movzx eax, byte [0x6ee04018]
mov edx, dword [ebp - 0x20]
test al, 8
mov byte [ebp - 0x1c], al
je 0x6ee0195b
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
movzx eax, byte [0x6ee04018]
mov edx, dword [ebp - 0x20]
test al, 8
mov byte [ebp - 0x1c], al
je 0x6ee0195b
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
movzx eax, byte [0x6ee04018]
mov edx, dword [ebp - 0x20]
test al, 8
mov byte [ebp - 0x1c], al
je 0x6ee0195b
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
movzx eax, byte [0x6ee04018]
mov edx, dword [ebp - 0x20]
test al, 8
mov byte [ebp - 0x1c], al
je 0x6ee0195b
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], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.6ee01080
mov eax, dword [ebx + 0x10]
cmp eax, 0x4d415243
setne dl
cmp eax, 0x4356534d
setne cl
test dl, cl
mov edx, dword [ebp - 0x1c]
je 0x6ee02170
cmp eax, 0x4d414857
jne 0x6ee02356
movzx eax, byte [0x6ee04018]
mov byte [ebp - 0x1c], al
jmp 0x6ee0198a
mov esi, 0xfffffffe
jmp 0x6ee01b55
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], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.6ee01080
test byte [0x6ee04018], 8
mov edx, dword [ebp - 0x1c]
je 0x6ee02380
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], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.6ee01080
test byte [0x6ee04018], 8
mov edx, dword [ebp - 0x1c]
je 0x6ee02380
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
movzx eax, byte [0x6ee04018]
mov edx, dword [ebp - 0x1c]
and eax, 8
je 0x6ee02377
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], 0x6ee04018
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.6ee01080
movzx eax, byte [0x6ee04018]
movzx ecx, word [ebx + 0xe]
mov edx, dword [ebp - 0x1c]
and eax, 8
jmp 0x6ee019b1
mov esi, 0x238
jmp 0x6ee018c5
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 fcn.6ee014e0
jmp 0x6ee01d27
mov dword [esi + 4], 0x10
xor esi, esi
jmp 0x6ee018c5
mov esi, 0xfffffffa
jmp 0x6ee018c5
test al, al
je 0x6ee02310
mov dword [esp + 0xc], str.incompatible_output_requested_n
mov dword [esp + 8], str.CRAM_DecompressQuery
mov dword [esp + 4], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
mov esi, 0xfffffffe
jmp 0x6ee018c5
test al, al
je 0x6ee02310
mov dword [esp + 0xc], str.incompatible_depth_requested_n
jmp 0x6ee022f4
test al, al
je 0x6ee02310
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], 0x6ee04018
mov dword [esp], 3
call fcn.6ee01080
jmp 0x6ee02310
test byte [0x6ee04018], 8
je 0x6ee02310
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.cant_do_0x_lx_compression_n
jmp 0x6ee02338
mov esi, 0xfffffffd
jmp 0x6ee018c5
movzx ecx, word [ebx + 0xe]
jmp 0x6ee019b1
movzx ecx, word [ebx + 0xe]
jmp 0x6ee019af