Function at 0x10004990
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a10d4
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100d703c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x30]
mov edi, dword [ebp + 0xc]
cmp ecx, eax
je 0x100049e0
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x100049d7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10003a60
lea ebx, [esi + 0x48]
cmp ebx, edi
je 0x100049fc
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100049f1
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, ebx
push eax
call fcn.10003a60
cmp dword [esi + 0x40], 0
lea edi, [esi + 0x30]
jne 0x10004a13
push 0x16
push str.2345HaoCompressProcess
mov ecx, edi
call fcn.10003a60
cmp dword [esi + 0x58], 0
jne 0x10004a27
push 0x14
push str.2345HaoCompressMutex
mov ecx, ebx
call fcn.10003a60
push 0x24
call fcn.1009ea7d
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
mov ecx, eax
push ebx
push edi
call fcn.1009d490
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
test eax, eax
je 0x1000518c
mov ecx, eax
call fcn.1009d9d0
test al, al
je 0x1000518c
push 0x10
call fcn.1009ea7d
mov edi, eax
add esp, 4
mov dword [ebp - 0x6c], edi
mov dword [ebp - 4], 1
lea ebx, [edi + 4]
mov ecx, dword [esi + 8]
mov dword [edi], 0
mov dword [ebx], 0
mov byte [ebp - 4], 2
mov byte [edi + 8], 0
mov dword [edi + 0xc], ecx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], edi
cmp dword [ebx], 0
jne 0x1000518c
cmp dword [edi + 0xc], 0
je 0x1000518c
push 0xc
call fcn.1009ea7d
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 3
mov ecx, eax
push edi
push 0x10004020
call fcn.1000cd10
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.10004190
cmp dword [ebx], 0
je 0x1000518c
push 0x100b5aa4
lea ecx, [ebp - 0x68]
call fcn.10003770
mov dword [ebp - 4], 4
lea eax, [ebp - 0x68]
mov ecx, dword [esi + 8]
push eax
call fcn.1009d8e0
mov eax, dword [0x100d9bc0]
test al, 1
jne 0x10004b39
or eax, 1
mov dword [0x100d9bc0], eax
mov byte [ebp - 4], 5
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 0
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x10004d2a
sub esp, 8
lea ecx, [ebp - 0x10c]
call fcn.10006d20
mov byte [ebp - 4], 6
lea edx, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x10c]
cmovae edx, dword [ebp - 0x68]
call fcn.10007a90
mov eax, dword [0x100d9bc0]
test al, 1
jne 0x10004ba7
or eax, 1
mov dword [0x100d9bc0], eax
mov byte [ebp - 4], 7
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 2
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x10004d1b
mov eax, dword [0x100d9bc0]
test al, 1
jne 0x10004bed
or eax, 1
mov dword [0x100d9bc0], eax
mov byte [ebp - 4], 8
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 2
push 0
call dword [eax + 0x6c]
mov edx, 0x2000
mov dword [ebp - 0x6c], eax
mov ecx, dword [eax + 0x20]
sub edx, ecx
add ecx, 0x24
mov dword [ebp - 0x70], edx
add eax, ecx
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x74], eax
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
call fcn.10006c30
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x10004c33
mov eax, dword [eax]
sub esp, 0xc
lea ecx, [ebp - 0x50]
mov edx, eax
call fcn.100045e0
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0xa
cmp dword [ecx + 0x14], 0x10
jb 0x10004c51
mov ecx, dword [ecx]
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10004c56
sub edi, edx
cmp edi, dword [ebp - 0x70]
cmova edi, dword [ebp - 0x70]
test edi, edi
je 0x10004c7a
mov ebx, dword [ebp - 0x74]
push edi
push ecx
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebx, edi
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x10004cb4
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10004caa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004caa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1009eaad
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.10003a00
mov edi, dword [ebp - 0x6c]
sub ebx, dword [ebp - 0x74]
mov eax, dword [0x100d9bc0]
add dword [edi + 0x20], ebx
test al, 1
jne 0x10004d06
or eax, 1
mov dword [0x100d9bc0], eax
mov byte [ebp - 4], 0xb
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 0x6a
push str.e:zhanluehaocompress_srccompresstaskmanage_rcpdftaskmanage.cpp
push edi
call dword [eax + 0x20]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10c]
call fcn.100051b0
push 0
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x50]
call fcn.1000c460
add esp, 4
mov byte [ebp - 4], 0xc
mov ecx, esi
push eax
call fcn.10005460
test al, al
sete bl
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x10004d85
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10004d7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004d7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1009eaad
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
test bl, bl
jne 0x10005177
push dword [esi + 0xc]
mov ecx, dword [esi + 8]
call fcn.1009dc20
mov eax, dword [esi + 0x10]
sub eax, 1
je 0x10004ff5
sub eax, 1
je 0x10004ee9
sub eax, 1
jne 0x100050bb
push 0x100d82a4
push 0xd8
call fcn.1009ecb6
mov ebx, eax
add esp, 8
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 0x15
test ebx, ebx
je 0x10004e4d
mov ecx, ebx
call fcn.10008190
mov byte [ebp - 4], 0x16
lea eax, [ebx + 0x88]
mov dword [ebx], vtable.RCPDFCompressTask.0
xor ecx, ecx
mov dword [ebp - 0x70], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x17
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 7
mov word [eax + 0x18], cx
mov byte [ebp - 4], 0x18
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], 7
mov word [eax + 0x30], cx
mov byte [ebp - 4], 0x19
mov dword [eax + 0x48], 0x64
mov byte [eax + 0x4c], 1
mov byte [ebp - 4], 0x15
jmp 0x10004e4f
xor ebx, ebx
mov byte [ebp - 4], 4
test ebx, ebx
je 0x10004ee2
lea edi, [esi + 0x114]
lea ecx, [ebx + 0x88]
cmp ecx, edi
je 0x10004e84
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10004e75
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.10003a60
lea ecx, [ebx + 0x88]
lea edx, [ecx + 0x18]
lea eax, [edi + 0x18]
mov dword [ebp - 0x6c], edx
cmp edx, eax
je 0x10004ead
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x10004e9b
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, dword [ebp - 0x6c]
push edx
call fcn.10003a60
lea ecx, [ebx + 0x88]
lea edx, [ecx + 0x30]
lea eax, [edi + 0x30]
mov dword [ebp - 0x6c], edx
cmp edx, eax
je 0x10004ed6
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x10004ec4
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, dword [ebp - 0x6c]
push edx
call fcn.10003a60
lea ecx, [ebx + 0x88]
mov eax, dword [edi + 0x48]
mov dword [ecx + 0x48], eax
mov al, byte [edi + 0x4c]
mov byte [ecx + 0x4c], al
mov dword [esi], ebx
jmp 0x100050bb
push 0x100d82a4
push 0xd8
call fcn.1009ecb6
mov ebx, eax
add esp, 8
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 0x10
test ebx, ebx
je 0x10004f6b
mov ecx, ebx
call fcn.10008190
mov byte [ebp - 4], 0x11
lea eax, [ebx + 0x88]
mov dword [ebx], vtable.RCImageCompressTask.0
xor ecx, ecx
mov dword [ebp - 0x70], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x12
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 7
mov word [eax + 0x18], cx
mov byte [ebp - 4], 0x13
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], 0xffffffff
mov dword [eax + 0x40], 0x50
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov byte [ebp - 4], 0x10
jmp 0x10004f6d
xor ebx, ebx
mov byte [ebp - 4], 4
test ebx, ebx
je 0x10004fee
lea edi, [esi + 0x60]
lea ecx, [ebx + 0x88]
cmp ecx, edi
je 0x10004f9b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10004f8c
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.10003a60
lea ecx, [ebx + 0x88]
lea edx, [ecx + 0x18]
lea eax, [edi + 0x18]
mov dword [ebp - 0x6c], edx
cmp edx, eax
je 0x10004fc4
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x10004fb2
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, dword [ebp - 0x6c]
push edx
call fcn.10003a60
lea ecx, [ebx + 0x88]
mov eax, dword [edi + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [ecx + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [ecx + 0x48], eax
mov dword [esi], ebx
jmp 0x100050bb
push 0xf0
call fcn.1009ea7d
mov edx, eax
add esp, 4
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 0xd
mov ecx, edx
call fcn.10008190
mov byte [ebp - 4], 0xe
lea ebx, [edx + 0x88]
mov ecx, ebx
mov dword [edx], vtable.RCVideoCompressTask.0
call fcn.10004830
mov byte [ebp - 4], 4
lea edi, [esi + 0xac]
cmp ebx, edi
je 0x1000504c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10005041
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, ebx
push eax
call fcn.10003a60
lea eax, [edi + 0x18]
lea ecx, [ebx + 0x18]
cmp ecx, eax
je 0x10005069
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x10005060
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10003a60
lea eax, [edi + 0x30]
lea ecx, [ebx + 0x30]
cmp ecx, eax
je 0x10005086
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x1000507d
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10003a60
mov eax, dword [edi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x50], eax
mov al, byte [edi + 0x54]
mov byte [ebx + 0x54], al
mov eax, dword [edi + 0x58]
mov dword [ebx + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [ebx + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [ebx + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10005177
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_31b83c54dfafaea8982fc0b4d5a9d124___void__int_.0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [esi]
mov byte [ebp - 4], 0x1d
add ecx, 0x60
push eax
call fcn.10008420
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000511f
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0x1f
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_88f074d4da718784cdcfade5434bcdf4___void__int__int_.0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x20
mov ecx, dword [esi]
mov byte [ebp - 4], 0x21
add ecx, 0x38
push eax
call fcn.10008420
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10005173
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
mov bl, 1
jmp 0x10005179
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10003a00
mov al, bl
jmp 0x1000518e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009ea6c
mov esp, ebp
pop ebp
ret 8