Function at 0x140077a80
Capabilities:
Enumerate pe sections
Inspect section memory permissions
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [0x140111080]
xor rax, rsp
mov qword [rsp + 0x268], rax
mov dword [rsp + 0xf8], 0
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x24
lea rdx, str.internal.dll
lea rcx, [rsp + 0x140]
call fcn.140089050
nop
mov rax, qword [rsp + 0x140]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x140]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x90]
and eax, 6
test eax, eax
je 0x140077b26
mov byte [rsp + 0x43], 1
jmp 0x140077b2b
mov byte [rsp + 0x43], 0
movzx eax, byte [rsp + 0x43]
mov byte [rsp + 0x47], al
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x140077b93
lea rdx, str._n_____Failed_to_find_internal.dll_locally
lea rcx, [0x1401133c0]
call fcn.140092e30
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x49], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140089870
movzx eax, byte [rsp + 0x49]
jmp 0x1400784f5
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x140]
call fcn.140089230
mov rax, qword [rsp + 0x250]
add rax, qword [rsp + 0x258]
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x108], 0
jg 0x140077c18
lea rdx, str._n____Invalid_file_size
lea rcx, [0x1401133c0]
call fcn.140092e30
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x4a], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140089870
movzx eax, byte [rsp + 0x4a]
jmp 0x1400784f5
mov rax, qword [rsp + 0x250]
add rax, qword [rsp + 0x258]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call fcn.1400c3234
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x80], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x140]
call fcn.1400893b0
mov rax, qword [rsp + 0x250]
add rax, qword [rsp + 0x258]
mov qword [rsp + 0x120], rax
mov r8, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x140]
call fcn.140089650
lea rcx, [rsp + 0x140]
call fcn.140088ef0
lea rcx, str._n____Manual_mapping_internal.dll_into_FortniteClient_Win64_Shipping.exe_n
call fcn.14006f470
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140077d4f
lea rcx, str.____Failed_to_retrieve_DOS_Header
call fcn.14006f470
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x4b], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0xa0]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0xa0]
call fcn.1400a1ff0
nop
movzx eax, byte [rsp + 0x4b]
jmp 0x1400784f5
mov rax, qword [rsp + 0xa8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x140077df3
lea rcx, str.____Failed_to_retrieve_NT_Headers
call fcn.14006f470
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x4c], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x88]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0x88]
call fcn.1400a1ff0
nop
movzx eax, byte [rsp + 0x4c]
jmp 0x1400784f5
mov rax, qword [rsp + 0x58]
mov r9d, dword [rax + 0x50]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x58]
lea rcx, str._i__TestInternal:_NT:__p__DOS:__p__Size:__d_n
call fcn.14006f470
call fcn.140076b30
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x140077ea5
lea rcx, str.____Failed_to_retrieve_ProcessPeb
call fcn.14006f470
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x4d], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0xb0]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0xb0]
call fcn.1400a1ff0
nop
movzx eax, byte [rsp + 0x4d]
jmp 0x1400784f5
lea rdx, str.FortniteClient_Win64_Shipping.exe
mov rcx, qword [rsp + 0xc8]
call fcn.140077110
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x140077f44
lea rcx, str.____Failed_to_retrieve_TargetBaseAddress
call fcn.14006f470
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x4e], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0xb8]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0xb8]
call fcn.1400a1ff0
nop
movzx eax, byte [rsp + 0x4e]
jmp 0x1400784f5
mov rdx, qword [rsp + 0xc0]
lea rcx, str.___TargetBaseAddress:__p_n
call fcn.14006f470
mov rcx, qword [rsp + 0xc0]
call fcn.140077060
mov qword [0x140114f88], rax
cmp qword [0x140114f88], 0
jne 0x140077f8d
lea rcx, str.cr3_failed
call fcn.14006f470
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [0x140114f88]
lea rcx, str.___cr3:__p_n
call fcn.14006f470
mov rdx, qword [rsp + 0xc8]
lea rcx, str.___Found_PEB:__p__p_n
call fcn.14006f470
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x50]
add rax, 0x74
mov qword [rsp + 0xf0], rax
mov r8d, 4
mov edx, 0x3000
mov rcx, qword [rsp + 0xf0]
call fcn.140076da0
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x78]
lea rcx, str._____p__Allocated__d_bytes_with_flag_s___d_and_allocation_protect__d_n
call fcn.14006f470
lea rcx, str.pause
call fcn.1400cda7c
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call fcn.140077630
movzx eax, al
test eax, eax
jne 0x1400780a9
lea rcx, str.____Failed_to_find_resolve_imports
call fcn.14006f470
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x4f], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0xd0]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0xd0]
call fcn.1400a1ff0
nop
movzx eax, byte [rsp + 0x4f]
jmp 0x1400784f5
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.140077490
movzx eax, al
test eax, eax
jne 0x14007813f
lea rcx, str.____Failed_to_find_relocate_image
call fcn.14006f470
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0xd8]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0xd8]
call fcn.1400a1ff0
nop
movzx eax, byte [rsp + 0x50]
jmp 0x1400784f5
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.1400777f0
movzx eax, al
test eax, eax
jne 0x1400781d5
lea rcx, str.____Failed_to_find_write_sections
call fcn.14006f470
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x51], 0
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0xe0]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0xe0]
call fcn.1400a1ff0
nop
movzx eax, byte [rsp + 0x51]
jmp 0x1400784f5
lea rcx, str.___Imports_fixed__Image_relocated_and_sections_written__n
call fcn.14006f470
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x64], 0
jmp 0x140078210
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x64], eax
jge 0x1400783f7
movsxd rax, dword [rsp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140078249
jmp 0x140078206
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x14007825e
jmp 0x140078206
mov eax, dword [rsp + 0x60]
and eax, 0x2000000
test eax, eax
je 0x1400782a0
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x10], 0
je 0x1400782a0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x78]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
xor edx, edx
call fcn.140076cc0
jmp 0x140078206
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x68], 2
mov eax, dword [rsp + 0x60]
and eax, 0x40000000
test eax, eax
je 0x1400782cb
mov byte [rsp + 0x44], 1
jmp 0x1400782d0
mov byte [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x40], al
mov eax, dword [rsp + 0x60]
and eax, 0x80000000
test eax, eax
je 0x1400782ed
mov byte [rsp + 0x45], 1
jmp 0x1400782f2
mov byte [rsp + 0x45], 0
movzx eax, byte [rsp + 0x45]
mov byte [rsp + 0x42], al
mov eax, dword [rsp + 0x60]
and eax, 0x20000000
test eax, eax
je 0x14007830f
mov byte [rsp + 0x46], 1
jmp 0x140078314
mov byte [rsp + 0x46], 0
movzx eax, byte [rsp + 0x46]
mov byte [rsp + 0x41], al
movzx eax, byte [rsp + 0x41]
movzx ecx, byte [rsp + 0x42]
movzx edx, byte [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov rax, qword [rsp + 0x70]
mov r9d, dword [rax + 0xc]
mov r8, rdi
mov edx, dword [rsp + 0x64]
lea rcx, str.__d___s___p:_R:__d_W:__d_X:__d
call fcn.14006f470
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x14007837e
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x14007837e
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x14007837e
mov dword [rsp + 0x68], 0x20
jmp 0x1400783b4
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x14007839a
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x14007839a
mov dword [rsp + 0x68], 0x20
jmp 0x1400783b4
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x1400783b4
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x1400783b4
mov dword [rsp + 0x68], 4
movsxd rax, dword [rsp + 0x68]
movsxd rcx, dword [rsp + 0x94]
mov rdx, qword [rsp + 0x70]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x78]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x130], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x130]
mov rcx, rax
call fcn.140076f70
jmp 0x140078206
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x98], eax
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x78]
lea rcx, str._n___EntryAddress:__p___p_n
call fcn.14006f470
mov ecx, dword [0x140114f90]
call fcn.140076a30
mov dword [rsp + 0x9c], eax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x9c]
call fcn.1400778e0
mov rdx, qword [rsp + 0x78]
lea rcx, str._n___Freed_MEMORY__p__in_target_process_n
call fcn.14006f470
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x80]
lea rcx, str._n___Freed_MEMORY__p__locally_n
call fcn.14006f470
lea rcx, str._n___Done
call fcn.14006f470
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rsp + 0x52], 1
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.140088f80
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0xe8]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0xe8]
call fcn.1400a1ff0
nop
movzx eax, byte [rsp + 0x52]
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.1400c2e70
add rsp, 0x270
pop rdi
ret