Function at 0x14019c388
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 r13
push r14
push r15
sub rsp, 0x60
xor r15d, r15d
mov eax, 0x5a4d
cmp word [0x140509360], ax
mov edi, r15d
mov r14d, r15d
jne 0x14019c72d
movsxd rcx, dword [0x14050939c]
lea rax, [rcx + 0x108]
cmp rax, 0x3aa00
jbe 0x14019c3df
lea ecx, [r15 + 0xd]
jmp 0x14019c732
lea rbp, [0x140509360]
add rbp, rcx
cmp dword [rbp], 0x4550
jne 0x14019c72d
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x14019c72d
test byte [rbp + 0x38], 1
jne 0x14019c72d
movzx ecx, word [rbp + 0x14]
mov r9d, dword [rbp + 0x38]
add rcx, 0x24
cmp r15w, word [rbp + 6]
jae 0x14019c44f
movzx r8d, word [rbp + 6]
add rcx, rbp
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x14019c439
lea rax, [r9 + rdx]
jmp 0x14019c43b
add eax, edx
cmp rax, rdi
cmovbe rax, rdi
add rcx, 0x28
mov rdi, rax
sub r8, 1
jne 0x14019c42a
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 0x14019c72d
mov r13d, 4
mov qword [rsp + 0x20], r15
mov edi, 0x3000
mov r9d, r13d
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call sub.kernel32.dll_VirtualAlloc
mov rsi, rax
test rax, rax
jne 0x14019c4d4
mov r9d, r13d
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call sub.kernel32.dll_VirtualAlloc
mov rsi, rax
test rax, rax
jne 0x14019c4d4
mov ecx, 0xe
jmp 0x14019c732
lea rcx, [rsi + rbx]
movabs r13, 0xffffffff00000000
mov rax, rsi
jmp 0x14019c532
mov ecx, 0x10
call fcn.1403ddfc0
mov rdi, rax
test rax, rax
je 0x14019c5f0
mov qword [rax], r14
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], rsi
mov rdx, rbx
mov qword [rsp + 0x20], r15
xor ecx, ecx
mov r14, rax
call sub.kernel32.dll_VirtualAlloc
mov rsi, rax
test rax, rax
je 0x14019c5d9
lea rcx, [rax + rbx]
and rcx, r13
and rax, r13
cmp rax, rcx
jb 0x14019c4e7
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 0x14019c5f0
mov qword [rax + 8], rsi
movzx eax, word [rbp + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x58], r15
mov dword [rdi + 0x20], eax
lea rax, [sub.kernel32.dll_VirtualAlloc]
mov qword [rdi + 0x28], rax
lea rax, [sub.kernel32.dll_VirtualFree]
mov qword [rdi + 0x30], rax
lea rax, [0x14019c360]
mov qword [rdi + 0x38], rax
lea rax, [0x14019c370]
mov qword [rdi + 0x40], rax
lea rax, [0x14019c380]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x68], eax
mov qword [rdi + 0x70], r14
cmp dword [rbp + 0x54], 0x3aa00
jbe 0x14019c608
mov ecx, 0xd
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, rdi
call fcn.14019c75c
jmp 0x14019c738
mov rcx, rdi
lea rdx, [sub.kernel32.dll_VirtualFree]
xor r8d, r8d
call fcn.14019bd1c
jmp 0x14019c4ca
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call sub.kernel32.dll_VirtualFree
mov rcx, r14
jmp 0x14019c5dc
mov edx, dword [rbp + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov qword [rsp + 0x20], r15
mov rcx, rsi
call sub.kernel32.dll_VirtualAlloc
mov r8d, dword [rbp + 0x54]
lea rdx, [0x140509360]
mov rcx, rax
mov rbx, rax
call fcn.1403cc5a0
movsxd rax, dword [0x14050939c]
mov r9, rdi
add rax, rbx
mov r8, rbp
mov qword [rdi], rax
mov qword [rax + 0x30], rsi
call fcn.14019bd80
test eax, eax
je 0x14019c5cc
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x14019c675
mov rcx, rdi
call fcn.14019c104
jmp 0x14019c67a
mov eax, 1
mov rcx, rdi
mov dword [rdi + 0x24], eax
call fcn.14019c1b8
test eax, eax
je 0x14019c5cc
mov rcx, rdi
call fcn.14019bf80
test eax, eax
je 0x14019c5cc
mov rcx, qword [rdi]
mov rax, rcx
mov edx, dword [rcx + 0xd0]
test edx, edx
je 0x14019c6e5
mov rbp, qword [rdi + 8]
mov rbx, qword [rdx + rbp + 0x18]
test rbx, rbx
je 0x14019c6e5
mov r9, qword [rbx]
test r9, r9
je 0x14019c6e5
xor r8d, r8d
mov rcx, rbp
mov rax, r9
lea edx, [r8 + 1]
call qword [case.0x140173169.0]
lea rbx, [rbx + 8]
mov r9, qword [rbx]
test r9, r9
jne 0x14019c6c3
mov rax, qword [rdi]
cmp dword [rax + 0x28], r15d
je 0x14019c724
mov eax, dword [rax + 0x28]
add rax, rsi
cmp dword [rdi + 0x20], r15d
je 0x14019c71e
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call qword [case.0x140173169.0]
test eax, eax
jne 0x14019c715
mov ecx, 0x45a
jmp 0x14019c5c6
mov dword [rdi + 0x1c], 1
jmp 0x14019c728
mov qword [rdi + 0x60], rax
jmp 0x14019c728
mov qword [rdi + 0x60], r15
mov rax, rdi
jmp 0x14019c73a
mov ecx, 0xc1
call qword [sym.imp.kernel32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret