Function at 0x1800017c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18009c010]
xor rax, rsp
mov qword [rsp + 0x28], rax
test edx, edx
je 0x180001939
cmp edx, 1
jne 0x180001b66
call fcn.180050b70
mov r8d, 0x104
lea rdx, [0x18009ca40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [0x18009ca40]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
xor edi, edi
test rax, rax
je 0x180001826
mov word [rax + 2], di
lea rax, [0x18009ca40]
sub rax, 2
cmp word [rax + 2], di
lea rax, [rax + 2]
jne 0x180001831
movups xmm0, xmmword [str.mk1hook_log.txt]
lea rdx, [0x18008cc18]
movups xmm1, xmmword [0x18008cc08]
lea rcx, [0x18009ca40]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [0x18008cc1c]
lea rcx, [0x18009ca40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ctime64]
lea rdx, str.Logging_Started____s
mov rcx, rbx
mov r8, rax
call fcn.18004f450
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.18005dfd0
call fcn.18005e4e0
mov rbx, rdi
lea rsi, [0x180000000]
nop dword [rax + rax]
cmp qword [rsi + rbx*8 + 0x9ccd0], 0
jne 0x1800018f8
mov r8, qword [rsi + rbx*8 + 0x90dc0]
lea rdx, str.ERROR:_Could_not_find__s_
inc edi
lea rcx, str.PatternSolver::CheckMissingPatterns
call fcn.18004f4a0
inc rbx
cmp rbx, 0x2c
jl 0x1800018d0
test edi, edi
jle 0x18000192f
mov r9d, 0x34
lea r8, [0x180064b18]
lea rdx, str.Could_not_start_MK1Hook__n_nOne_or_more_code_patterns_could_not_be_found__this_might_indicate_that_game_version_is_not_supported_or_the_plugin_has_not_been_updated._n_nMK1Hook_officially_is_only_tested_with_latest_Steam_version._nCheck_log_for_more_details._n_nDo_you_want_to_try_to_run_the_game_anyway__It_might_crash_or_have_missing_features__n
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x18000192f
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.1800011a0
jmp 0x180001b66
mov rcx, qword [0x18009cc48]
xor edi, edi
mov qword [rsp + 0x40], rbp
test rcx, rcx
je 0x180001959
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x18009cc48], rdi
cmp byte [0x18009c9e1], dil
je 0x180001a11
mov rax, qword [0x18009ca28]
test rax, rax
je 0x18000197b
mov rsi, qword [rax + 0x98]
jmp 0x18000197e
mov rsi, rdi
mov rcx, qword [rsi + 0x30]
lea rbx, [rax + 8]
test rcx, rcx
je 0x180001998
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x18009ca28]
and dword [rbx + 4], 0xfffffff8
mov qword [rbx + 0x80], rdi
mov qword [rbx + 0x90], rdi
test rax, rax
je 0x1800019b5
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x18009ca28]
test rbx, rbx
je 0x1800019d3
mov rsi, qword [rbx + 0xa0]
jmp 0x1800019d6
mov rsi, rdi
call fcn.1800312c0
mov rcx, qword [rsi + 0x48]
call fcn.18006150c
mov rax, qword [0x18009ca28]
and dword [rbx + 0xc], 0xfffffff7
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0xa0], rdi
test rax, rax
je 0x180001a08
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1800acee0]
movabs rbp, 0x23ee08fb823ee09
mov r8, qword [0x1800aced8]
mov rax, rbp
sub rcx, r8
mov esi, edi
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180001aaf
mov r9, rdi
nop word [rax + rax]
imul rbx, r9, 0x1c8
add rbx, r8
mov rax, qword [rbx + 0x1b8]
test rax, rax
je 0x180001a6f
call rax
mov r8, qword [0x1800aced8]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180001a87
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx], rdi
mov r8, qword [0x1800aced8]
mov rcx, qword [0x1800acee0]
inc esi
sub rcx, r8
mov r9d, esi
mov rax, rbp
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jb 0x180001a50
mov rcx, qword [0x18009ce30]
mov rbp, qword [rsp + 0x40]
test rcx, rcx
je 0x180001aff
mov edx, dword [0x18009cc54]
test edx, edx
je 0x180001aff
mov r8d, dword [0x18009ce40]
test r8d, r8d
je 0x180001ae9
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [0x18009ce30]
mov edx, dword [0x18009cc54]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x18009ce30]
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov rbx, qword [0x18009ce48]
test rbx, rbx
je 0x180001b66
mov rdi, qword [rbx + 0x108]
test rdi, rdi
je 0x180001b32
mov rcx, qword [rdi]
test rcx, rcx
je 0x180001b25
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 8
mov rcx, rdi
call fcn.18006150c
mov rdi, qword [rbx + 0x110]
test rdi, rdi
je 0x180001b59
mov rcx, qword [rdi]
test rcx, rcx
je 0x180001b4c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 8
mov rcx, rdi
call fcn.18006150c
mov edx, 0x120
mov rcx, rbx
call fcn.18006150c
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800614b0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret