Function at 0x405042
Capabilities:
Check for time delay via gettickcount
Create process on windows
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp - 0x30], 0
mov dword [rbp - 0x2c], 0
mov dword [rbp - 0x28], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x20], 0
mov dword [rbp - 0x1c], 0
mov dword [rbp - 0x18], 0
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x10], 0
mov dword [rbp - 0xc], 0
sub rsp, 0x20
call fcn.00403000
add rsp, 0x20
cmp dword [0x0040b2e0], 0
jne 0x4050da
sub rsp, 0x20
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
add rsp, 0x20
mov rcx, rax
mov rdx, qword [0x0040b1a2]
mov r8, 0x40b2d8
mov r9, 0x18
call qword [sym.imp.KERNELBASE.DLL_GetModuleInformation]
add rsp, 0x20
sub rsp, 0x20
mov rcx, section..data
mov rdx, 1
call fcn.00403e0b
add rsp, 0x20
test rax, rax
je 0x405130
sub rsp, 0x20
sub rsp, 0x20
call qword [sym.imp.USER32.DLL_GetActiveWindow]
add rsp, 0x20
mov rcx, rax
mov rdx, str.Game_is_already_running_
mov r8, 0
mov r9, 0x30
call qword [sym.imp.USER32.DLL_MessageBoxA]
add rsp, 0x20
leave
ret
sub rsp, 0x30
mov rcx, 0
mov rdx, str.open
mov r8, str.start_protected_game
mov r9, 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 1
call qword [sym.imp.SHELL32.DLL_ShellExecuteA]
add rsp, 0x30
cmp rax, 2
jne 0x4051a8
sub rsp, 0x20
sub rsp, 0x20
call qword [sym.imp.USER32.DLL_GetActiveWindow]
add rsp, 0x20
mov rcx, rax
mov rdx, str.You_need_to_copy_the_EAC_Launcher_to_the_root_folder_of_the_game_where__Warhammer_40000_Space_Marine_2.exe__and__start_protected_game.exe__are_located.
mov r8, 0
mov r9, 0x30
call qword [sym.imp.USER32.DLL_MessageBoxA]
add rsp, 0x20
leave
ret
sub rsp, 0x20
call fcn.004053b1
add rsp, 0x20
sub rsp, 0x20
mov rcx, str.B8_01_00_00_00
lea rdx, [rbp - 0x40]
call fcn.004021aa
add rsp, 0x20
sub rsp, 0x20
mov rcx, str.90_90_90_90_90
lea rdx, [rbp - 0x38]
call fcn.004021aa
add rsp, 0x20
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
add rsp, 0x20
mov qword [rbp - 0x28], rax
sub rsp, 0x20
mov rcx, section..data
mov rdx, 1
call fcn.00403e0b
add rsp, 0x20
mov qword [rbp - 0x30], rax
sub rsp, 0x20
mov rcx, qword [rbp - 0x30]
call fcn.0040407e
add rsp, 0x20
mov rsi, rax
sub rsp, 0x30
mov rcx, qword [rbp - 0x30]
mov rdx, 0x408030
mov r8, 1
mov r9, 0x408123
mov qword [rsp + 0x20], 1
call fcn.004038ec
add rsp, 0x30
test rax, rax
je 0x405289
mov qword [rbp - 0x18], rax
sub rsp, 0x30
mov rcx, rsi
mov rdx, rax
mov r8, str.B8_01_00_00_00
mov r9d, dword [rbp - 0x3c]
mov qword [rsp + 0x20], 0
call fcn.00403723
add rsp, 0x30
sub rsp, 0x30
mov rcx, qword [rbp - 0x30]
mov rdx, 0x408030
mov r8, 1
mov r9, 0x40815b
mov qword [rsp + 0x20], 1
call fcn.004038ec
add rsp, 0x30
test rax, rax
je 0x4052c1
mov qword [rbp - 0x10], rax
sub rsp, 0x20
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
add rsp, 0x20
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
add rsp, 0x20
sub rax, qword [rbp - 0x28]
cmp rax, 0x7530
jbe 0x4051f7
sub rsp, 0x20
mov rcx, section..data
mov rdx, 1
call fcn.00403e0b
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
call fcn.0040407e
add rsp, 0x20
mov rsi, rax
sub rsp, 0x30
mov rcx, rsi
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
mov r9d, dword [rbp - 0x3c]
mov qword [rsp + 0x20], 0
call fcn.004036e7
add rsp, 0x30
sub rsp, 0x20
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
add rsp, 0x20
mov eax, dword [str.B8_01_00_00_00]
cmp eax, dword [rbp - 0x20]
jne 0x405366
cmp qword [rbp - 0x18], 0
jne 0x40539a
sub rsp, 0x20
sub rsp, 0x20
call qword [sym.imp.USER32.DLL_GetActiveWindow]
add rsp, 0x20
mov rcx, rax
mov rdx, str.Bypass_failed_because_of_one_of_the_following_reasons:_n1._Your_antivirus_blocked_it__so_you_need_to_whitelist_it._n2._The_game_updated__and_the_bypass_failed_to_locate_the_code_due_to_changes_in_the_game_code.
mov r8, 0
mov r9, 0x30
call qword [sym.imp.USER32.DLL_MessageBoxA]
add rsp, 0x20
sub rsp, 0x20
mov rcx, 0
call qword [sym.imp.KERNEL32.DLL_ExitProcess]