Function at 0x1800038e0
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 [0x180026010]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r15d, r15d
mov r12, rdx
mov ebx, r15d
cmp rdx, 0x40
jb 0x180003934
mov eax, 0x5a4d
cmp word [0x1800269f0], ax
jne 0x180003d9f
movsxd rcx, dword [0x180026a2c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jae 0x180003946
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180003a98
lea r14, [0x1800269f0]
cmp dword [rcx + r14], 0x4550
lea rbp, [rcx + r14]
jne 0x180003d9f
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x180003d9f
mov eax, dword [rbp + 0x38]
test al, 1
jne 0x180003d9f
movzx ecx, word [rbp + 0x14]
mov r9d, eax
movzx eax, word [rbp + 6]
add rcx, 0x24
cmp r15w, ax
jae 0x1800039ba
add rcx, rbp
movzx r8d, ax
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x1800039a4
lea rax, [r9 + rdx]
jmp 0x1800039a6
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x180003995
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 0x180003d9f
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 0x180003a3f
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 0x180003a3f
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180003a90
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 0x180003aba
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.180003e90
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, [0x1800038b0]
mov qword [rsi + 0x28], rax
lea rax, [0x1800038c0]
mov qword [rsi + 0x30], rax
lea rax, [0x1800038d0]
mov qword [rsi + 0x38], rax
mov eax, dword [rsp + 0x2c]
mov dword [rsi + 0x50], eax
mov edx, dword [rbp + 0x54]
cmp r12, rdx
jae 0x180003b17
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180003dc0
jmp 0x180003a86
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.180006750
movsxd rax, dword [0x180026a2c]
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 0x180003c28
add rdi, rcx
nop dword [rax]
mov ecx, dword [rdi + 4]
test ecx, ecx
jne 0x180003bbd
movsxd rax, dword [rbp + 0x38]
test eax, eax
jle 0x180003c0f
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 0x180003b0a
mov ecx, dword [rdi]
mov r8, rbx
add rcx, r14
xor edx, edx
mov dword [rdi - 4], ecx
call fcn.180006530
jmp 0x180003c0f
mov eax, dword [rdi + 8]
add eax, ecx
cmp r12, rax
jb 0x180003aff
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 0x180003b0a
mov ebx, dword [rdi]
lea rax, [0x1800269f0]
mov edx, dword [rdi + 8]
add rbx, r14
mov r8d, dword [rdi + 4]
mov rcx, rbx
add rdx, rax
call fcn.180006750
mov dword [rdi - 4], ebx
mov rcx, qword [rsi]
inc r15d
add rdi, 0x28
movzx eax, word [rcx + 6]
cmp r15d, eax
jl 0x180003b70
xor eax, eax
mov rbx, qword [rcx + 0x30]
sub rbx, qword [rbp + 0x30]
je 0x180003cce
cmp dword [rcx + 0xb4], 0
je 0x180003cd3
mov rdi, qword [rsi + 8]
mov r11d, dword [rcx + 0xb0]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x180003cce
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 0x180003cbc
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x180003c9e
cmp eax, 0xa
jne 0x180003ca2
add qword [rcx + r10], rbx
jmp 0x180003ca2
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 0x180003c80
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x180003c60
mov rsi, qword [rsp + 0x20]
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.180003700
test eax, eax
je 0x180003b0a
mov rcx, rsi
call fcn.1800034e0
test eax, eax
je 0x180003b0a
mov rdx, qword [rsi]
mov rcx, rdx
mov eax, dword [rdx + 0xd0]
test eax, eax
je 0x180003d3c
mov rdi, qword [rsi + 8]
mov rbx, qword [rax + rdi + 0x18]
test rbx, rbx
je 0x180003d3c
mov rax, qword [rbx]
test rax, rax
je 0x180003d3c
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 0x180003d20
mov rcx, qword [rsi]
mov eax, dword [rcx + 0x28]
test eax, eax
je 0x180003d8f
add rax, r13
cmp dword [rsi + 0x20], 0
je 0x180003d83
xor r8d, r8d
mov rcx, r13
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x180003d74
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180003dc0
jmp 0x180003a86
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x180003a88
mov qword [rsi + 0x48], rax
mov rax, rsi
jmp 0x180003a88
mov qword [rsi + 0x48], 0
mov rax, rsi
jmp 0x180003a88
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180003a98