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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov r13, rdx
mov r12, rcx
xor edx, edx
mov ebx, edx
mov edi, edx
cmp r13, 0x40
jb 0x140002a40
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002f24
movsxd rax, dword [rcx + 0x3c]
add rax, 0x108
cmp r13, rax
jae 0x140002a52
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002c54
movsxd r15, dword [rcx + 0x3c]
add r15, r12
cmp dword [r15], 0x4550
jne 0x140002f24
mov eax, 0x8664
cmp word [r15 + 4], ax
jne 0x140002f24
mov eax, dword [r15 + 0x38]
test al, 1
jne 0x140002f24
movzx ecx, word [r15 + 0x14]
mov r9d, eax
movzx eax, word [r15 + 6]
add rcx, 0x24
cmp dx, ax
jae 0x140002ac5
add rcx, r15
mov r8d, eax
nop
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x140002aaf
lea rax, [r9 + rdx]
jmp 0x140002ab1
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x140002aa0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x24]
mov eax, dword [r15 + 0x50]
lea rbp, [rdx - 1]
add rbp, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rbx
and rbp, rcx
and rax, rcx
cmp rbp, rax
jne 0x140002f24
mov rcx, qword [r15 + 0x30]
mov r9d, 4
mov qword [rsp + 0x88], r14
mov r8d, 0x3000
mov rdx, rbp
mov qword [rsp + 0x80], rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
jne 0x140002b4e
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x140002c37
movabs rbx, 0xffffffff00000000
lea rcx, [r14 + rbp]
mov rax, r14
and rcx, rbx
and rax, rbx
cmp rax, rcx
jae 0x140002bc2
nop word [rax + rax]
mov ecx, 0x10
call fcn.14000f538
mov rsi, rax
test rax, rax
je 0x140002c9a
mov qword [rax], rdi
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], r14
mov rdx, rbp
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x140002c69
lea rcx, [rax + rbp]
and rax, rbx
and rcx, rbx
cmp rax, rcx
jb 0x140002b70
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x140002cec
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rdi, rdi
je 0x140002c37
mov rsi, qword [rsp + 0xb8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
mov r9, rsi
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.14000f43c
mov rdi, rbx
test rbx, rbx
jne 0x140002c10
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov rdi, qword [rsp + 0xb8]
mov rcx, qword [rsi + 8]
mov r9, rdi
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.14000f43c
mov rsi, rbx
test rbx, rbx
jne 0x140002c71
jmp 0x140002c37
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rdi, rdi
je 0x140002c37
mov rsi, qword [rsp + 0xb8]
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
mov r9, rsi
xor edx, edx
mov r8d, 0x8000
call sub.KERNEL32.dll_VirtualFree
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.14000f43c
mov rdi, rbx
test rbx, rbx
jne 0x140002cc0
jmp 0x140002c37
mov qword [rax + 8], r14
movzx eax, word [r15 + 0x16]
shr eax, 0xd
and eax, 1
mov dword [rsi + 0x20], eax
lea rax, [0x1400029e0]
mov qword [rsi + 0x28], rax
lea rax, [sub.KERNEL32.dll_VirtualFree]
mov qword [rsi + 0x30], rax
lea rax, [fcn.1400032b0]
mov qword [rsi + 0x38], rax
lea rax, [0x140003290]
mov qword [rsi + 0x40], rax
lea rax, [0x1400032a0]
mov qword [rsi + 0x48], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsi + 0x58], rax
mov eax, dword [rsp + 0x24]
mov dword [rsi + 0x68], eax
mov qword [rsi + 0x70], rdi
mov eax, dword [r15 + 0x54]
cmp r13, rax
jae 0x140002d6d
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.1400030d0
jmp 0x140002c42
mov edx, dword [r15 + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [r15 + 0x54]
mov rdx, r12
mov rcx, rax
mov rbx, rax
call fcn.140007280
movsxd rax, dword [r12 + 0x3c]
mov r9, rsi
add rax, rbx
mov r8, r15
mov qword [rsi], rax
mov rdx, r13
mov rcx, r12
mov qword [rax + 0x30], r14
call fcn.140002450
test eax, eax
je 0x140002d60
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
sub rbx, qword [r15 + 0x30]
je 0x140002e59
cmp dword [rax + 0xb4], 0
jne 0x140002ddd
xor eax, eax
jmp 0x140002e5e
mov r11d, dword [rax + 0xb0]
mov rdi, qword [rsi + 8]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x140002e59
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
xor r8d, r8d
add r10, rdi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x140002e4c
nop
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x140002e2e
cmp eax, 0xa
jne 0x140002e32
add qword [rcx + r10], rbx
jmp 0x140002e32
add dword [rcx + r10], ebx
mov r9d, dword [r11 + 4]
inc r8d
add rdx, 2
mov eax, r8d
lea rcx, [r9 - 8]
shr rcx, 1
cmp rax, rcx
jb 0x140002e10
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x140002df2
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.140002820
test eax, eax
je 0x140002d60
mov rcx, rsi
call fcn.140002590
test eax, eax
je 0x140002d60
mov rax, qword [rsi]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x140002ebd
mov rdi, qword [rsi + 8]
mov rbx, qword [rcx + rdi + 0x18]
test rbx, rbx
je 0x140002ebd
mov rax, qword [rbx]
test rax, rax
je 0x140002ebd
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x140002ea4
mov rax, qword [rsi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x140002f14
cmp dword [rsi + 0x20], 0
lea rax, [r14 + rcx]
je 0x140002f08
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140002ef9
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.1400030d0
jmp 0x140002c42
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x140002c44
mov qword [rsi + 0x60], rax
mov rax, rsi
jmp 0x140002c44
mov qword [rsi + 0x60], 0
mov rax, rsi
jmp 0x140002c44
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002c54