Function at 0x40b270
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.MetalinkFile
lea ebx, [esi + 0x5d330]
push ebx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40b2b7
push str.MetalinkFile
mov word [edi], 0
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 8
mov dword [esi + 0x2688], eax
lea edx, [esi + 0x10]
xor eax, eax
mov ecx, 0x912
mov edi, edx
push eax
push edx
rep stosd dword es:[edi], eax
push ebx
call fcn.0040a660
add esp, 0xc
test eax, eax
je 0x40b5eb
mov eax, dword [esi]
push 0
push 1
mov ecx, esi
call dword [eax + 4]
test eax, eax
je 0x40b5eb
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esi + 0x26a0], eax
mov eax, dword [esi + 0x245c]
cmp eax, 0xa
jb 0x40b309
mov eax, 0xa
mov dword [esi + 0x245c], eax
mov edx, dword [esi + 0x26cc]
mov ecx, dword [esi + 0x26c8]
mov eax, edx
cmp eax, edx
je 0x40b32f
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x40b321
mov edx, dword [esi + 0x26cc]
mov dword [esi + 0x26cc], ecx
mov dword [esp + 0x10], edx
call ebp
mov dword [esi + 0x26a8], eax
call ebp
mov dword [esi + 0x26b8], eax
lea eax, [esi + 0x628ac]
push eax
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov ecx, esi
push 0
call fcn.0040af70
test eax, eax
je 0x40b5eb
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push 0xb
push eax
mov ecx, esi
call fcn.0040aee0
cmp eax, 1
jbe 0x40b5b5
push 0x3e8
lea ecx, [esp + 0x28]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, eax
call ebp
mov edx, dword [esi + 0x26a8]
mov edi, eax
sub eax, edx
cmp eax, 0xbb8
jb 0x40b407
mov edx, dword [esi + 0x26ac]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
fild qword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fild qword [esp + 0x1c]
fdivp st(1)
fmul qword [0x456238]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x26a4], eax
mov dword [esi + 0x26a8], edi
mov dword [esi + 0x26ac], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x628ac]
sub ecx, edx
mov edx, dword [esi + 0x26a4]
add esp, 4
mov dword [esi + 0x628b0], ecx
test edx, edx
je 0x40b468
mov eax, dword [esi + 0x5cf10]
mov ecx, dword [esi + 0x5cf14]
mov edi, eax
and edi, ecx
cmp edi, 0xffffffff
je 0x40b468
mov edi, dword [esi + 0x5cf18]
push 0
sub eax, edi
mov edi, dword [esi + 0x5cf1c]
sbb ecx, edi
push edx
push ecx
push eax
call fcn.00447470
mov dword [esi + 0x628b4], eax
jmp 0x40b472
mov dword [esi + 0x628b4], 0
cmp ebx, 0xffffffff
je case.default.0x40b539
cmp ebx, 0x102
jne 0x40b4f1
cmp dword [esi + 0x5cf08], 7
je 0x40b4ae
mov eax, dword [esi + 0x269c]
test eax, eax
je 0x40b4ae
call ebp
mov edx, dword [esi + 0x26a0]
mov ecx, dword [esi + 0x269c]
sub eax, edx
cmp eax, ecx
ja 0x40b5fc
cmp dword [esi + 0x2460], 6
jne 0x40b370
call ebp
mov edi, dword [esi + 0x2698]
mov edx, eax
sub edx, edi
cmp edx, 0x3e8
jbe 0x40b370
mov dword [esi + 0x2698], eax
mov eax, dword [esi]
push 0
push 6
mov ecx, esi
call dword [eax + 4]
test eax, eax
je 0x40b5eb
jmp 0x40b370
test ebx, ebx
je 0x40b5f3
mov ecx, dword [esi + 0x26c8]
lea edi, [ebx - 1]
mov ebx, dword [ecx + ebx*4 - 4]
call ebp
mov dword [esi + 0x26b0], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40b52d
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov edx, dword [ebx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xc], 0
mov ebx, dword [ebx + 0x20]
cmp ebx, 0xa
ja case.default.0x40b539
jmp dword [ebx*4 + 0x40b610]
push edi
mov ecx, esi
call fcn.0040b640
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040b6e0
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040b7b0
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040b8b0
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040bd70
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040be10
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040bef0
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040bff0
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040c120
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040c2a0
jmp 0x40b5ac
push edi
mov ecx, esi
call fcn.0040c450
test eax, eax
je case.default.0x40b539
jmp 0x40b370
mov eax, dword [esi + 0x26e4]
test eax, eax
je 0x40b5eb
mov eax, dword [esi + 0x5cf1c]
mov ecx, dword [esi + 0x5cf14]
cmp eax, ecx
ja 0x40b5eb
jb case.default.0x40b539
mov ecx, dword [esi + 0x5cf18]
mov eax, dword [esi + 0x5cf10]
cmp ecx, eax
jae 0x40b5eb
mov dword [esi + 0x5cf08], 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp dword [esi + 0x5cf08], 7
je 0x40b5eb
mov dword [esi + 0x5cf08], 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret