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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x180023010]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r15d, r15d
mov r12, rdx
mov ebx, r15d
cmp rdx, 0x40
jb 0x180001f64
mov eax, 0x5a4d
cmp word [0x1800239f0], ax
jne 0x1800023cf
movsxd rcx, dword [0x180023a2c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jae 0x180001f76
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800020c8
lea r14, [0x1800239f0]
cmp dword [rcx + r14], 0x4550
lea rbp, [rcx + r14]
jne 0x1800023cf
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x1800023cf
mov eax, dword [rbp + 0x38]
test al, 1
jne 0x1800023cf
movzx ecx, word [rbp + 0x14]
mov r9d, eax
movzx eax, word [rbp + 6]
add rcx, 0x24
cmp r15w, ax
jae 0x180001fea
add rcx, rbp
movzx r8d, ax
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x180001fd4
lea rax, [r9 + rdx]
jmp 0x180001fd6
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x180001fc5
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x2c]
lea r8d, [rdx - 1]
lea edi, [rdx - 1]
not r8d
add edi, dword [rbp + 0x50]
lea rcx, [rdx - 1]
add rcx, rbx
and rdi, r8
and rcx, r8
cmp rdi, rcx
jne 0x1800023cf
mov rcx, qword [rbp + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov qword [rsp + 0x98], r13
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
jne 0x18000206f
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
jne 0x18000206f
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800020c0
mov qword [rsp + 0x90], rsi
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 qword [rsp + 0x20], rax
mov rsi, rax
test rax, rax
jne 0x1800020ea
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [rsi + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rsi, qword [rsp + 0x90]
mov r13, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800024c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword [rax + 8], r13
movzx eax, word [rbp + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rsi + 0x40], r15
mov dword [rsi + 0x20], eax
lea rax, [0x180001ee0]
mov qword [rsi + 0x28], rax
lea rax, [0x180001ef0]
mov qword [rsi + 0x30], rax
lea rax, [0x180001f00]
mov qword [rsi + 0x38], rax
mov eax, dword [rsp + 0x2c]
mov dword [rsi + 0x50], eax
mov edx, dword [rbp + 0x54]
cmp r12, rdx
jae 0x180002147
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.1800023f0
jmp 0x1800020b6
mov r9d, 4
mov r8d, 0x1000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x54]
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.180004930
movsxd rax, dword [0x180023a2c]
add rax, rbx
mov qword [rsi], rax
mov qword [rax + 0x30], r13
xor eax, eax
mov rcx, qword [rsi]
mov r14, qword [rsi + 8]
movzx edi, word [rcx + 0x14]
add rdi, 0x24
cmp ax, word [rcx + 6]
jae 0x180002258
add rdi, rcx
nop dword [rax]
mov ecx, dword [rdi + 4]
test ecx, ecx
jne 0x1800021ed
movsxd rax, dword [rbp + 0x38]
test eax, eax
jle 0x18000223f
mov ecx, dword [rdi]
mov r9d, 4
add rcx, r14
mov r8d, 0x1000
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x18000213a
mov ecx, dword [rdi]
mov r8, rbx
add rcx, r14
xor edx, edx
mov dword [rdi - 4], ecx
call fcn.180004710
jmp 0x18000223f
mov eax, dword [rdi + 8]
add eax, ecx
cmp r12, rax
jb 0x18000212f
mov rdx, rcx
mov r9d, 4
mov ecx, dword [rdi]
mov r8d, 0x1000
add rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x18000213a
mov ebx, dword [rdi]
lea rax, [0x1800239f0]
mov edx, dword [rdi + 8]
add rbx, r14
mov r8d, dword [rdi + 4]
mov rcx, rbx
add rdx, rax
call fcn.180004930
mov dword [rdi - 4], ebx
mov rcx, qword [rsi]
inc r15d
add rdi, 0x28
movzx eax, word [rcx + 6]
cmp r15d, eax
jl 0x1800021a0
xor eax, eax
mov rbx, qword [rcx + 0x30]
sub rbx, qword [rbp + 0x30]
je 0x1800022fe
cmp dword [rcx + 0xb4], 0
je 0x180002303
mov rdi, qword [rsi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x1800022fe
xor esi, esi
nop word [rax + rax]
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, esi
add r10, rdi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x1800022ec
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x1800022ce
cmp eax, 0xa
jne 0x1800022d2
add qword [rcx + r10], rbx
jmp 0x1800022d2
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 0x1800022b0
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x180002290
mov rsi, qword [rsp + 0x20]
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.180001d30
test eax, eax
je 0x18000213a
mov rcx, rsi
call fcn.180001b10
test eax, eax
je 0x18000213a
mov rdx, qword [rsi]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x18000236c
mov rdi, qword [rsi + 8]
mov rbx, qword [rax + rdi + 0x18]
test rbx, rbx
je 0x18000236c
mov rax, qword [rbx]
test rax, rax
je 0x18000236c
nop dword [rax]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x180002350
mov rcx, qword [rsi]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x1800023bf
add rax, r13
cmp dword [rsi + 0x20], 0
je 0x1800023b3
xor r8d, r8d
mov rcx, r13
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x1800023a4
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.1800023f0
jmp 0x1800020b6
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x1800020b8
mov qword [rsi + 0x48], rax
mov rax, rsi
jmp 0x1800020b8
mov qword [rsi + 0x48], 0
mov rax, rsi
jmp 0x1800020b8
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800020c8