Function at 0x14000137c
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r10d, r10d
mov r12, r9
mov rsi, r8
mov r13, rcx
mov edi, r10d
mov r15d, r10d
cmp rdx, 0x40
jb 0x1400013d0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000174c
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jae 0x1400013da
mov ecx, 0xd
jmp 0x140001751
lea rbp, [rcx + r13]
cmp dword [rbp], 0x4550
jne 0x14000174c
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x14000174c
test byte [rbp + 0x38], 1
jne 0x14000174c
movzx ecx, word [rbp + 0x14]
mov r9d, dword [rbp + 0x38]
add rcx, 0x24
cmp r10w, word [rbp + 6]
jae 0x140001444
movzx r8d, word [rbp + 6]
add rcx, rbp
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x14000142e
lea rax, [r9 + rdx]
jmp 0x140001430
add eax, edx
cmp rax, rdi
cmovbe rax, rdi
add rcx, 0x28
mov rdi, rax
sub r8, 1
jne 0x14000141f
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x34]
mov eax, dword [rbp + 0x50]
lea rbx, [rdx - 1]
add rbx, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rdi
and rbx, rcx
and rax, rcx
cmp rbx, rax
jne 0x14000174c
mov r14, qword [rsp + 0xd8]
mov edi, 0x3000
mov rcx, qword [rbp + 0x30]
mov r8d, edi
mov r9d, 4
mov qword [rsp + 0x20], r14
mov rdx, rbx
call rsi
mov rsi, rax
test rax, rax
jne 0x1400014ca
lea r9d, [rax + 4]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [rsp + 0xb0]
mov rsi, rax
test rax, rax
je 0x140001575
lea rcx, [rsi + rbx]
mov rax, rsi
jmp 0x14000151c
mov ecx, 0x10
call fcn.1400026e8
mov rdi, rax
test rax, rax
je 0x14000157f
mov qword [rax], r15
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], rsi
mov rdx, rbx
mov qword [rsp + 0x20], r14
xor ecx, ecx
mov r15, rax
call qword [rsp + 0xb0]
mov rsi, rax
test rax, rax
je 0x140001567
lea rcx, [rax + rbx]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x1400014d3
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 rdi, rax
test rax, rax
jne 0x1400015bc
mov r9, r14
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call r12
mov rcx, r15
jmp 0x14000156a
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.140002170
mov ecx, 0xe
jmp 0x140001751
mov r9, r14
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call r12
test r15, r15
je 0x140001575
mov rcx, qword [r15 + 8]
mov r9, r14
xor edx, edx
mov r8d, 0x8000
call r12
mov rbx, qword [r15]
mov rcx, r15
call fcn.1400026c0
mov r15, rbx
test rbx, rbx
jne 0x140001595
jmp 0x140001575
mov r10, qword [rsp + 0xb0]
mov qword [rax + 8], rsi
movzx eax, word [rbp + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x28], r10
mov dword [rdi + 0x20], eax
mov rax, qword [rsp + 0xc0]
mov qword [rdi + 0x38], rax
mov rax, qword [rsp + 0xc8]
mov qword [rdi + 0x40], rax
mov rax, qword [rsp + 0xd0]
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x30], r12
mov qword [rdi + 0x58], r14
mov eax, dword [rsp + 0x34]
mov qword [rdi + 0x70], r15
mov r15, qword [rsp + 0xa8]
mov dword [rdi + 0x68], eax
mov edx, dword [rbp + 0x54]
cmp r15, rdx
jae 0x140001638
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.1400018f0
jmp 0x140001757
mov r9d, 4
mov qword [rsp + 0x20], r14
mov r8d, 0x1000
mov rcx, rsi
call r10
mov r8d, dword [rbp + 0x54]
mov rdx, r13
mov rcx, rax
mov rbx, rax
call fcn.1400024fc
movsxd rax, dword [r13 + 0x3c]
mov r9, rdi
add rax, rbx
mov r8, rbp
mov qword [rdi], rax
mov rdx, r15
mov rcx, r13
mov qword [rax + 0x30], rsi
call fcn.140001e04
xor r14d, r14d
test eax, eax
je 0x14000162b
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x14000169e
mov rcx, rdi
call fcn.1400021cc
jmp 0x1400016a3
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.140001c9c
test eax, eax
je 0x14000162b
mov rcx, rdi
call fcn.140001fec
test eax, eax
je 0x14000162b
mov rcx, qword [rdi]
mov rax, rcx
mov edx, dword [rcx + 0xd0]
test edx, edx
je 0x140001708
mov rbp, qword [rdi + 8]
mov rbx, qword [rdx + rbp + 0x18]
test rbx, rbx
je 0x140001708
mov r9, qword [rbx]
test r9, r9
je 0x140001708
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call r9
lea rbx, [rbx + 8]
mov r9, qword [rbx]
test r9, r9
jne 0x1400016ec
mov rax, qword [rdi]
cmp dword [rax + 0x28], r14d
je 0x140001743
mov eax, dword [rax + 0x28]
add rax, rsi
cmp dword [rdi + 0x20], r14d
je 0x14000173d
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140001734
mov ecx, 0x45a
jmp 0x140001625
mov dword [rdi + 0x1c], 1
jmp 0x140001747
mov qword [rdi + 0x60], rax
jmp 0x140001747
mov qword [rdi + 0x60], r14
mov rax, rdi
jmp 0x140001759
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret