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, 0x1a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf8], 0xfffffffffffffffe
mov qword [rbp + 0xe8], 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 - 0x38], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x38]
mov qword [rbp + 0x20], rax
lea rax, str._info__Searching_for_Spel2.exe_process..._n
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 0x2a
lea rcx, [rbp + 0x28]
lea rdx, [rbp + 0x18]
call fcn.1400192b0
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 - 0x48], 0
mov qword [rbp - 8], 0
lea rax, [rbp - 0x48]
mov qword [rbp], rax
lea rax, str._info__Start_your_game_or_press_ENTER_to_launch_.._Spel2.exe__n
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0x3e
lea rcx, [rbp + 8]
lea rdx, [rbp - 8]
call fcn.1400192b0
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 + 0x60]
mov qword [rbp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0xf
movabs r15, 0x78652e326c657053
lea rdi, [rbp + 0xa0]
lea rbx, [rbp + 0x38]
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 + 0xa0], rcx
mov rcx, rdi
call fcn.140011130
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 9
mov qword [rbp + 0x50], 0xf
mov qword [rbp + 0x38], r15
mov byte [rbp + 0x40], 0x65
mov rcx, rdi
mov rdx, rbx
call fcn.140013da0
movzx eax, byte [rbp + 0xd0]
mov byte [rbp + 0xf7], 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 0x1400044cc
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 + 0xa0]
mov rdi, qword [rbp + 0xb8]
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0xc0], 0x10
jb 0x1400041bf
mov r9, qword [rbp + 0xa8]
mov rax, qword [rbp + 0x78]
cmp rax, rdi
jb 0x1400041cf
cmp rax, 0x10
jb 0x1400041a0
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x70], rdi
mov rsi, qword [rbp + 0x88]
mov rcx, rsi
mov rdx, r9
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rdi], 0
jmp 0x1400041db
lea r9, [rbp + 0xa8]
mov rax, qword [rbp + 0x78]
cmp rax, rdi
jae 0x14000418f
lea rcx, [rbp + 0x60]
mov rdx, rdi
call fcn.14000d070
mov eax, dword [rbp + 0xc8]
mov dword [rbp + 0x80], eax
cmp byte [rbp + 0xd0], 0
je 0x140004235
mov rax, qword [rbp + 0xc0]
cmp rax, 0x10
jb 0x140004235
mov rcx, qword [rbp + 0xa8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140004230
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14000459f
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400318f8
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 + 0x80]
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x28], 2
lea rax, [rbp - 0x58]
mov qword [rbp - 0x20], rax
lea rax, str._info__Found_Spel2.exe_PID:__n
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0x1f
lea rcx, [rbp - 0x18]
lea rdx, [rbp - 0x28]
call fcn.1400192b0
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 qword [rbp + 0xa8], 0
mov qword [rbp + 0xb0], 0xd
mov qword [rbp + 0xb8], 0xf
movabs rax, 0x6b6e756c7265764f
mov qword [rbp + 0xa0], rax
movabs rax, 0x6c6c642e796b6e75
mov qword [rbp + 0xa5], rax
mov ecx, dword [rbp + 0x80]
lea rsi, [rbp + 0xa0]
mov rdx, rsi
call fcn.140012ee0
mov ebx, eax
mov rax, qword [rbp + 0xb8]
cmp rax, 0x10
jb 0x140004342
mov rcx, qword [rbp + 0xa0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14000433d
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140004599
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400318f8
test bl, bl
je 0x1400043bb
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 + 0xa0], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], rsi
lea rax, str._info__Already_injected__lets_not_do_that_again._If_you_want_to_inject_multiple_game_processes__use_the___launch_game_parameter._n
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0x82
lea rcx, [rbp + 0x90]
lea rdx, [rbp + 0xd8]
call fcn.1400192b0
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]
jmp 0x1400044cc
mov rcx, qword [rbp + 0xe8]
mov rax, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x1400043d7
mov rcx, qword [rbp + 0xe8]
mov rcx, qword [rcx]
mov qword [rbp + 0xd8], rcx
mov qword [rbp + 0xe0], rax
call fcn.140032108
lea rcx, [rbp + 0xa0]
lea r8, [rbp + 0xd8]
lea r9, [rbp + 0x90]
mov edx, eax
call fcn.14000ec10
lea rcx, [rbp + 0x58]
mov rdx, rsi
call fcn.1400131a0
mov rax, qword [rbp + 0xb8]
cmp rax, 0x10
jb 0x140004457
mov rcx, qword [rbp + 0xa0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140004452
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400045a5
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400318f8
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 + 0xa0], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], rsi
lea rax, str._info__DLL_injected_n
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0x14
lea rcx, [rbp + 0x90]
lea rdx, [rbp + 0xd8]
call fcn.1400192b0
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 + 0x78]
cmp rax, 0x10
jb 0x14000450b
mov rcx, qword [rbp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140004506
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14000458d
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400318f8
mov rcx, qword [rbp + 0xe8]
mov rax, qword [rcx + 0x18]
cmp rax, 8
jb 0x14000455a
mov rcx, qword [rcx]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14000454e
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140004593
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400318f8
mov rcx, qword [rbp + 0xe8]
cmp byte [rbp + 0xf7], 0
sete al
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 7
mov word [rcx], 0
add rsp, 0x1a8
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]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3