Function at 0x140001c20
Capabilities:
Access pe header
Get file size
Link many functions at runtime
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x28], rax
xor edi, edi
lea rcx, str.C:WindowsTasks_vcfi.dll
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001c94
mov r12d, edi
mov qword [rsp + 0x58], rdi
jmp 0x140001d01
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov rdx, rax
mov qword [rsp + 0x58], rax
mov r8d, ebx
mov rcx, rsi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001ce2
cmp dword [r12], 0x905a4d
je 0x140001cf3
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
jne 0x140001d0d
lea rcx, str.invalid_dll_n
call fcn.140001010
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r14, rax
test rax, rax
jne 0x140001d2a
lea rcx, str.pe:_invalid_pe_header_n
call fcn.140001010
mov dword [rbp + 0x20], edi
nop dword [rax]
xor edx, edx
lea rcx, str.R6Game
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0x14
mov dword [rsp + 0x40], eax
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r15d, dword [rbp + 0x20]
test r15d, r15d
je 0x140001d30
lea rcx, str.injecting..._n
call fcn.140001010
test r13d, r13d
je 0x1400021fe
mov rax, qword gs:[0x58]
mov ebx, 4
add rbx, qword [rax]
mov qword [rsp + 0x50], rbx
mov eax, dword [rbx]
cmp dword [0x140006708], eax
jle 0x140001dc9
lea rcx, [0x140006708]
call fcn.14000256c
cmp dword [0x140006708], 0xffffffff
jne 0x140001dc9
lea rcx, [0x1400033a0]
call fcn.14000281c
lea rcx, [0x140006708]
call fcn.140002500
mov eax, dword [r14 + 0x50]
lea rcx, str.win32u.dll
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x40], 4
mov dword [rbp - 0x20], r15d
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x38], rdi
mov dword [rbp], 0x40
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtUserGetDisplayAutoRotationPreferencesByProcessId
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001e2b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002270
mov rcx, rax
lea rdx, [0x140002420]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001e31
lea rcx, [rbp - 0x40]
call rax
mov rsi, qword [rbp - 8]
mov r8, r14
mov rcx, rsi
mov qword [rsp + 0x48], rsi
mov rdx, r12
call fcn.140001850
test eax, eax
jne 0x140001ef0
mov eax, dword [rbx]
cmp dword [0x140006708], eax
jle 0x140001e87
lea rcx, [0x140006708]
call fcn.14000256c
cmp dword [0x140006708], 0xffffffff
jne 0x140001e87
lea rcx, [0x1400033a0]
call fcn.14000281c
lea rcx, [0x140006708]
call fcn.140002500
lea rcx, str.win32u.dll
mov dword [rsp + 0x60], 5
mov dword [rbp - 0x80], r15d
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtUserGetDisplayAutoRotationPreferencesByProcessId
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001edd
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002270
mov rcx, rax
lea rdx, [0x140002420]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001ee4
lea rcx, [rsp + 0x60]
call rax
lea rcx, str.reloc_failed_n
call fcn.140001010
mov rcx, r15
mov r9, r14
mov r8, r12
mov edx, r13d
call fcn.1400019e0
test eax, eax
jne 0x140001fa9
mov eax, dword [rbx]
cmp dword [0x140006708], eax
jle 0x140001f40
lea rcx, [0x140006708]
call fcn.14000256c
cmp dword [0x140006708], 0xffffffff
jne 0x140001f40
lea rcx, [0x1400033a0]
call fcn.14000281c
lea rcx, [0x140006708]
call fcn.140002500
lea rcx, str.win32u.dll
mov dword [rsp + 0x60], 5
mov dword [rbp - 0x80], r15d
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtUserGetDisplayAutoRotationPreferencesByProcessId
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001f96
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002270
mov rcx, rax
lea rdx, [0x140002420]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001f9d
lea rcx, [rsp + 0x60]
call rax
lea rcx, str.import_failed_n
call fcn.140001010
movzx ebx, word [r14 + 0x14]
movzx esi, di
add rbx, 0x2c
cmp di, word [r14 + 6]
jae 0x140002090
mov rdi, qword [rsp + 0x50]
add rbx, r14
mov r13, qword [rsp + 0x48]
nop dword [rax]
mov eax, dword [rdi]
cmp dword [0x140006708], eax
jle 0x140002007
lea rcx, [0x140006708]
call fcn.14000256c
cmp dword [0x140006708], 0xffffffff
jne 0x140002007
lea rcx, [0x1400033a0]
call fcn.14000281c
lea rcx, [0x140006708]
call fcn.140002500
mov eax, dword [rbx - 8]
lea rcx, str.win32u.dll
add rax, r13
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x70], rax
mov eax, dword [rbx]
add rax, r12
mov dword [rbp - 0x80], r15d
mov qword [rsp + 0x68], rax
mov eax, dword [rbx - 4]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtUserGetDisplayAutoRotationPreferencesByProcessId
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002070
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002270
mov rcx, rax
lea rdx, [0x140002420]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140002077
lea rcx, [rsp + 0x60]
call rax
inc si
add rbx, 0x28
cmp si, word [r14 + 6]
jb 0x140001fd0
mov r13d, dword [rsp + 0x40]
xor edi, edi
lea rcx, str.injecting..._almost_done_n
call fcn.140001010
mov r8, qword [rsp + 0x48]
mov r9, r14
mov edx, r13d
mov rcx, r15
call fcn.140001460
movzx ebx, word [r14 + 0x14]
add rbx, 0x28
cmp di, word [r14 + 6]
jae 0x1400021cb
mov r12, qword [rsp + 0x50]
add rbx, r14
nop dword [rax + rax]
mov eax, dword [rbx]
test eax, eax
je 0x1400021b4
test dword [rbx + 0x14], 0x2000000
je 0x1400021b4
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [r12]
mov rsi, rax
cmp dword [0x140006708], ecx
jle 0x140002137
lea rcx, [0x140006708]
call fcn.14000256c
cmp dword [0x140006708], 0xffffffff
jne 0x140002137
lea rcx, [0x1400033a0]
call fcn.14000281c
lea rcx, [0x140006708]
call fcn.140002500
mov eax, dword [rbx - 4]
lea rcx, str.win32u.dll
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov eax, dword [rbx]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x60], 1
mov dword [rbp - 0x80], r15d
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtUserGetDisplayAutoRotationPreferencesByProcessId
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000219c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002270
mov rcx, rax
lea rdx, [0x140002420]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400021a3
lea rcx, [rsp + 0x60]
call rax
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc di
add rbx, 0x28
cmp di, word [r14 + 6]
jb 0x1400020d0
mov r12, qword [rsp + 0x58]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.inject_success__n
call fcn.140001010
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140002420]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14000220a
lea rcx, str.process_not_found__n
call fcn.140001010
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400024e0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret