Function at 0x41ca90
Capabilities:
Check for time delay via gettickcount
Check os version
Terminate process

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
mov eax, 1
lea ecx, [esi + 0x10]
xchg dword [ecx], eax
test eax, eax
jne 0x41ce58
mov dword [esi + 0x170], 1
mov ecx, dword [esi + 0x180]
test ecx, ecx
je 0x41cac1
call fcn.0041ebd0
mov ecx, dword [esi + 0x480]
test ecx, ecx
je 0x41cad0
call fcn.004125e0
push ebx
push edi
lea ecx, [esi + 0x49c]
call fcn.0051a108
lea ecx, [esi + 0x4a0]
call fcn.0051a108
lea ebx, [esi + 0x188]
mov ecx, ebx
call fcn.00421d80
mov ecx, ebx
xor edi, edi
call fcn.00421dc0
test eax, eax
je 0x41cb0d
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov edi, 1
mov eax, dword [esi + 0x190]
test eax, eax
je 0x41cb1e
mov dword [esp + edi*4 + 0x1c], eax
add edi, 1
mov eax, dword [esi + 0x180]
test eax, eax
je 0x41cb38
cmp dword [eax + 8], 0
je 0x41cb38
mov eax, dword [eax + 8]
mov dword [esp + edi*4 + 0x1c], eax
add edi, 1
push ebp
call sub.KERNEL32.dll_GetTickCount
test edi, edi
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 0
jle 0x41cbf5
lea eax, [esp + edi*4 + 0x1c]
mov dword [esp + 0x14], eax
push 0x40
push 0x2710
push 0
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebp, eax
cmp edi, ebp
jne 0x41cb89
push 0
push 0
call fcn.0044ca40
add esp, 8
test al, al
jne 0x41cbde
mov byte [esp + 0x13], 1
jmp 0x41cbde
call sub.KERNEL32.dll_GetTickCount
cmp ebp, edi
mov ebx, eax
jae 0x41cbaf
lea edx, [ebp + 1]
cmp edx, edi
jae 0x41cba5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esp + ebp*4 + 0x20], ecx
sub edi, 1
sub dword [esp + 0x14], 4
jmp 0x41cbda
mov edx, ebx
sub edx, dword [esp + 0x18]
cmp edx, 0x2710
jbe 0x41cbde
mov eax, dword [0x6b48ac]
push 0x31
push str.VirtualDub_Internal_Error
push str.Something_appears_to_be_stuck_while_trying_to_stop__thread_deadlock_._Abort_operation_and_exit_program_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x41cc41
mov dword [esp + 0x18], ebx
test edi, edi
jg 0x41cb57
cmp byte [esp + 0x13], 0
je 0x41cbf5
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov al, byte [esi + 0x2c5]
xor ebp, ebp
cmp byte [esi + 0xc], 0
mov byte [esi + 0x16b], al
jne 0x41cc74
mov ecx, dword [esi + 0x180]
cmp ecx, ebp
je 0x41cc1f
lea edx, [esi + 8]
push edx
call fcn.0041a950
mov byte [esi + 0xc], al
cmp byte [esi + 0xc], 0
jne 0x41cc74
cmp byte [esi + 0x2c4], 0
je 0x41cc6f
lea eax, [esi + 0x2c0]
push eax
lea ecx, [esi + 8]
call fcn.0051c312
mov al, 1
jmp 0x41cc71
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], str.._sourceDub.cpp
mov dword [esp + 0x34], 0x6c2
mov dword [esp + 0x38], str.aborting_process_due_to_a_thread_deadlock
call fcn.0040bc60
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor al, al
mov byte [esi + 0xc], al
mov edi, dword [esi + 0x180]
cmp edi, ebp
je 0x41cc8e
mov ecx, edi
call fcn.0041eea0
push edi
call fcn.005f7e65
add esp, 4
lea ecx, [esi + 0x188]
mov dword [esi + 0x180], ebp
call fcn.00421d00
mov ecx, dword [esi + 0x528]
cmp ecx, ebp
je 0x41ccb0
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esi + 0x47c]
cmp ecx, ebp
je 0x41ccc2
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x47c], ebp
mov edi, dword [esi + 0x480]
cmp edi, ebp
je 0x41cce8
mov ecx, edi
call fcn.00412130
push edi
call fcn.005f7e65
add esp, 4
mov dword [esi + 0x480], ebp
lea ecx, [esi + 0x484]
call fcn.00428b60
mov edi, dword [esi + 0x4a8]
cmp edi, ebp
je 0x41cd13
mov ecx, edi
call fcn.0041e9c0
push edi
call fcn.005f7e65
add esp, 4
mov dword [esi + 0x4a8], ebp
mov ecx, 0x6b2f68
call fcn.00448f50
cmp byte [esi + 0x179], 0
je 0x41cd3e
mov ecx, dword [esi + 0x98]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp byte [esi + 0x178], 0
je 0x41cd56
mov ecx, dword [esi + 0x88]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
mov edi, dword [esi + 0x4c4]
mov ebx, dword [esi + 0x4c8]
cmp edi, ebx
je 0x41cd7b
mov ecx, dword [edi]
cmp ecx, ebp
je 0x41cd74
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
add edi, 4
cmp edi, ebx
jne 0x41cd66
mov ecx, dword [esi + 0x4c8]
mov edi, dword [esi + 0x4c4]
cmp edi, ecx
je 0x41cdb2
mov eax, ecx
sub eax, ecx
sar eax, 2
cmp eax, ebp
lea edx, [eax*4]
lea ebx, [edx + edi]
jle 0x41cdac
push edx
push ecx
push edx
push edi
call fcn.005f81c2
add esp, 0x10
mov dword [esi + 0x4c8], ebx
mov edi, dword [esi + 0x4e4]
cmp edi, ebp
je 0x41cdd2
mov ecx, edi
call fcn.0044baf0
push edi
call fcn.005f7e65
add esp, 4
mov dword [esi + 0x4e4], ebp
mov ecx, 0x6b2f68
call fcn.004482e0
push 0xffffffffffffffff
mov ecx, 0x6b2f68
call fcn.00447d80
mov ecx, dword [esi + 0x528]
cmp ecx, ebp
je 0x41ce11
mov eax, dword [esi + 0xfc]
cmp eax, ebp
mov edx, dword [esi + 0xf8]
jl 0x41ce11
jg 0x41ce08
cmp edx, ebp
jb 0x41ce11
mov edi, dword [ecx]
push eax
push edx
mov edx, dword [edi + 0x1c]
call edx
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x800000ff
cmp eax, 6
jl 0x41ce33
push 0x200000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp byte [esi + 0xc], 0
je 0x41ce55
add esi, 8
push esi
lea ecx, [esp + 0x20]
call fcn.0051c1ba
push 0x694d20
lea eax, [esp + 0x20]
push eax
call fcn.005f8355
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x3c
ret