Function at 0x417d60
Capabilities:
Check for time delay via gettickcount
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a38eb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4d33a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], esi
test esi, esi
je 0x417da6
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x38], 0
je 0x417de2
mov dword [esp + 0x38], 0xffffffff
test esi, esi
je 0x41844b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
push eax
add edi, 0x94
call fcn.00429f30
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x417e4a
push 0x483
push str.srcdownworkersprovider_fixedFixedProvider.cpp
push str.pBlock
push str.ASSERT:_s_FILE:_s_LINE_d
push str.XNet
push 0x40
call fcn.004076e0
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esi]
mov edx, dword [eax + 8]
add esp, 0x18
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 0x14]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x10], esi
test eax, eax
jl 0x417f10
jg 0x417e69
test ecx, ecx
jb 0x417f10
sub ecx, dword [ebx + 0x28]
sbb eax, dword [ebx + 0x2c]
xor edx, edx
cmp edx, eax
jl 0x417f10
jg 0x417e83
cmp esi, ecx
jbe 0x417f10
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 1
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x2c]
sub eax, 1
sbb ecx, 0
push ecx
push eax
mov eax, dword [ebx + 0x28]
push edx
push eax
push esi
lea ecx, [esp + 0x30]
push str.ReadSizeOverFlow__d__I64d__I64d_
push ecx
call fcn.00407bb0
mov edi, dword [esp + 0x38]
add esp, 0x1c
push 0x489
push str.srcdownworkersprovider_fixedFixedProvider.cpp
push edi
push str.pBlock__size___0__readSize___pBlock__size___pBlock__downloadsize
push str.ASSERT:_s_MSG:_s_FILE:_s_LINE:_d
push str.XNet
push 0x40
call fcn.004076e0
lea eax, [edi - 0x10]
add esp, 0x1c
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417f10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
test eax, eax
jl 0x417f39
jg 0x417f20
test ecx, ecx
jb 0x417f39
sub ecx, dword [ebx + 0x28]
sbb eax, dword [ebx + 0x2c]
mov edi, eax
mov eax, esi
cdq
cmp edx, edi
jl 0x417f39
jg 0x417f35
cmp eax, ecx
jbe 0x417f39
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 0
jle 0x41801b
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x417f55
mov dword [eax + 0x3c], 0
mov edi, dword [ebx + 0x28]
add edi, dword [ebx + 8]
mov esi, dword [ebx + 0x2c]
adc esi, dword [ebx + 0xc]
push 0x28
call fcn.0047d8a0
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 2
test eax, eax
je 0x417f92
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov ecx, dword [ecx + 8]
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edi
push eax
call fcn.0040e540
mov edi, eax
jmp 0x417f94
xor edi, edi
mov byte [esp + 0x38], 0
mov dword [esp + 0x1c], edi
test edi, edi
je 0x417faa
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x18]
lea ecx, [edi + 0x20]
push eax
call fcn.004078f0
mov ecx, dword [esp + 0x10]
push ecx
mov dword [edi + 0x24], ecx
mov eax, esp
mov dword [eax], edi
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
mov dword [esp + 0x2c], esp
call eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx + 0x18]
call fcn.00424200
cmp eax, 1
je 0x418009
push 0x49e
push str.srcdownworkersprovider_fixedFixedProvider.cpp
push str.PENDING__result
push str.ASSERT:_s_FILE:_s_LINE_d
push str.XNet
push 0x40
call fcn.004076e0
add esp, 0x18
mov byte [esp + 0x38], 0
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [ecx]
add esi, 0x24
push eax
lea edi, [esi + 0x70]
call fcn.00429f30
mov ecx, eax
test ecx, ecx
je 0x41804a
mov eax, dword [esp + 0x10]
cdq
add dword [ecx + 0x28], eax
push 0
push esi
adc dword [ecx + 0x2c], edx
call fcn.00423220
call fcn.00421240
test eax, eax
je 0x4181b7
mov edx, dword [0x4d2c98]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d2c98
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 4
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x170]
push eax
lea ecx, [esp + 0x20]
push str.RequestReadComplete_Download_Complete__RuningBlockCount:_d
push ecx
call fcn.00407bb0
mov edx, dword [0x4d2c98]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4d2c98
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 5
mov ebx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x1c]
push 0x4be71c
push ecx
call fcn.00407bb0
mov edx, dword [edi - 0xc]
mov esi, dword [esp + 0x24]
mov eax, dword [edx + 0x50]
add edi, 0xfffffff4
add esp, 0xc
push esi
mov ecx, edi
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x44]
mov ecx, edi
call eax
push eax
push edi
push str._p_STATE___s___s__s
push str.XNet
push 0x25
call fcn.004076e0
mov edx, dword [0x4d2c98]
mov eax, dword [edx + 0xc]
add esp, 0x1c
mov ecx, 0x4d2c98
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 6
mov edx, dword [edi]
mov eax, dword [edx + 0x50]
push esi
mov ecx, edi
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x44]
mov ecx, edi
call eax
push eax
push edi
lea ecx, [esp + 0x24]
push str._p_STATE___s___s__s
push ecx
call fcn.00407bb0
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41815e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x38], 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41817f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0xfffffff0
mov byte [esp + 0x38], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4181a0
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
call fcn.00418900
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [ecx]
jmp 0x418446
mov ecx, dword [ebx + 8]
or ecx, dword [ebx + 0xc]
jne 0x4181d7
call fcn.00423580
test eax, eax
jne 0x4181d7
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
jmp 0x4181da
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x14], 0
jne 0x4182ce
mov edx, dword [0x4d2c98]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d2c98
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0
push 0
lea ecx, [esp + 0x18]
push str.RequestReadComplete_BlockComplete:_result_d__MoreToRead_d
push ecx
mov byte [esp + 0x48], 7
call fcn.00407bb0
mov edx, dword [0x4d2c98]
mov eax, dword [edx + 0xc]
add esp, 0x10
mov ecx, 0x4d2c98
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 8
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push 0x4be71c
push edx
call fcn.00407bb0
mov edi, dword [esp + 0x20]
mov eax, dword [edi - 0xc]
mov ebx, dword [esp + 0x28]
mov edx, dword [eax + 0x50]
add edi, 0xfffffff4
add esp, 0xc
push ebx
mov ecx, edi
call edx
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
mov ecx, edi
call edx
push eax
push edi
push str._p_STATE___s___s__s
push str.XNet
push 0x10
call fcn.004076e0
lea eax, [ebx - 0x10]
add esp, 0x1c
mov byte [esp + 0x38], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4182a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41843a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41843a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x14]
mov dword [esp + 0x10], eax
cmp eax, 0x7fffffff
jbe 0x4182ed
or ecx, 0xffffffff
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, ecx
mov edi, dword [esi + 0x18]
cmp eax, 0x64
jae 0x418315
cmp edi, 0x8000
jae 0x418315
add edi, edi
cmp edi, 0x8000
jbe 0x4183e3
mov edi, 0x8000
jmp 0x4183e3
cmp eax, 0x7d0
jbe 0x4183e3
mov edx, dword [0x4d2c98]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d2c98
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x38], 0xa
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x24]
push str.Block_Slow_Down:__s__d_
push ecx
call fcn.00407bb0
mov edx, dword [0x4d2c98]
mov eax, dword [edx + 0xc]
add esp, 0x10
mov ecx, 0x4d2c98
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 0xb
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push 0x4be71c
push edx
call fcn.00407bb0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [edi - 0xc]
add edi, 0xfffffff4
add esp, 0xc
push eax
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x44]
mov ecx, edi
call eax
push eax
push edi
push str._p_STATE___s___s__s
push str.XNet
push 0x10
call fcn.004076e0
add esp, 0x1c
lea ecx, [esp + 0x18]
call fcn.00407ca0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.00407ca0
mov eax, dword [esp + 0x10]
mov edi, 0x400
add dword [esi + 0x28], eax
mov ecx, dword [ebp + 0x10]
mov edx, 0
adc dword [esi + 0x2c], edx
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], edx
mov dword [esi + 0x18], edi
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
cmp eax, edx
jl 0x418422
jg 0x41840a
cmp ecx, edx
jb 0x418422
sub ecx, dword [ebx + 0x28]
sbb eax, dword [ebx + 0x2c]
xor edx, edx
cmp edx, eax
jl 0x418422
jg 0x41841c
cmp edi, ecx
jbe 0x418422
mov edi, dword [ebx + 0x10]
sub edi, dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x24]
call eax
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10