Function at 0x180001984
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 r14
sub rsp, 0x60
mov rax, qword [0x180022010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov r14, rdx
cmp rdx, 0x40
jae 0x1800019c5
lea ecx, [rbx + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180001b73
mov eax, 0x5a4d
cmp word [0x180022a00], ax
je 0x1800019da
mov ecx, 0xc1
jmp 0x1800019ba
mov rcx, qword [0x180022a3c]
movsxd rdi, ecx
add rdi, 0x108
cmp r14, rdi
jae 0x180001a0b
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp r14, rdi
jb 0x180001b73
mov rcx, qword [0x180022a3c]
movsxd rsi, ecx
lea rax, [0x180022a00]
add rsi, rax
cmp dword [rsi], 0x4550
jne 0x1800019d3
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x1800019d3
test byte [rsi + 0x38], 1
jne 0x1800019d3
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x24
mov r9d, dword [rsi + 0x38]
test eax, eax
je 0x180001a6e
add rdx, rsi
mov r8d, eax
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x180001a59
mov eax, dword [rdx]
add rax, r9
jmp 0x180001a5d
mov eax, dword [rdx]
add eax, ecx
cmp rax, rbx
cmova rbx, rax
add rdx, 0x28
sub r8, 1
jne 0x180001a4b
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 0x1800019d3
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 0x180001ae7
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 0x180001ae7
mov ecx, 0xe
jmp 0x1800019ba
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 0x180001b1a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180001add
mov qword [rax + 8], rbp
movzx eax, word [rsi + 0x16]
and qword [rdi + 0x40], 0
shr eax, 0xd
and eax, 1
mov dword [rdi + 0x20], eax
lea rax, [0x18000196c]
mov qword [rdi + 0x28], rax
lea rax, [0x180001974]
mov qword [rdi + 0x30], rax
lea rax, [0x18000197c]
mov qword [rdi + 0x38], rax
mov eax, dword [rsp + 0x24]
mov dword [rdi + 0x50], eax
mov edx, dword [rsi + 0x54]
cmp r14, rdx
jae 0x180001b9d
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.180001d94
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180001e50
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov r9d, 4
mov r8d, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsi + 0x54]
lea rdx, [0x180022a00]
mov rcx, rax
mov rbx, rax
call fcn.180003d40
movsxd rax, dword [0x180022a3c]
mov r9, rdi
add rax, rbx
mov r8, rsi
mov qword [rdi], rax
mov rdx, r14
mov qword [rax + 0x30], rbp
call fcn.180001388
test eax, eax
je 0x180001b6b
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rsi + 0x30]
je 0x180001c05
mov rcx, rdi
call fcn.180001724
mov dword [rdi + 0x24], eax
jmp 0x180001c0c
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.1800017dc
test eax, eax
je 0x180001b6b
mov rcx, rdi
call fcn.18000158c
test eax, eax
je 0x180001b6b
mov rax, qword [rdi]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x180001c61
mov rsi, qword [rdi + 8]
mov rbx, qword [rcx + rsi + 0x18]
test rbx, rbx
je 0x180001c61
jmp 0x180001c59
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
lea rbx, [rbx + 8]
mov rax, qword [rbx]
test rax, rax
jne 0x180001c49
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x180001c9e
cmp dword [rdi + 0x20], 0
lea rax, [rcx + rbp]
je 0x180001c98
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x180001c8f
mov ecx, 0x45a
jmp 0x180001b65
mov dword [rdi + 0x1c], 1
jmp 0x180001ca3
mov qword [rdi + 0x48], rax
jmp 0x180001ca3
and qword [rdi + 0x48], 0
mov rax, rdi
jmp 0x180001b75