Function at 0x1800043f0
Capabilities:
Create thread
Enumerate files on windows
Get common file path
Query or enumerate registry value
Query service status
Set environment variable
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x830]
sub rsp, 0x930
mov rax, qword [0x180044088]
xor rax, rsp
mov qword [rbp + 0x820], rax
xor r15d, r15d
cmp edx, 1
jne 0x180004e4a
xor edx, edx
lea ecx, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
lea rdx, [0x1800769f0]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, 0x7fff
lea rcx, [0x1800d6ae0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9d, [r15 + 1]
xor ecx, ecx
lea r8d, [r15 + 0x1a]
lea rdx, [0x1800669e0]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1800044af
mov r9d, 0x1010
lea r8, str.Path_Error
lea rdx, str.Failed_to_get_path_to_AppData.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea r9, str.CreamAPI381210_remoteProfileSaves_
lea r8, [0x1800669e0]
lea rdx, [0x18003b8d0]
lea rcx, [0x1800b6ac0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.DeadByDaylightBinariesWin64.
lea r8, [0x1800769f0]
lea rdx, [0x18003b928]
lea rcx, [0x180086ac0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.DeadByDaylight.
lea r8, [0x1800769f0]
lea rdx, [0x18003b960]
lea rcx, [0x180116c80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.DeadByDaylightBinariesWin64DeadByDaylight_Win64_Shipping.exe
lea r8, [0x1800769f0]
lea rdx, [0x18003b9f8]
lea rcx, [0x1800e6ae0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.DeadByDaylightBinariesWin64glu32.dll
lea r8, [0x1800769f0]
lea rdx, [0x18003ba98]
lea rcx, [0x1800c6ae0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.DeadByDaylightBinariesWin64cream_api.ini
lea r8, [0x1800769f0]
lea rdx, [0x18003bb40]
lea rcx, [0x180106c80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [0x18003ba08]
lea r8, [0x1800769f0]
lea rdx, [0x18003bb50]
lea rcx, [0x180096ac0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.DeadByDaylightBinariesWin64ValveAPI64.dll
lea r8, [0x1800769f0]
lea rdx, [0x18003bbc0]
lea rcx, [0x1800f6c80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.dbd
lea r8, [0x1800769f0]
lea rdx, [0x18003bbe0]
lea rcx, [0x1800569e0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [0x18003ba28]
lea r8, [0x1800d6ae0]
lea rdx, [0x18003bbf0]
lea rcx, [0x1800d6ae0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.EasyAntiCheatEasyAntiCheat_x64.dll
lea r8, [0x1800769f0]
lea rdx, [0x18003bc50]
lea rcx, [0x1800469d0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.EasyAntiCheateac_server64.dll
lea r8, [0x1800769f0]
lea rdx, str._s_s
lea rcx, [0x180126d60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [0x1800d6ae0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, r15
lea rsi, sym.glu32.dll_RAdcTPe3_Z_8_y_Q5owKxrT_FR_NuYqEyzr1euQ__8P_GwS_
mov rdi, rax
mov rdx, qword [rbx + rsi + 0x3d0f0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + rsi + 0xf6ae0], rax
add rbx, 8
cmp rbx, 0x1a0
jl 0x180004661
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x18003baa8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800046ed
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x388]
mov qword [rsp + 0x28], rax
lea rdx, [0x18003ad3c]
lea rax, [0x1800569d8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x18003bcb0]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x18003bcd0]
lea rcx, str.GameAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [rbp + 0x420]
mov ebx, r15d
lea rcx, [0x180116c80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000475a
mov r9d, 0x1010
lea r8, [0x18003b108]
lea rdx, str.We_detected_that_you_are_trying_to_start_the_game_not_from_EAC_Launcher_Launcher._Are_you_planning_to_cheat__n_n
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rbp + 0x420]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180004786
nop
lea rdx, [rbp + 0x420]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180004770
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [rbx - 1]
xor ecx, ecx
cmp eax, 3
jle 0x1800047bc
mov r9d, 0x1010
lea r8, [0x18003b2d8]
lea rdx, str.We_detected_some_unknown_files_in_your_DeadByDaylightContent_folder._There_should_be_only_.PAK_file._If_you_have_some_another_files_please_delete_it._n_n
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1800047f7
mov r8d, 4
lea rdx, str.EasyAntiCheat
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x18000481c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r9d, 0x1010
lea r8, [0x18003b570]
lea rdx, str.EAC_loading_failed__If_you_are_blocking_EAC__please_unblock_it_and_restart_the_game__n_n
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rax, [rbp + 0x380]
mov r9d, 0x24
lea r8, [rbp + 0x398]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x1800047f7
cmp dword [rbp + 0x39c], 4
jne 0x1800047f7
push rax
call fcn.1804079ec
test al, al
jne 0x180004890
mov r9d, 0x1010
lea r8, str.Steam_Initialization_Failed
lea rdx, str.Failed_to_initialize_Steam._Try_to_restart_the_Steam._n_n
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
push rdx
call fcn.180235060
mov edx, 0x3d4a0
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x30]
test al, al
jne 0x1800048ce
mov r9d, 0x10
lea r8, str.Steanworks_Fix_Activation
lea rdx, str.You_do_not_have_PAYDAY_2_Demo_subscription._Please_activate_steamworks_fix_by_installing_PAYDAY_2_Demo__for_a_few_seconds___then_restart_the_game._n_n
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov qword [rsp + 0x950], r14
push rbp
call fcn.1801c4107
lea rdx, [rbp + 0x390]
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x10]
mov rax, qword [rbp + 0x390]
mov qword [0x1800569d0], rax
call fcn.18034d44d
int3
cmp edx, 2
jne 0x180004e7c
cmp dword [0x1800c6ad4], r15d
jne 0x180004e7c
mov qword [rsp + 0x28], r15
lea r8, [0x180005510]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
inc dword [0x1800c6ad4]
mov eax, dword [0x1800769e0]
cmp eax, 1
jne 0x180004f2a
mov ecx, dword [0x180126c88]
sub ecx, 4
je 0x180004ef7
sub ecx, eax
je 0x180004ee7
sub ecx, eax
je 0x180004ed7
sub ecx, 4
je 0x180004ec7
cmp ecx, eax
jne 0x180004eb7
lea rdx, str.New_Fix_has_been_released__Please_install_the_new_one__n_n
lea r8, [0x18003c8e8]
jmp 0x180004f05
mov rdx, qword [0x1800c6ad8]
mov r8, qword [0x1800769e8]
jmp 0x180004f13
lea rdx, [0x1800869f0]
lea r8, str.New_Update_
jmp 0x180004f05
lea rdx, str.We_detected_some_unknown_files_in_your_DeadByDaylightBinariesWin64_folder._There_should_be_only_such_files_as:_cream_api.ini__DeadByDaylight_Win64_Shipping.exe__glu32.dll__steam_api64_o.dll__RedShell.dll._If_you_have_some_another_files_please_delete_it._n_n
lea r8, str.Cheater_
jmp 0x180004f05
lea rdx, str.You_have_been_banned_from_the_game_and_cannot_play_it_anymore._Possible_reasons:_using_saves__insultings__farming_also_co_op_work_with_killer___any_kind_of_cheat._n_n
lea r8, str.Banned
jmp 0x180004f05
lea rdx, str.Failed_to_connect_to_FTP_UberPsyXs_server._nFTP
lea r8, str.Server_Error
mov qword [0x1800c6ad8], rdx
mov qword [0x1800769e8], r8
xor ecx, ecx
mov r9d, 0x1040
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x180004f90
mov ecx, dword [0x180126c88]
sub ecx, 1
je 0x180004f5f
cmp ecx, 1
jne 0x180004f4f
lea rdx, str.You_have_got_2_3_warnings_in_the_game._Possible_reasons:_using_saves__insultings__farming_also_co_op_work_with_killer___any_kind_of_cheat._n_n
lea r8, str.Ban_Warning
jmp 0x180004f6d
mov rdx, qword [0x1800c6ad8]
mov r8, qword [0x1800769e8]
jmp 0x180004f7b
lea rdx, str.You_have_got_1_3_warnings_in_the_game._Possible_reasons:_using_saves__insultings__farming_also_co_op_work_with_killer___any_kind_of_cheat._n_n
lea r8, [0x18003c9b8]
mov qword [0x1800769e8], r8
mov qword [0x1800c6ad8], rdx
xor ecx, ecx
mov r9d, 0x1030
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x1800769e0], r15d
mov eax, 1
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.18000c090
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret