Function at 0x140001c40
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 [0x140006040]
xor rax, rsp
mov qword [rbp + 0x28], rax
xor edi, edi
lea rcx, str.Internal.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 0x140001cb4
mov r12d, edi
mov qword [rsp + 0x58], rdi
jmp 0x140001d21
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 0x140001d02
cmp dword [r12], 0x905a4d
je 0x140001d13
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 0x140001d2d
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 0x140001d4a
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.unrealwindow
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 0x140001d50
lea rcx, str.___Game_Found__ninjecting..._n
call fcn.140001010
test r13d, r13d
je 0x140002241
mov rax, qword gs:[0x58]
mov ebx, 4
add rbx, qword [rax]
mov qword [rsp + 0x50], rbx
mov eax, dword [rbx]
cmp dword [0x140006778], eax
jle 0x140001de9
lea rcx, [0x140006778]
call fcn.1400027ac
cmp dword [0x140006778], 0xffffffff
jne 0x140001de9
lea rcx, [0x1400035d0]
call fcn.140002a4c
lea rcx, [0x140006778]
call fcn.140002740
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.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001e52
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.140002490
mov rcx, rax
lea rdx, [0x140002660]
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 0x140001e58
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.140001870
test eax, eax
jne 0x140001f1e
mov eax, dword [rbx]
cmp dword [0x140006778], eax
jle 0x140001eae
lea rcx, [0x140006778]
call fcn.1400027ac
cmp dword [0x140006778], 0xffffffff
jne 0x140001eae
lea rcx, [0x1400035d0]
call fcn.140002a4c
lea rcx, [0x140006778]
call fcn.140002740
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.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001f0b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.140002490
mov rcx, rax
lea rdx, [0x140002660]
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 0x140001f12
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.140001a00
test eax, eax
jne 0x140001fde
mov eax, dword [rbx]
cmp dword [0x140006778], eax
jle 0x140001f6e
lea rcx, [0x140006778]
call fcn.1400027ac
cmp dword [0x140006778], 0xffffffff
jne 0x140001f6e
lea rcx, [0x1400035d0]
call fcn.140002a4c
lea rcx, [0x140006778]
call fcn.140002740
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.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001fcb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.140002490
mov rcx, rax
lea rdx, [0x140002660]
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 0x140001fd2
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 0x1400020c9
mov rdi, qword [rsp + 0x50]
add rbx, r14
mov r13, qword [rsp + 0x48]
mov eax, dword [rdi]
cmp dword [0x140006778], eax
jle 0x140002039
lea rcx, [0x140006778]
call fcn.1400027ac
cmp dword [0x140006778], 0xffffffff
jne 0x140002039
lea rcx, [0x1400035d0]
call fcn.140002a4c
lea rcx, [0x140006778]
call fcn.140002740
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.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400020a9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.140002490
mov rcx, rax
lea rdx, [0x140002660]
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 0x1400020b0
lea rcx, [rsp + 0x60]
call rax
inc si
add rbx, 0x28
cmp si, word [r14 + 6]
jb 0x140002002
mov r13d, dword [rsp + 0x40]
xor edi, edi
mov r8, qword [rsp + 0x48]
mov r9, r14
mov edx, r13d
mov rcx, r15
call fcn.140001470
movzx ebx, word [r14 + 0x14]
add rbx, 0x28
cmp di, word [r14 + 6]
jae 0x140002202
mov r12, qword [rsp + 0x50]
add rbx, r14
nop dword [rax + rax]
mov eax, dword [rbx]
test eax, eax
je 0x1400021eb
test dword [rbx + 0x14], 0x2000000
je 0x1400021eb
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 [0x140006778], ecx
jle 0x140002167
lea rcx, [0x140006778]
call fcn.1400027ac
cmp dword [0x140006778], 0xffffffff
jne 0x140002167
lea rcx, [0x1400035d0]
call fcn.140002a4c
lea rcx, [0x140006778]
call fcn.140002740
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.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400021d3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.140002490
mov rcx, rax
lea rdx, [0x140002660]
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 0x1400021da
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 0x140002100
mov r12, qword [rsp + 0x58]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.Internal.xyz_n
call fcn.140001010
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, [0x140002660]
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 0x14000224d
lea rcx, str.process_not_found__n
call fcn.140001010
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140002720
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