Function at 0x421b80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43ae6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x278]
add esi, 0x64
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x44]
mov eax, dword [ebx + 4]
cmp eax, 1
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x38], 0
jne 0x421dc1
push str.CDownloadTask
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [edi + 0x170]
mov edx, dword [edi + 0x278]
push ecx
mov ecx, dword [edx + 0x1c]
mov edx, dword [esp + 0x4c]
push ecx
push edx
push str._d___d___d
lea ecx, [esp + 0x24]
push ecx
lea eax, [edi + 0x27c]
push 0
push eax
mov byte [esp + 0x54], 1
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x1c
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [edi + 0x278]
mov esi, dword [edx + 0x1c]
cmp esi, dword [edi + 0x170]
jae 0x421d07
jmp 0x421c40
mov ecx, dword [edi + 0x278]
push ebx
push 0
push esi
call fcn.004282b0
test al, al
jne 0x421c63
mov eax, dword [edi + 0x170]
inc esi
cmp esi, eax
jb 0x421c40
jmp 0x421d07
mov edx, dword [ebp + 4]
test edx, edx
mov dword [esp + 0x44], esi
jne 0x421c72
xor ecx, ecx
jmp 0x421c7a
mov ecx, dword [ebp + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x421c97
mov eax, dword [ebp + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x421c97
mov eax, dword [ebp + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebp + 8], eax
jmp 0x421ca9
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.0041bf40
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x421cb4
xor eax, eax
jmp 0x421cbc
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
push ebx
push eax
push esi
mov ecx, edi
call fcn.0041f660
push str.CDownloadTask
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push ebx
push esi
push str.push_1__d___u
lea edx, [esp + 0x20]
push edx
lea eax, [edi + 0x27c]
push 0
push eax
mov byte [esp + 0x50], 2
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [edi + 0x170]
inc esi
cmp esi, eax
jae 0x421eb0
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x421d21
xor eax, eax
jmp 0x421d29
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp eax, dword [esp + 0x48]
jae 0x421eb0
mov ecx, dword [edi + 0x278]
push ebx
push 0
push esi
call fcn.004282b0
test al, al
je 0x421eb0
mov edx, dword [ebp + 4]
test edx, edx
mov dword [esp + 0x44], esi
jne 0x421d59
xor ecx, ecx
jmp 0x421d61
mov ecx, dword [ebp + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x421d7e
mov eax, dword [ebp + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x421d7e
mov eax, dword [ebp + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebp + 8], eax
jmp 0x421d90
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.0041bf40
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x421d9b
xor eax, eax
jmp 0x421da3
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
push ebx
push eax
push esi
mov ecx, edi
call fcn.0041f660
mov eax, dword [edi + 0x170]
inc esi
cmp esi, eax
jb 0x421d16
jmp 0x421eb0
cmp eax, 2
jne 0x421eb4
mov edx, dword [edi + 0x278]
mov esi, dword [edx + 0x1c]
cmp esi, dword [edi + 0x170]
jae 0x421eb0
nop
mov ecx, dword [edi + 0x278]
push ebx
push 0
push esi
call fcn.004282b0
test al, al
je 0x421dff
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x14]
test al, al
jne 0x421e0f
mov eax, dword [edi + 0x170]
inc esi
cmp esi, eax
jb 0x421de0
jmp 0x421eb0
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
mov dword [esp + 0x48], esi
call fcn.0041e3d0
push ebx
push 1
push esi
mov ecx, edi
call fcn.0041f660
mov edx, dword [esp + 0x48]
mov eax, dword [edi + 0x170]
dec edx
inc esi
cmp esi, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], 2
jae 0x421eb0
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x421eb0
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x14]
mov ecx, dword [edi + 0x278]
push ebx
push 0
push esi
mov byte [esp + 0x50], al
call fcn.004282b0
mov cl, byte [esp + 0x44]
test cl, cl
je 0x421ea5
test al, al
je 0x421ea5
mov eax, dword [esp + 0x40]
push ebx
push eax
push esi
mov ecx, edi
call fcn.0041f660
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
mov dword [esp + 0x48], esi
call fcn.0041e3d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
inc ecx
dec eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x170]
inc esi
cmp esi, eax
jb 0x421e46
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x421ecb
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
test eax, eax
jne 0x421fe1
mov ecx, dword [edi + 0x278]
mov eax, dword [ecx + 0x24]
xor esi, esi
test eax, eax
jbe 0x421f1b
lea ebx, [ebx]
push esi
call fcn.004270f0
test al, al
jne 0x421f0d
mov ecx, dword [edi + 0x278]
push ebx
push 1
push esi
call fcn.004282b0
test al, al
je 0x421f0d
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x14]
test al, al
jne 0x421fae
mov ecx, dword [edi + 0x278]
mov eax, dword [ecx + 0x24]
inc esi
cmp esi, eax
jb 0x421ee0
mov ecx, dword [edi + 0x278]
mov eax, dword [ecx + 0x24]
xor esi, esi
test eax, eax
jbe 0x421f54
lea ebx, [ebx]
push esi
call fcn.004270f0
test al, al
jne 0x421f46
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x14]
test al, al
jne 0x421fae
mov ecx, dword [edi + 0x278]
mov eax, dword [ecx + 0x24]
inc esi
cmp esi, eax
jb 0x421f30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [ebp + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x421fbd
mov eax, dword [ebp + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x421fbd
mov eax, dword [ebp + 8]
push ebx
mov dword [eax], esi
push 1
add eax, 4
push esi
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.0041f660
mov edx, dword [esp + 0x10]
push edx
jmp 0x421fe2
mov edx, dword [ebp + 4]
test edx, edx
mov dword [esp + 0x48], esi
jne 0x421f79
xor ecx, ecx
jmp 0x421f81
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x48]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.0041bf40
push ebx
push 1
push esi
mov ecx, edi
call fcn.0041f660
mov edx, dword [esp + 0x10]
push edx
jmp 0x421fe2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc