Function at 0x140071f10
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r12, r8
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rcx + 0x18]
cmp dword [rcx + 0x38], 0
jne 0x140071f8e
mov edx, 5
lea rcx, [rax + 8]
call fcn.140015a00
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.14004aff0
nop
mov rax, qword [rsp + 0xd0]
lock dec dword [rax]
jne 0x1400721c8
mov rcx, qword [rsp + 0xd0]
call fcn.14000ade0
jmp 0x1400721c8
test rdx, rdx
jne 0x140071fd5
test r8, r8
jne 0x140071fd5
lea edx, [r8 + 0x57]
lea rcx, [rsp + 0x48]
call fcn.140015a00
nop
mov r8, rax
mov edx, 8
mov rcx, rsi
call fcn.14004aff0
nop
mov rax, qword [rsp + 0x48]
lock dec dword [rax]
jne 0x1400721c8
mov rcx, qword [rsp + 0x48]
call fcn.14000ade0
jmp 0x1400721c8
xor ebp, ebp
lea r15d, [rbp + 2]
lea r13d, [rbp + 4]
cmp qword [rcx + 0x80], rbp
jne 0x1400720bb
mov rcx, qword [rcx + 0x78]
cmp rcx, 0xffffffffffffffff
jne 0x140072052
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x140072014
call fcn.1400b1f08
mov ecx, eax
call fcn.1400b1a2c
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x140072052
mov edx, 5
lea rcx, [rsp + 0x40]
call fcn.140015a00
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.14004aff0
nop
mov rax, qword [rsp + 0x40]
lock dec dword [rax]
jne 0x1400721c8
mov rcx, qword [rsp + 0x40]
call fcn.14000ade0
jmp 0x1400721c8
mov eax, dword [rdi + 0x38]
and eax, r15d
mov r8d, r15d
cmovne r8d, r13d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x80], rax
test rax, rax
jne 0x1400720bb
or edx, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.140015a00
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.14004aff0
nop
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x1400721c8
mov rcx, qword [rsp + 0x50]
call fcn.14000ade0
jmp 0x1400721c8
mov ecx, dword [rdi + 0x38]
mov eax, ecx
and eax, 1
mov r14d, ebp
cmovne r14d, r13d
and ecx, r15d
cmovne r14d, r15d
mov r15, rbx
sar r15, 0x20
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rsp + 0x90]
dec r11d
mov r13d, ebx
and r13d, r11d
je 0x1400720fc
not r11d
and ebx, r11d
lea rax, [r12 + r13]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, r15d
mov edx, r14d
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x140072145
lea rbx, [rax + r13]
mov qword [rsp + 0x58], rbx
lea rcx, [rdi + 0x88]
lea rdx, [rsp + 0x58]
call fcn.140071dc0
mov dword [rax], r13d
mov rax, rbx
jmp 0x1400721ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
or edx, 0xffffffff
cmp eax, 5
je 0x140072180
lea rcx, [rsp + 0x30]
call fcn.140015a00
nop
mov r8, rax
mov edx, 8
mov rcx, rsi
call fcn.14004aff0
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x1400721b0
mov rcx, qword [rsp + 0x30]
jmp 0x1400721ab
lea rcx, [rsp + 0x38]
call fcn.140015a00
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.14004aff0
nop
mov rax, qword [rsp + 0x38]
lock dec dword [rax]
jne 0x1400721b0
mov rcx, qword [rsp + 0x38]
call fcn.14000ade0
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x80], 0
xor eax, eax
lea r11, [rsp + 0xa0]
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