Function at 0x405610
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423818
push 0x40ea20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
cmp dword [esi + 0x12c], ebx
je 0x40580d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp dword [esi + 0x12c], ebx
je 0x40567f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x5dc
jae 0x40567f
mov ecx, esi
call fcn.00405230
test eax, eax
je 0x40567f
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x12c], ebx
jne 0x405656
mov ecx, esi
call fcn.00405230
push 1
push 0x170
push esi
call fcn.0041a885
test eax, eax
je 0x4056b0
mov eax, dword [esi + 0x128]
cmp eax, 1
je 0x4056ab
cmp eax, 2
je 0x4056ab
xor eax, eax
jmp 0x4056b0
mov eax, 1
cmp eax, ebx
je 0x4056cc
cmp dword [esi + 0x128], ebx
je 0x4056cc
cmp dword [esi + 0x124], 1
jle 0x4056cc
mov eax, 1
jmp 0x4056ce
xor eax, eax
cmp eax, ebx
je 0x4057b9
push 1
push 0x170
push esi
call fcn.0041a885
test eax, eax
je 0x405700
mov eax, dword [esi + 0x128]
cmp eax, 1
je 0x4056fb
cmp eax, 2
je 0x4056fb
xor eax, eax
jmp 0x405700
mov eax, 1
cmp eax, ebx
je 0x4057b9
mov eax, dword [esi + 0x128]
cmp eax, 1
jne 0x40575a
push 0xffffffffffffffff
mov eax, dword [esi + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x130]
mov word [eax + 7], 4
mov byte [eax + 9], 0xaa
mov word [eax + 0xa], bx
mov byte [eax + 0xc], 0xf2
mov ecx, dword [esi + 0x130]
mov byte [ecx + 6], 1
mov edx, dword [esi + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x110]
push eax
jmp 0x4057b3
cmp eax, 2
jne 0x4057b9
push 0xffffffffffffffff
mov ecx, dword [esi + 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x130]
mov word [eax + 0x101e], 4
mov byte [eax + 0x1020], 0xaa
mov word [eax + 0x1021], bx
mov byte [eax + 0x1023], 0xf2
mov edx, dword [esi + 0x130]
mov byte [edx + 0x101d], 1
mov eax, dword [esi + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp dword [esi + 0x12c], ebx
je 0x4057f4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x2328
jae 0x4057f4
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x12c], ebx
jne 0x4057d6
mov eax, dword [esi + 0x12c]
cmp eax, ebx
je 0x40580d
push 0xfffffffffffffffd
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x12c], ebx
mov eax, dword [esi + 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x405826
push eax
call edi
mov dword [esi + 0x110], ebx
mov eax, dword [esi + 0x114]
cmp eax, ebx
je 0x405839
push eax
call edi
mov dword [esi + 0x114], ebx
mov eax, dword [esi + 0x118]
cmp eax, ebx
je 0x40584c
push eax
call edi
mov dword [esi + 0x118], ebx
mov eax, dword [esi + 0x11c]
cmp eax, ebx
je 0x40585f
push eax
call edi
mov dword [esi + 0x11c], ebx
mov eax, dword [esi + 0x120]
cmp eax, ebx
je 0x405872
push eax
call edi
mov dword [esi + 0x120], ebx
mov eax, dword [esi + 0x140]
cmp eax, ebx
je 0x405885
push eax
call edi
mov dword [esi + 0x140], ebx
mov eax, dword [esi + 0x144]
cmp eax, ebx
je 0x405898
push eax
call edi
mov dword [esi + 0x144], ebx
mov eax, dword [esi + 0x138]
cmp eax, ebx
je 0x4058a9
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x13c]
cmp eax, ebx
je 0x4058b6
push eax
call edi
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x124], 1
mov dword [esi + 0x128], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x120], ebx
cmp dword [esi + 0x148], ebx
je 0x405945
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x148]
cmp dword [eax + 0xc], ebx
je 0x405939
mov eax, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0xb]
cmp eax, ebx
je 0x405928
mov dword [ebp - 0x24], eax
push eax
call fcn.0041b5fa
add esp, 4
lea eax, [ebp - 0x37]
push eax
mov ecx, dword [esi + 0x148]
call fcn.00405330
jmp 0x405901
mov dword [ebp - 4], 0xffffffff
call fcn.00405991
cmp dword [esi + 0x14c], ebx
je 0x4059b5
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x14c]
cmp dword [eax + 0xc], ebx
je 0x4059a9
mov eax, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0xb]
cmp eax, ebx
je 0x40597b
mov dword [ebp - 0x28], eax
push eax
call fcn.0041b5fa
add esp, 4
lea eax, [ebp - 0x46]
push eax
mov ecx, dword [esi + 0x14c]
call fcn.00405330
jmp 0x405954
mov dword [ebp - 4], 0xffffffff
call fcn.004059cb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret