Function at 0x405a80
Capabilities:
Check for time delay via gettickcount
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push esi
push edi
push 0x47a
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x1c], ebx
je 0x405d50
cmp ebx, 0xffffffff
je 0x405d50
mov ecx, dword [0x41a108]
mov edx, 0x414980
call fcn.00404be0
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x14], eax
call edi
mov esi, eax
add esi, 0x2ee
call edi
cmp esi, eax
jbe 0x405b26
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
push 8
lea ecx, [ebp - 0x24]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x405b1c
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x20]
jne 0x405b26
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x405af5
mov eax, dword [0x41c180]
or esi, 0xffffffff
cmp eax, 0x80000000
mov dword [ebp - 0x14], esi
jae 0x405b4d
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov edx, 0x4056f0
mov ecx, edi
call fcn.00403a30
jmp 0x405b61
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov edx, 0x4055a0
call fcn.00403a30
mov edi, dword [ebp + 8]
test eax, eax
je 0x405b91
push eax
push edi
push str.OpenActiveThread_0x_x_:_EnumThreads___failed____d_
call fcn.00402530
add esp, 0xc
mov dword [ebp - 0x18], esi
push edi
push str.InjectProcessNT_0x_x_:_OpenActiveThread___failed_
call fcn.00402530
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x405d04
mov esi, dword [ebp - 0x14]
test esi, esi
mov dword [ebp - 0x18], esi
je 0x405b77
cmp esi, 0xffffffff
je 0x405b77
push edi
mov edi, ebx
call fcn.004054e0
test eax, eax
jne 0x405bd5
mov eax, dword [ebp + 8]
push eax
push str.InjectProcessNT_0x_x_:_Process_is_not_Half_Life_
call fcn.00402530
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push ebx
call esi
jmp 0x405d04
push ebx
call fcn.00405070
add esp, 4
push 0x8000
push ebx
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push 0x400
lea ecx, [ebp - 0x428]
push ecx
push 0
mov byte [ebp - 0x428], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0
push 0
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0xc28]
push eax
lea ecx, [ebp - 0x428]
push ecx
call fcn.0040a8c6
mov eax, 0x41a08c
add esp, 0x14
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405c30
lea edi, [ebp - 0x828]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405c40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x828]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405c60
mov eax, dword [str..dll]
mov dx, word [0x413efc]
mov ecx, dword [0x4180a0]
push eax
push ecx
mov word [edi], dx
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0xc28]
push eax
lea ecx, [ebp - 0x428]
push ecx
call fcn.0040a836
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x428]
push edx
push eax
push ecx
push str.InjectProcessNT_0x_x_:_Info:_Found_active_game_process___s.exe_._Injecting___s_
call fcn.00402530
mov edi, dword [ebp - 0x14]
add esp, 0x24
lea edx, [ebp - 0x428]
push edx
mov edx, edi
mov ecx, ebx
call fcn.00404aa0
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, eax
call edi
push ebx
call edi
test esi, esi
je 0x405d19
jl 0x405d19
mov edi, dword [ebp + 8]
push edi
push str.InjectProcessNT_0x_x_:_Info:_Successfully_hooked_in_to_game_process.
call fcn.00402530
add esp, 8
call fcn.00407010
test eax, eax
jne 0x405d2b
push edi
push str.InjectProcessNT_0x_x_:_Info:_..but_C_D_failed_to_load___
call fcn.00402530
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
push esi
push eax
push str.InjectProcessNT_0x_x_:_Failed:_Couldnt_hook_into_game_process___d_.
call fcn.00402530
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
test esi, esi
pop esi
setne al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push str.InjectProcessNT_0x_x_:_OpenProcess___failed_
jmp 0x405cfc