Function at 0x14002a7f0
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x38], 0
mov ecx, 0x1000
call fcn.14004d1f8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14002a831
xor eax, eax
jmp 0x14002aa96
mov dword [rsp + 0x3c], 0x1000
xor eax, eax
cmp eax, 1
je 0x14002aa65
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002a87b
jmp 0x14002aa65
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x14002a8b7
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x14002a8bc
jmp 0x14002aa65
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14002a97e
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x3c]
cmp dword [rcx + 0x54], eax
jbe 0x14002a954
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x100000
jbe 0x14002a914
jmp 0x14002aa65
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.14004e79c
mov ecx, dword [rsp + 0x3c]
call fcn.14004d1f8
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14002a94f
xor eax, eax
jmp 0x14002aa96
jmp 0x14002a839
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 6]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x60]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 0x60]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x14002aa18
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x3c]
cmp dword [rcx + 0x54], eax
jbe 0x14002a9f3
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x100000
jbe 0x14002a9a7
jmp 0x14002aa65
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.14004e79c
mov ecx, dword [rsp + 0x3c]
call fcn.14004d1f8
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14002a9ee
xor eax, eax
jmp 0x14002aa96
jmp 0x14002a839
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x58]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 0x58]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14002aa5e
mov eax, dword [rsp + 0x50]
sub eax, 1
mov ecx, eax
imul rcx, rcx, 0x28
mov eax, dword [rsp + 0x50]
sub eax, 1
mov edx, eax
imul rdx, rdx, 0x28
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + rcx + 0x14]
mov rax, qword [rsp + 0x40]
add ecx, dword [rax + rdx + 0x10]
mov rax, qword [rsp + 0xb8]
mov dword [rax], ecx
mov dword [rsp + 0x38], 1
jmp 0x14002aa65
jmp 0x14002aa6f
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14004e79c
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x38]
add rsp, 0xa8
ret