Function at 0x180001d84
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 [0x180023008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r13d, r13d
mov r12, rdx
mov r14, rcx
mov edi, r13d
mov r15d, r13d
cmp rdx, 0x40
jb 0x180001deb
mov eax, 0x5a4d
mov esi, 0xc1
cmp word [rcx], ax
je 0x180001ddb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
movsxd rcx, dword [r14 + 0x3c]
lea rax, [rcx + 0x108]
cmp r12, rax
jae 0x180001df5
mov ecx, 0xd
jmp 0x180002134
lea rbp, [rcx + r14]
cmp dword [rbp], 0x4550
je 0x180001e0a
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x180002132
test byte [rbp + 0x38], 1
jne 0x180002132
movzx ecx, word [rbp + 0x14]
mov r9d, dword [rbp + 0x38]
add rcx, 0x24
cmp r13w, word [rbp + 6]
jae 0x180001e63
movzx r8d, word [rbp + 6]
add rcx, rbp
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x180001e4d
lea rax, [r9 + rdx]
jmp 0x180001e4f
add eax, edx
cmp rax, rdi
cmovbe rax, rdi
add rcx, 0x28
mov rdi, rax
sub r8, 1
jne 0x180001e3e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x34]
mov eax, dword [rbp + 0x50]
lea rbx, [rdx - 1]
add rbx, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rdi
and rbx, rcx
and rax, rcx
cmp rbx, rax
jne 0x180002132
mov rcx, qword [rbp + 0x30]
mov edi, 0x3000
mov r8d, edi
mov qword [rsp + 0x20], r13
mov r9d, 4
mov rdx, rbx
call fcn.180001c60
mov rsi, rax
test rax, rax
jne 0x180001ee8
lea r9d, [rax + 4]
mov qword [rsp + 0x20], r13
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call fcn.180001c60
mov rsi, rax
test rax, rax
jne 0x180001ee8
mov ecx, 0xe
jmp 0x180002134
lea rcx, [rsi + rbx]
mov rax, rsi
jmp 0x180001f3c
mov ecx, 0x10
call fcn.180008308
mov rdi, rax
test rax, rax
je 0x180002003
mov qword [rax], r15
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], rsi
mov rdx, rbx
mov qword [rsp + 0x20], r13
xor ecx, ecx
mov r15, rax
call fcn.180001c60
mov rsi, rax
test rax, rax
je 0x180001fec
lea rcx, [rax + rbx]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x180001ef1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180002003
mov qword [rax + 8], rsi
movzx eax, word [rbp + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x58], r13
mov dword [rdi + 0x20], eax
lea rax, [fcn.180001c60]
mov qword [rdi + 0x28], rax
lea rax, [fcn.180001cf0]
mov qword [rdi + 0x30], rax
lea rax, [0x180001d6c]
mov qword [rdi + 0x38], rax
lea rax, [0x180001d74]
mov qword [rdi + 0x40], rax
lea rax, [0x180001d7c]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x68], eax
mov qword [rdi + 0x70], r15
mov edx, dword [rbp + 0x54]
cmp r12, rdx
jae 0x18000201b
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.18000218c
jmp 0x18000213a
mov rcx, rdi
lea rdx, [fcn.180001cf0]
xor r8d, r8d
call fcn.18000164c
jmp 0x180001ede
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call fcn.180001cf0
mov rcx, r15
jmp 0x180001fef
mov r9d, 4
mov qword [rsp + 0x20], r13
mov r8d, 0x1000
mov rcx, rsi
call fcn.180001c60
mov r8d, dword [rbp + 0x54]
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.180007c90
movsxd rax, dword [r14 + 0x3c]
mov r9, rdi
add rax, rbx
mov r8, rbp
mov qword [rdi], rax
mov rdx, r12
mov rcx, r14
mov qword [rax + 0x30], rsi
call fcn.1800016a8
test eax, eax
je 0x180001fdf
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x180002084
mov rcx, rdi
call fcn.180001a30
jmp 0x180002089
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.180001ae4
test eax, eax
je 0x180001fdf
mov rcx, rdi
call fcn.1800018ac
test eax, eax
je 0x180001fdf
mov rcx, qword [rdi]
mov rax, rcx
mov edx, dword [rcx + 0xd0]
test edx, edx
je 0x1800020ee
mov rbp, qword [rdi + 8]
mov rbx, qword [rdx + rbp + 0x18]
test rbx, rbx
je 0x1800020ee
mov r9, qword [rbx]
test r9, r9
je 0x1800020ee
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call r9
lea rbx, [rbx + 8]
mov r9, qword [rbx]
test r9, r9
jne 0x1800020d2
mov rax, qword [rdi]
cmp dword [rax + 0x28], r13d
je 0x180002129
mov eax, dword [rax + 0x28]
add rax, rsi
cmp dword [rdi + 0x20], r13d
je 0x180002123
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x18000211a
mov ecx, 0x45a
jmp 0x180001fd9
mov dword [rdi + 0x1c], 1
jmp 0x18000212d
mov qword [rdi + 0x60], rax
jmp 0x18000212d
mov qword [rdi + 0x60], r13
mov rax, rdi
jmp 0x18000213c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800038e0
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