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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x78], 0
mov r8d, 0x40
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xf0]
call fcn.180001340
test eax, eax
jne 0x1800020a3
xor eax, eax
jmp 0x180002641
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800020d1
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002641
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
add rax, 0x108
mov r8, rax
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xf0]
call fcn.180001340
test eax, eax
jne 0x180002103
xor eax, eax
jmp 0x180002641
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xf8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x18000213e
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002641
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x8664
je 0x180002160
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002641
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x38]
and eax, 1
test eax, eax
je 0x180002181
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002641
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x38]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x48], 0
jmp 0x1800021cb
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x48], eax
jae 0x18000222b
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jne 0x1800021fc
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
add rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
jmp 0x180002213
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 + 0x70], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x70], rax
jbe 0x180002229
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
jmp 0x1800021b3
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x50]
mov ecx, dword [rsp + 0xac]
lea eax, [rax + rcx - 1]
mov ecx, dword [rsp + 0xac]
dec ecx
not ecx
and eax, ecx
mov eax, eax
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0xac]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + rax - 1]
mov ecx, dword [rsp + 0xac]
dec ecx
not ecx
mov ecx, ecx
and rax, rcx
cmp qword [rsp + 0x80], rax
je 0x1800022a0
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002641
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18000230b
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18000230b
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002641
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x58
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180002357
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002641
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x180002381
mov dword [rsp + 0x58], 1
jmp 0x180002389
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x108]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x110]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x118]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x120]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0xac]
mov dword [rax + 0x50], ecx
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xf0]
call fcn.180001340
test eax, eax
jne 0x180002416
jmp 0x18000262d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
call fcn.180001120
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x88]
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 + 0x40]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.180001380
test eax, eax
jne 0x1800024c6
jmp 0x18000262d
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rax + 0x30]
sub rax, rcx
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x180002515
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.180001ab0
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x24], eax
jmp 0x180002521
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x24], 1
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.180001c80
test eax, eax
jne 0x180002541
jmp 0x18000262d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.180001790
test eax, eax
jne 0x180002561
jmp 0x18000262d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800019f0
test eax, eax
jne 0x180002581
jmp 0x18000262d
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
cmp dword [rax + 0x28], 0
je 0x180002619
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x20], 0
je 0x1800025f8
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0xa0]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1800025ea
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18000262d
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x1c], 1
jmp 0x180002617
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x48], rax
jmp 0x180002626
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x48], 0
mov rax, qword [rsp + 0x30]
jmp 0x180002641
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800028e0
xor eax, eax
add rsp, 0xe8
ret