Function at 0x140003f40
Capabilities:
Set console window title

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], 0xfffffffffffffffe
mov qword [rbp + 0xe0], rcx
lea rcx, str.Overlunky__Start_your_game_or_press_ENTER_to_launch_.._Spel2.exe_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov dword [rbp - 0x40], 0
mov qword [rbp + 0x10], 0
lea rax, [rbp - 0x40]
mov qword [rbp + 0x18], rax
lea rax, str._info__Searching_for_Spel2.exe_process..._n
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 0x2a
lea rcx, [rbp + 0x20]
lea rdx, [rbp + 0x10]
call fcn.140018b70
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov dword [rbp - 0x50], 0
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x50]
mov qword [rbp - 8], rax
lea rax, str._info__Start_your_game_or_press_ENTER_to_launch_.._Spel2.exe__n
mov qword [rbp], rax
mov qword [rbp + 8], 0x3e
mov rcx, rbp
lea rdx, [rbp - 0x10]
call fcn.140018b70
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rax, [rbp + 0x68]
mov qword [rbp + 0xd8], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 0xf
movabs r15, 0x78652e326c657053
lea rdi, [rbp + 0x90]
lea rbx, [rbp + 0x30]
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__kbhit]
movabs r13, 0x7ffffffff4143dff
movabs rsi, 0x7fffffffffffffff
jmp 0x1400040b1
imul rax, rax, 0x64
lea rcx, [rax + 0xbebc200]
cmp rax, r13
cmovge rcx, rsi
mov qword [rbp + 0x90], rcx
mov rcx, rdi
call fcn.140010cb0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 9
mov qword [rbp + 0x48], 0xf
mov qword [rbp + 0x30], r15
mov byte [rbp + 0x38], 0x65
mov rcx, rdi
mov rdx, rbx
call fcn.140013660
movzx eax, byte [rbp + 0xc0]
mov byte [rbp + 0xef], al
test al, al
jne 0x140004163
call r12
test eax, eax
je 0x140004103
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getche]
cmp eax, 0xd
je 0x1400043b1
call sub.MSVCP140.dll__Query_perf_frequency
mov r14, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp r14, 0x989680
je 0x140004090
mov rcx, rax
or rcx, r14
shr rcx, 0x20
je 0x140004130
cqo
idiv r14
jmp 0x140004135
xor edx, edx
div r14d
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, r14
or rdx, rax
shr rdx, 0x20
je 0x140004156
cqo
idiv r14
jmp 0x14000415b
xor edx, edx
div r14d
add rax, rcx
jmp 0x140004094
mov rax, qword [rbp + 0x90]
mov rdi, qword [rbp + 0xa8]
mov qword [rbp + 0x60], rax
cmp qword [rbp + 0xb0], 0x10
jb 0x1400041c2
mov r9, qword [rbp + 0x98]
mov rax, qword [rbp + 0x80]
cmp rax, rdi
jb 0x1400041d5
cmp rax, 0x10
jb 0x1400041a3
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0x78], rdi
mov rsi, qword [rbp + 0xd8]
mov rcx, rsi
mov rdx, r9
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rdi], 0
jmp 0x1400041e1
lea r9, [rbp + 0x98]
mov rax, qword [rbp + 0x80]
cmp rax, rdi
jae 0x140004192
lea rcx, [rbp + 0x68]
mov rdx, rdi
call fcn.14000cbf0
mov eax, dword [rbp + 0xb8]
mov dword [rbp + 0x88], eax
cmp byte [rbp + 0xc0], 0
je 0x14000423b
mov rax, qword [rbp + 0xb0]
cmp rax, 0x10
jb 0x14000423b
mov rcx, qword [rbp + 0x98]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140004236
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140004480
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400311b8
lea rcx, str.Overlunky
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [rbp + 0x88]
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x30], 2
lea rax, [rbp - 0x60]
mov qword [rbp - 0x28], rax
lea rax, str._info__Found_Spel2.exe_PID:__n
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0x1f
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x30]
call fcn.140018b70
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
mov rcx, rdx
jb 0x1400042c1
mov rcx, qword [rdx]
mov qword [rbp + 0xc8], rcx
mov qword [rbp + 0xd0], rax
call fcn.1400319c8
lea rcx, [rbp + 0x90]
lea r8, [rbp + 0xc8]
lea r9, [rbp + 0x50]
mov edx, eax
call fcn.14000e790
lea rcx, [rbp + 0x60]
lea rsi, [rbp + 0x90]
mov rdx, rsi
call fcn.140012a60
mov rax, qword [rbp + 0xa8]
cmp rax, 0x10
jb 0x140004345
mov rcx, qword [rbp + 0x90]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140004340
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14000447a
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400311b8
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov dword [rbp + 0x90], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xd0], rsi
lea rax, str._info__DLL_injected_n
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 0x14
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0xc8]
call fcn.140018b70
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
call fcn.140003c40
mov rax, qword [rbp + 0x80]
cmp rax, 0x10
mov rsi, qword [rbp + 0xe0]
jb 0x1400043fa
mov rcx, qword [rbp + 0x68]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400043f5
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14000446e
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400311b8
mov rax, qword [rsi + 0x18]
cmp rax, 8
jb 0x14000443b
mov rcx, qword [rsi]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140004436
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140004474
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400311b8
cmp byte [rbp + 0xef], 0
sete al
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 7
mov word [rsi], 0
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3