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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13, rcx
mov r12d, edx
movsxd rcx, dword [rcx + 0x3c]
xorps xmm0, xmm0
xor r15d, r15d
mov eax, 0x5a4d
mov ebx, r15d
movups xmmword [rsp + 0x30], xmm0
lea rsi, [rcx + r13]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
cmp word [r13], ax
jne 0x140007983
cmp dword [rsi], 0x4550
jne 0x140007983
cmp r12d, 0x40
jb 0x14000797c
cmp r12d, dword [rsi + 0x54]
jb 0x14000797c
add rcx, 0x108
cmp r12, rcx
jb 0x14000797c
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x140007983
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x24
cmp r15w, ax
jae 0x140007632
add rdx, rsi
mov r8d, eax
nop dword [rax + rax]
mov eax, dword [rdx + 4]
mov ecx, dword [rdx]
test eax, eax
jne 0x14000761c
mov eax, dword [rsi + 0x38]
add ecx, eax
cmp rcx, rbx
cmovbe rcx, rbx
add rdx, 0x28
mov rbx, rcx
sub r8, 1
jne 0x140007610
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x34]
lea r8d, [rdx - 1]
lea edi, [rdx - 1]
not r8d
add edi, dword [rsi + 0x50]
lea rcx, [rdx - 1]
add rcx, rbx
and rdi, r8
and rcx, r8
cmp rdi, rcx
jne 0x140007983
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
mov rbp, rax
test rax, rax
jne 0x1400076b4
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
mov rbp, rax
test rax, rax
jne 0x1400076b4
lea ecx, [rax + 0xe]
jmp 0x140007988
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x28], rax
mov r14, rax
test rax, rax
je 0x14000793e
mov qword [rax + 8], rbp
mov r9d, 4
mov eax, dword [rsp + 0x34]
mov r8d, 0x1000
mov dword [r14 + 0x24], eax
mov rcx, rbp
mov edx, dword [rsi + 0x54]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000793e
mov r8d, dword [rsi + 0x54]
mov rdx, r13
mov rcx, rax
call fcn.14000b3e0
movsxd rax, dword [r13 + 0x3c]
add rax, rbx
mov qword [r14], rax
mov qword [rax + 0x30], rbp
xor eax, eax
mov rcx, qword [r14]
mov rbp, qword [r14 + 8]
movzx edi, word [rcx + 0x14]
add rdi, 0x24
cmp ax, word [rcx + 6]
jae 0x1400077f2
add rdi, rcx
mov edx, dword [rdi + 4]
test edx, edx
jne 0x140007793
movsxd rax, dword [rsi + 0x38]
test eax, eax
jle 0x1400077db
mov ecx, dword [rdi]
lea r9d, [rdx + 4]
add rcx, rbp
mov r8d, 0x1000
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140007949
mov ecx, dword [rdi]
mov r8, rbx
add rcx, rbp
xor edx, edx
mov dword [rdi - 4], ecx
call fcn.140009630
jmp 0x1400077db
mov ecx, dword [rdi + 8]
add ecx, edx
cmp r12d, ecx
jb 0x140007949
mov ecx, dword [rdi]
mov r9d, 4
add rcx, rbp
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140007949
mov ebx, dword [rdi]
mov edx, dword [rdi + 8]
add rbx, rbp
mov r8d, dword [rdi + 4]
mov rcx, rbx
add rdx, r13
call fcn.14000b3e0
mov dword [rdi - 4], ebx
mov rcx, qword [r14]
inc r15d
add rdi, 0x28
movzx eax, word [rcx + 6]
cmp r15d, eax
jl 0x140007748
mov rbx, qword [rcx + 0x30]
sub rbx, qword [rsi + 0x30]
je 0x14000789e
cmp dword [rcx + 0xb4], 0
jne 0x140007810
xor ecx, ecx
jmp 0x1400078a3
mov rdi, qword [r14 + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x14000789e
xor r14d, r14d
nop dword [rax + rax]
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, r14d
add r10, rdi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x14000788c
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x14000786e
cmp eax, 0xa
jne 0x140007872
add qword [rcx + r10], rbx
jmp 0x140007872
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 0x140007850
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x140007830
mov r14, qword [rsp + 0x28]
mov ecx, 1
mov dword [r14 + 0x20], ecx
mov rcx, r14
call fcn.140007110
test eax, eax
je 0x140007949
mov rcx, r14
call fcn.1400073c0
test eax, eax
je 0x140007949
mov rdx, qword [r14]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x14000790f
mov ecx, eax
mov rax, qword [r14 + 8]
mov rbx, qword [rcx + rax + 0x18]
mov rcx, rdx
test rbx, rbx
je 0x14000790f
mov rax, qword [rbx]
test rax, rax
je 0x14000790f
mov rcx, qword [r14 + 8]
xor r8d, r8d
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x1400078f2
mov rcx, qword [r14]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x140007939
mov rcx, qword [r14 + 8]
xor r8d, r8d
add rax, rcx
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140007931
mov ecx, 0x45a
jmp 0x140007943
mov dword [r14 + 0x1c], 1
mov rax, r14
jmp 0x140007990
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140007961
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14, r14
je 0x14000798e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000798e
mov ecx, 0xd
jmp 0x140007988
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140007c70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret