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

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
mov eax, 0x5a4d
cmp word [0x18001cb80], ax
je 0x180001959
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x60
pop rbx
ret
movsxd rcx, dword [0x18001cbbc]
lea rax, [rcx + 0x108]
cmp rax, 0x18e00
jbe 0x180001982
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], r15
lea r15, [0x18001cb80]
cmp dword [rcx + r15], 0x4550
lea rsi, [rcx + r15]
jne 0x1800019b7
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x1800019b7
mov ecx, dword [rsi + 0x38]
test cl, 1
je 0x1800019d7
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x78]
xor eax, eax
mov r15, qword [rsp + 0x88]
add rsp, 0x60
pop rbx
ret
movzx eax, word [rsi + 0x14]
lea rdx, [rsi + 0x24]
add rdx, rax
mov qword [rsp + 0x80], rdi
movzx eax, word [rsi + 6]
mov r9, rcx
test eax, eax
je 0x180001a1b
mov r8d, eax
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x180001a06
mov eax, dword [rdx]
add rax, r9
jmp 0x180001a0a
mov eax, dword [rdx]
add eax, ecx
cmp rax, rbx
cmova rbx, rax
add rdx, 0x28
sub r8, 1
jne 0x1800019f8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r8d, dword [rsp + 0x34]
lea edx, [r8 - 1]
lea edi, [r8 - 1]
not edx
add edi, dword [rsi + 0x50]
lea rcx, [r8 - 1]
add rcx, rbx
and rdi, rdx
and rcx, rdx
cmp rdi, rcx
je 0x180001a5c
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180001b44
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov qword [rsp + 0x70], rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x180001a9f
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x180001ad0
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 0x180001add
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180001b3d
mov qword [rax + 8], rbp
movzx eax, word [rsi + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x40], 0
mov dword [rdi + 0x20], eax
lea rax, [0x180001900]
mov qword [rdi + 0x28], rax
lea rax, [0x180001910]
mov qword [rdi + 0x30], rax
lea rax, [0x180001920]
mov qword [rdi + 0x38], rax
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x50], eax
mov edx, dword [rsi + 0x54]
cmp rdx, 0x18e00
jbe 0x180001b5f
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, rdi
call fcn.180001c90
xor eax, eax
mov rbp, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x88]
add rsp, 0x60
pop rbx
ret
mov r9d, 4
mov r8d, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsi + 0x54]
mov rdx, r15
mov rcx, rax
mov rbx, rax
call fcn.180004130
movsxd rax, dword [0x18001cbbc]
mov r9, rsi
add rax, rbx
mov qword [rsp + 0x20], rdi
mov qword [rdi], rax
mov qword [rax + 0x30], rbp
call fcn.180001300
test eax, eax
je 0x180001b35
mov rax, qword [rdi]
mov r8, qword [rax + 0x30]
sub r8, qword [rsi + 0x30]
je 0x180001bc2
mov rdx, rdi
call fcn.180001690
mov dword [rdi + 0x24], eax
jmp 0x180001bc9
mov dword [rdi + 0x24], 1
mov rdx, rdi
call fcn.180001750
test eax, eax
je 0x180001b35
mov rdx, rdi
call fcn.1800014f0
test eax, eax
je 0x180001b35
mov rax, qword [rdi]
mov rsi, qword [rdi + 8]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x180001c29
mov rbx, qword [rcx + rsi + 0x18]
test rbx, rbx
je 0x180001c29
mov rax, qword [rbx]
test rax, rax
je 0x180001c29
nop dword [rax]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x180001c10
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x180001c72
cmp dword [rdi + 0x20], 0
lea rax, [rcx + rbp]
je 0x180001c66
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x180001c57
mov ecx, 0x45a
jmp 0x180001b2f
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x180001b3f
mov qword [rdi + 0x48], rax
mov rax, rdi
jmp 0x180001b3f
mov qword [rdi + 0x48], 0
mov rax, rdi
jmp 0x180001b3f