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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x180023010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r15d, r15d
mov r14, rdx
mov ebx, r15d
cmp rdx, 0x40
jb 0x180001cff
mov eax, 0x5a4d
cmp word [0x1800239f0], ax
jne 0x180001f94
movsxd rcx, dword [0x180023a2c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jae 0x180001d09
mov ecx, 0xd
jmp 0x180001f99
lea rsi, [0x1800239f0]
add rsi, rcx
cmp dword [rsi], 0x4550
jne 0x180001f94
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x180001f94
test byte [rsi + 0x38], 1
jne 0x180001f94
movzx ecx, word [rsi + 0x14]
mov r9d, dword [rsi + 0x38]
add rcx, 0x24
cmp r15w, word [rsi + 6]
jae 0x180001d78
movzx r8d, word [rsi + 6]
add rcx, rsi
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x180001d62
lea rax, [r9 + rdx]
jmp 0x180001d64
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x180001d53
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x24]
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 0x180001f94
mov rcx, qword [rsi + 0x30]
mov ebx, 0x3000
mov r8d, ebx
mov r9d, 4
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x180001df1
lea r9d, [rax + 4]
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x180001df1
mov ecx, 0xe
jmp 0x180001f99
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x50]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x180001e24
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180001de7
mov qword [rax + 8], rbp
movzx eax, word [rsi + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x40], r15
mov dword [rdi + 0x20], eax
lea rax, [0x180001c8c]
mov qword [rdi + 0x28], rax
lea rax, [0x180001c94]
mov qword [rdi + 0x30], rax
lea rax, [0x180001c9c]
mov qword [rdi + 0x38], rax
mov eax, dword [rsp + 0x24]
mov dword [rdi + 0x50], eax
mov edx, dword [rsi + 0x54]
cmp r14, rdx
jae 0x180001e81
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.1800020b0
jmp 0x180001f9f
mov r9d, 4
mov r8d, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsi + 0x54]
lea rdx, [0x1800239f0]
mov rcx, rax
mov rbx, rax
call fcn.180004400
movsxd rax, dword [0x180023a2c]
mov r9, rdi
add rax, rbx
mov r8, rsi
mov qword [rdi], rax
mov rdx, r14
mov qword [rax + 0x30], rbp
call fcn.1800016e4
test eax, eax
je 0x180001e74
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rsi + 0x30]
je 0x180001ee6
mov rcx, rdi
call fcn.180001a4c
jmp 0x180001eeb
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.180001b00
test eax, eax
je 0x180001e74
mov rcx, rdi
call fcn.1800018d8
test eax, eax
je 0x180001e74
mov rcx, qword [rdi]
mov rax, rcx
mov edx, dword [rcx + 0xd0]
test edx, edx
je 0x180001f50
mov rsi, qword [rdi + 8]
mov rbx, qword [rdx + rsi + 0x18]
test rbx, rbx
je 0x180001f50
mov r9, qword [rbx]
test r9, r9
je 0x180001f50
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call r9
lea rbx, [rbx + 8]
mov r9, qword [rbx]
test r9, r9
jne 0x180001f34
mov rax, qword [rdi]
cmp dword [rax + 0x28], r15d
je 0x180001f8b
mov eax, dword [rax + 0x28]
add rax, rbp
cmp dword [rdi + 0x20], r15d
je 0x180001f85
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x180001f7c
mov ecx, 0x45a
jmp 0x180001e6e
mov dword [rdi + 0x1c], 1
jmp 0x180001f8f
mov qword [rdi + 0x48], rax
jmp 0x180001f8f
mov qword [rdi + 0x48], r15
mov rax, rdi
jmp 0x180001fa1
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180002180
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret