Function at 0x140016bb0
Capabilities:
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x98
mov qword [rbp - 9], 0xfffffffffffffffe
mov rax, qword [0x14006dbd0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
xor ebx, ebx
mov dword [rbp - 0x29], ebx
mov dword [rdx], ebx
mov dword [r8], ebx
mov byte [r9], bl
mov rdx, rcx
lea rcx, [rbp - 1]
call fcn.140008744
mov rdi, rax
mov dword [rbp - 0x29], 1
lea rcx, [rbp - 1]
call fcn.140016a84
cmp qword [rdi + 0x18], 8
jb 0x140016c1a
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140016c68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
call fcn.140002984
cmp rdi, 0xffffffffffffffff
jne 0x140016c75
xor al, al
jmp 0x140016e54
mov ecx, 0x18
call fcn.140032bb8
mov rcx, rax
mov qword [rbp - 0x29], rax
lea rax, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64___void____ptr64____ptr64__.0
mov qword [rcx], rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdi
mov qword [rbp - 0x11], rcx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140016e49
mov ecx, 0x18
call fcn.140032bb8
mov rcx, rax
mov qword [rbp - 0x29], rax
lea rax, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64___void____ptr64____ptr64__.0
mov qword [rcx], rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdi
mov qword [rbp - 0x19], rcx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140016e3f
mov ecx, 0x18
call fcn.140032bb8
mov rcx, rax
mov qword [rbp - 0x29], rax
lea rax, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__int____cdecl___void_const____ptr64___void____ptr64____ptr64__.0
mov qword [rcx], rax
mov rax, qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdi
mov qword [rbp - 0x21], rcx
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140016e35
movsxd rdx, dword [rdi + 0x3c]
add rdx, rdi
cmp dword [rdx], 0x4550
je 0x140016d7e
mov dword [rsi], 1
jmp 0x140016e33
mov eax, 0x14c
cmp word [rdx + 4], ax
je 0x140016da3
mov eax, 0x8664
cmp word [rdx + 4], ax
jne 0x140016e35
mov dword [rsi], 3
jmp 0x140016e2c
mov dword [rsi], 2
mov eax, dword [rdx + 0xec]
test eax, eax
je 0x140016e2c
mov r8d, dword [rdx + 0xe8]
test r8d, r8d
je 0x140016e2c
cmp eax, 0x48
jne 0x140016e2c
movzx eax, word [rdx + 0x14]
lea r9, [rdx + 0x18]
add r9, rax
mov r10d, ebx
movzx r11d, word [rdx + 6]
test r11d, r11d
je 0x140016dfa
mov ecx, dword [r9 + 0xc]
cmp r8d, ecx
jb 0x140016dee
add ecx, dword [r9 + 0x10]
cmp r8d, ecx
jb 0x140016dfa
inc r10d
add r9, 0x28
cmp r10d, r11d
jb 0x140016ddc
cmp r11d, r10d
je 0x140016e2c
sub r8d, dword [r9 + 0xc]
mov eax, r8d
mov ecx, dword [r9 + 0x14]
add rax, rdi
add rcx, rax
cmp dword [rcx], 0x48
jne 0x140016e2c
test rcx, rcx
je 0x140016e2c
mov eax, dword [rcx + 0x10]
and al, 3
cmp al, 1
jne 0x140016e2c
mov dword [rsi], 3
mov byte [r15], al
movzx eax, word [rdx + 0x5c]
mov dword [r14], eax
mov bl, 1
lea rcx, [rbp - 0x21]
call fcn.140012da4
nop
lea rcx, [rbp - 0x19]
call fcn.140012da4
nop
lea rcx, [rbp - 0x11]
call fcn.140012da4
mov al, bl
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140032b90
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret