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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi]
push 1
call dword [eax + 4]
test eax, eax
je 0x41d3f4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x2464]
mov dword [esi + 0x26a8], eax
cmp ecx, 0xa
jb 0x41d076
mov ecx, 0xa
mov dword [esi + 0x26cc], eax
mov dword [esp + 0x14], eax
lea eax, [esi + 0x62c68]
mov dword [esi + 0x2464], ecx
push eax
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov ecx, esi
push 0
call fcn.0041cd90
test eax, eax
je 0x41d3f4
cmp dword [esi + 0x5d0ac], 7
je 0x41d0d6
mov eax, dword [esi + 0x26a4]
test eax, eax
je 0x41d0d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x26a8]
mov ecx, dword [esi + 0x26a4]
sub eax, edx
cmp eax, ecx
ja 0x41d405
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push 0xb
push ecx
mov ecx, esi
call fcn.0041cd00
cmp eax, 1
jbe 0x41d3be
push 0x1f4
lea edx, [esp + 0x3c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebp, eax
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
mov ebx, eax
sub eax, edx
mov dword [esp + 0x18], ebx
cmp eax, 0x1f4
jb 0x41d234
mov ecx, dword [esi + 0x26c0]
lea edi, [esi + 0x26b0]
mov dword [esp + 0x24], 0
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
push edx
mov dword [esp + 0x24], ecx
push 1
push eax
mov ecx, edi
call fcn.00421100
mov eax, dword [edi + 4]
test eax, eax
je 0x41d1b2
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
cmp ecx, 6
jbe 0x41d1b2
mov eax, dword [esi + 0x26b4]
mov edx, dword [edi + 8]
add eax, 8
cmp eax, edx
je 0x41d1a5
lea ecx, [eax - 8]
mov ebp, dword [eax]
add eax, 8
mov dword [ecx], ebp
mov ebp, dword [eax - 4]
mov dword [ecx + 4], ebp
add ecx, 8
cmp eax, edx
jne 0x41d18d
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 8]
add eax, 0xfffffff8
mov dword [esp + 0x14], eax
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x41d226
mov edx, dword [edi + 8]
sub edx, eax
and edx, 0xfffffff8
cmp edx, 0x30
jne 0x41d226
xor edx, edx
xor ebx, ebx
xor ecx, ecx
mov ebp, eax
test ebp, ebp
je 0x41d1f1
mov eax, dword [edi + 8]
sub eax, ebp
sar eax, 3
cmp ecx, eax
jae 0x41d1f1
mov eax, dword [esi + 0x26b4]
add edx, dword [eax + ecx*8 + 4]
add ebx, dword [eax + ecx*8]
lea eax, [eax + ecx*8]
inc ecx
jmp 0x41d1ce
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
fild qword [esp + 0x28]
mov dword [esp + 0x34], eax
fild qword [esp + 0x30]
fdivp st(1)
fmul qword [0x4db0f8]
call sub.MSVCRT.dll__ftol
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov dword [esi + 0x26ac], eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x26c0], 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_time]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x62c68]
sub edx, ecx
add esp, 4
mov dword [esi + 0x62c6c], edx
mov edx, dword [esi + 0x26ac]
test edx, edx
je 0x41d295
mov eax, dword [esi + 0x5d0b0]
mov ecx, dword [esi + 0x5d0b4]
mov edi, eax
and edi, ecx
cmp edi, 0xffffffff
je 0x41d295
mov ebx, dword [esi + 0x5d0c0]
mov edi, dword [esi + 0x5d0c4]
sub eax, ebx
push 0
sbb ecx, edi
push edx
push ecx
push eax
call fcn.004d2f20
mov dword [esi + 0x62c70], eax
jmp 0x41d29f
mov dword [esi + 0x62c70], 0
cmp ebp, 0xffffffff
je case.default.0x41d342
cmp ebp, 0x102
jne 0x41d2f7
cmp dword [esi + 0x2468], 6
jne 0x41d0a7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esi + 0x26a0]
mov ecx, eax
sub ecx, edi
cmp ecx, 0x3e8
jbe 0x41d0a7
mov edx, dword [esi]
push 0
push 6
mov ecx, esi
mov dword [esi + 0x26a0], eax
call dword [edx + 4]
test eax, eax
je 0x41d3f4
jmp 0x41d0a7
test ebp, ebp
je 0x41d3fc
mov eax, dword [esi + 0x26dc]
lea edi, [ebp - 1]
mov ebx, dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x26c4], eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x41d336
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov ecx, dword [ebx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x10], 0
mov ebx, dword [ebx + 0x28]
cmp ebx, 0xa
ja case.default.0x41d342
jmp dword [ebx*4 + 0x41d418]
push edi
mov ecx, esi
call fcn.0041d450
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041d4e0
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041d5b0
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041d6c0
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041dc40
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041dce0
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041ddc0
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041ded0
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041e0d0
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041e250
jmp 0x41d3b5
push edi
mov ecx, esi
call fcn.0041e400
test eax, eax
je case.default.0x41d342
jmp 0x41d0a7
mov eax, dword [esi + 0x26f8]
test eax, eax
je 0x41d3f4
mov edx, dword [esi + 0x5d0c4]
mov eax, dword [esi + 0x5d0b4]
cmp edx, eax
ja 0x41d3f4
jb case.default.0x41d342
mov eax, dword [esi + 0x5d0c0]
mov ecx, dword [esi + 0x5d0b0]
cmp eax, ecx
jae 0x41d3f4
mov dword [esi + 0x5d0ac], 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
cmp dword [esi + 0x5d0ac], 7
je 0x41d3f4
mov dword [esi + 0x5d0ac], 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret