Function at 0x180078b38
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180078b66
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800f115f
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
add rax, 0x108
mov rdx, rax
mov rcx, qword [rsp + 0x108]
call 0x1800f2025
test eax, eax
jne 0x180078b90
xor eax, eax
jmp 0x1800f1189
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x180078bcb
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800f11c4
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 4]
cmp eax, 0x8664
je 0x180078bed
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800f11e6
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x38]
and eax, 1
test eax, eax
je 0x180078c0e
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800f1207
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x38]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x48], 0
jmp 0x180078c58
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x48], eax
jae 0x180078ccd
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jne 0x180078c8c
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
add rax, qword [rsp + 0xa8]
mov qword [rsp + 0x88], rax
jmp 0x180078ca6
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx + 0x10]
mov eax, eax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x88], rax
jbe 0x180078cc8
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
jmp 0x1800f0d0d
lea rcx, [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0xbc]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x50]
mov edx, eax
call 0x1800f2281
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0xbc]
mov edx, eax
mov rcx, qword [rsp + 0x90]
call 0x1800f229c
cmp qword [rsp + 0x68], rax
je 0x180078d25
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800f131e
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x30]
call qword [rsp + 0x110]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180078da6
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [rsp + 0x110]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180078da6
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800f139f
mov rax, qword [rsp + 0x38]
shr rax, 0x20
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
shr rcx, 0x20
cmp rax, rcx
jae 0x180078eb5
mov ecx, 0x10
call 0x1800cfb66
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x180078e2b
mov r9, qword [rsp + 0x138]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x118]
mov r8, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x58]
call 0x1800f22f9
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800f1424
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [rsp + 0x110]
mov qword [rsp + 0x38], rax
call qword [0x18008d2b8]
mov r8d, 0x78
mov edx, 8
mov rcx, rax
call qword [0x18008d2d8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180078f24
mov r9, qword [rsp + 0x138]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x118]
mov r8, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x58]
call 0x1800f23f2
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800f151d
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x180078f4e
mov dword [rsp + 0x60], 1
jmp 0x180078f56
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x110]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x118]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x120]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x128]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x130]
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x138]
mov qword [rax + 0x58], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0xbc]
mov dword [rax + 0x68], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x54]
mov edx, eax
mov rcx, qword [rsp + 0x108]
call 0x1800f249c
test eax, eax
jne 0x180079005
jmp 0x1800f15f2
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x54]
mov rcx, qword [rsp + 0x138]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
call 0x1800c18b9
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x30], rcx
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call 0x1800f2318
test eax, eax
jne 0x1800790b1
jmp 0x1800f169e
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rax + 0x30]
sub rax, rcx
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1800790f8
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x24], 1