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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor r15d, r15d
mov r12, r9
mov rsi, r8
mov r14, rdx
mov r13, rcx
mov ebx, r15d
cmp rdx, 0x40
jb 0x14000e577
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ea16
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jae 0x14000e581
mov ecx, 0xd
jmp 0x14000ea1b
cmp dword [rcx + r13], 0x4550
lea rbp, [rcx + r13]
jne 0x14000ea16
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x14000ea16
mov eax, dword [rbp + 0x38]
test al, 1
jne 0x14000ea16
movzx ecx, word [rbp + 0x14]
mov r9d, eax
movzx eax, word [rbp + 6]
add rcx, 0x24
cmp r15w, ax
jae 0x14000e5f5
add rcx, rbp
movzx r8d, ax
nop dword [rax]
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x14000e5df
lea rax, [r9 + rdx]
jmp 0x14000e5e1
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x14000e5d0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x3c]
lea r8d, [rdx - 1]
lea edi, [rdx - 1]
not r8d
add edi, dword [rbp + 0x50]
lea rcx, [rdx - 1]
add rcx, rbx
and rdi, r8
and rcx, r8
cmp rdi, rcx
jne 0x14000ea16
mov rbx, qword [rsp + 0xd8]
mov r9d, 4
mov rcx, qword [rbp + 0x30]
mov r8d, 0x3000
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call rsi
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14000e673
lea r9d, [rax + 4]
mov qword [rsp + 0x20], rbx
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call rsi
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000e6a6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x30]
mov rdi, rax
test rax, rax
jne 0x14000e6b0
mov r9, rbx
xor edx, edx
mov r8d, 0x8000
call r12
mov ecx, 0xe
jmp 0x14000ea1b
mov qword [rax + 8], rcx
movzx eax, word [rbp + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x28], rsi
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 + 0x50], rbx
mov eax, dword [rsp + 0x3c]
mov dword [rdi + 0x60], eax
mov edx, dword [rbp + 0x54]
cmp r14, rdx
jae 0x14000e79e
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rdi + 0x1c], r15d
je 0x14000e72b
mov rax, qword [rdi]
xor r8d, r8d
mov rcx, qword [rdi + 8]
xor edx, edx
mov r9d, dword [rax + 0x28]
add r9, rcx
call r9
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14000e76d
cmp dword [rdi + 0x18], r15d
jle 0x14000e768
mov rbx, r15
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rbx + rcx]
test rax, rax
je 0x14000e75b
mov rdx, qword [rdi + 0x50]
mov rcx, rax
call qword [rdi + 0x48]
mov rcx, qword [rdi + 0x10]
inc r15d
add rbx, 8
cmp r15d, dword [rdi + 0x18]
jl 0x14000e740
call fcn.140017a04
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e785
mov r9, qword [rdi + 0x50]
xor edx, edx
mov r8d, 0x8000
call qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000ea21
mov r9d, 4
mov qword [rsp + 0x20], rbx
mov r8d, 0x1000
call rsi
mov r8d, dword [rbp + 0x54]
mov rdx, r13
mov rcx, rax
mov rbx, rax
call fcn.140012a50
movsxd rax, dword [r13 + 0x3c]
mov r12d, r15d
mov rcx, qword [rsp + 0x30]
add rax, rbx
mov qword [rdi], rax
mov qword [rax + 0x30], rcx
mov rcx, qword [rdi]
mov r14, qword [rdi + 8]
movzx esi, word [rcx + 0x14]
add rsi, 0x24
cmp r15w, word [rcx + 6]
jae 0x14000e8b1
add rsi, rcx
mov edx, dword [rsi + 4]
test edx, edx
jne 0x14000e847
movsxd rax, dword [rbp + 0x38]
test eax, eax
jle 0x14000e89a
mov ecx, dword [rsi]
lea r9d, [rdx + 4]
mov rbx, rax
add rcx, r14
mov rax, qword [rdi + 0x50]
mov rdx, rbx
mov r8d, 0x1000
mov qword [rsp + 0x20], rax
call qword [rdi + 0x28]
test rax, rax
je 0x14000e70f
mov ecx, dword [rsi]
mov r8, rbx
add rcx, r14
xor edx, edx
mov dword [rsi - 4], ecx
call fcn.140012ec0
jmp 0x14000e89a
mov eax, dword [rsi + 8]
add eax, edx
cmp qword [rsp + 0xa8], rax
jb 0x14000e704
mov ecx, dword [rsi]
mov r9d, 4
mov rax, qword [rdi + 0x50]
add rcx, r14
mov r8d, 0x1000
mov qword [rsp + 0x20], rax
call qword [rdi + 0x28]
test rax, rax
je 0x14000e70f
mov ebx, dword [rsi]
mov edx, dword [rsi + 8]
add rbx, r14
mov r8d, dword [rsi + 4]
mov rcx, rbx
add rdx, r13
call fcn.140012a50
mov dword [rsi - 4], ebx
mov rcx, qword [rdi]
inc r12d
add rsi, 0x28
movzx eax, word [rcx + 6]
cmp r12d, eax
jl 0x14000e7f6
mov rbx, qword [rcx + 0x30]
sub rbx, qword [rbp + 0x30]
je 0x14000e959
cmp dword [rcx + 0xb4], r15d
jne 0x14000e8d0
mov eax, r15d
jmp 0x14000e95e
mov rsi, qword [rdi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rsi
mov eax, dword [r11]
test eax, eax
je 0x14000e959
nop word [rax + rax]
mov r10d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r9d, eax
mov r8d, r15d
add r9, rsi
lea rax, [r10 - 8]
test rax, 0xfffffffffffffffe
jbe 0x14000e94c
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x14000e92e
cmp eax, 0xa
jne 0x14000e932
add qword [rcx + r9], rbx
jmp 0x14000e932
add dword [rcx + r9], ebx
mov r10d, dword [r11 + 4]
inc r8d
add rdx, 2
mov eax, r8d
lea rcx, [r10 - 8]
shr rcx, 1
cmp rax, rcx
jb 0x14000e910
mov eax, r10d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x14000e8f0
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.14000df40
test eax, eax
je 0x14000e70f
mov rcx, rdi
call fcn.14000e190
test eax, eax
je 0x14000e70f
mov rdx, qword [rdi]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x14000e9cc
mov rsi, qword [rdi + 8]
mov rbx, qword [rax + rsi + 0x18]
test rbx, rbx
je 0x14000e9cc
mov rax, qword [rbx]
test rax, rax
je 0x14000e9cc
nop word [rax + rax]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x14000e9b0
mov rcx, qword [rdi]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x14000ea0d
mov rcx, qword [rsp + 0x30]
add rax, rcx
cmp dword [rdi + 0x20], r15d
je 0x14000ea04
xor r8d, r8d
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x14000e9f8
mov ecx, 0x45a
jmp 0x14000e709
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x14000ea23
mov qword [rdi + 0x58], rax
mov rax, rdi
jmp 0x14000ea23
mov qword [rdi + 0x58], r15
mov rax, rdi
jmp 0x14000ea23
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret