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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
mov eax, 0x5a4d
xor edi, edi
xor r14d, r14d
mov rbx, rdx
mov r13, rcx
cmp word [rcx], ax
je 0x180007a06
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180007c38
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, 0x1d1140
jbe 0x180007a20
mov ecx, InitCommonControls
jmp 0x1800079fb
lea rbp, [rcx + r13]
cmp dword [rbp], 0x4550
jne 0x1800079f6
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x1800079f6
test byte [rbp + 0x38], 1
jne 0x1800079f6
movzx eax, word [rbp + 6]
movzx ecx, word [rbp + 0x14]
mov r9d, dword [rbp + 0x38]
test eax, eax
je 0x180007a78
lea rdx, [rcx + rbp + 0x24]
mov r8d, eax
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x180007a64
mov eax, dword [rdx]
add rax, r9
jmp 0x180007a68
mov eax, dword [rdx]
add eax, ecx
cmp rax, rdi
cmova rdi, rax
add rdx, 0x28
dec r8
jne 0x180007a56
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rbp + 0x50]
lea r12, [rax + r11 - 1]
lea rax, [r11 - 1]
lea rcx, [r11 + rdi - 1]
not rax
and r12, rax
lea rax, [r11 - 1]
not rax
and rcx, rax
cmp r12, rcx
jne 0x1800079f6
mov eax, dword [rbx]
mov rcx, qword [rbp + 0x30]
movabs rdi, 0x10000000000
test eax, eax
jne 0x180007ac9
add rcx, rdi
inc eax
mov r9d, 4
mov r8d, 0x3000
mov rdx, r12
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180007b1d
mov eax, dword [rbx]
xor ecx, ecx
lea r9d, [rsi + 4]
test eax, eax
mov r8d, 0x3000
mov rdx, r12
cmove rcx, rdi
inc eax
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180007b1d
mov ecx, InitCommonControls
jmp 0x1800079fb
lea rcx, [rsi + r12]
mov rax, rsi
jmp 0x180007b83
mov ecx, InitCommonControls
call fcn.18014ac74
mov rdi, rax
test rax, rax
je 0x180007c70
mov qword [rax], r14
mov qword [rax + 8], rsi
mov edx, dword [rbx]
xor ecx, ecx
test edx, edx
mov r14, rax
movabs rax, 0x10000000000
mov r9d, 4
mov r8d, 0x3000
cmove rcx, rax
inc edx
mov dword [rbx], edx
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x180007c59
lea rcx, [rax + r12]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x180007b26
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180007c70
mov qword [rax + 8], rsi
movzx eax, word [rbp + 0x16]
mov r12d, 1
shr eax, 0xd
mov qword [rdi + 0x58], rbx
and eax, r12d
mov dword [rdi + 0x20], eax
lea rax, [0x1800014c8]
mov qword [rdi + 0x28], rax
lea rax, [0x1800079a4]
mov qword [rdi + 0x30], rax
lea rax, [0x1800079ac]
mov qword [rdi + 0x38], rax
lea rax, [0x1800079b4]
mov qword [rdi + 0x40], rax
lea rax, [0x1800079bc]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x24]
mov qword [rdi + 0x70], r14
mov dword [rdi + 0x68], eax
mov edx, dword [rbp + 0x54]
cmp rdx, 0x1d1140
jbe 0x180007c86
lea ecx, [r12 + 0xc]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.180007da8
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
mov rcx, rdi
lea rdx, [0x1800079a4]
mov r8, rbx
call fcn.180007384
jmp 0x180007b13
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r14
jmp 0x180007c5c
mov eax, dword [rbx]
mov rcx, rsi
test eax, eax
jne 0x180007c9c
movabs rcx, 0x10000000000
add rcx, rsi
inc eax
mov r9d, 4
mov r8d, 0x1000
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x54]
mov rcx, rax
mov rdx, r13
mov rbx, rax
call fcn.18014a260
movsxd rax, dword [r13 + 0x3c]
mov r8, rdi
add rax, rbx
mov rdx, rbp
mov rcx, r13
mov qword [rdi], rax
mov qword [rax + 0x30], rsi
call fcn.1800073e0
test eax, eax
je 0x180007c30
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x180007d02
mov rcx, rdi
call fcn.180007760
mov dword [rdi + 0x24], eax
jmp 0x180007d06
mov dword [rdi + 0x24], r12d
mov rcx, rdi
call fcn.180007820
test eax, eax
je 0x180007c30
mov rcx, rdi
call fcn.1800075cc
test eax, eax
je 0x180007c30
mov rax, qword [rdi]
mov rbp, qword [rdi + 8]
cmp dword [rax + 0xd0], 0
je 0x180007d5f
mov eax, dword [rax + 0xd0]
mov rbx, qword [rax + rbp + 0x18]
test rbx, rbx
je 0x180007d5f
jmp 0x180007d57
xor r8d, r8d
mov edx, r12d
mov rcx, rbp
call rax
add rbx, 8
mov rax, qword [rbx]
test rax, rax
jne 0x180007d48
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x180007d98
cmp dword [rdi + 0x20], 0
lea rax, [rsi + rcx]
je 0x180007d92
xor r8d, r8d
mov edx, r12d
mov rcx, rsi
call rax
test eax, eax
jne 0x180007d8c
mov ecx, 0x45a
jmp 0x180007c2a
mov dword [rdi + 0x1c], r12d
jmp 0x180007d9d
mov qword [rdi + 0x60], rax
jmp 0x180007d9d
and qword [rdi + 0x60], 0
mov rax, rdi
jmp 0x180007c3a