Function at 0x140059550
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 r13, r8
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rcx + 0x18]
cmp dword [rcx + 0x30], 0
jne 0x1400595ce
mov edx, 5
lea rcx, [rax + 8]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.140065a50
nop
mov rax, qword [rsp + 0xd0]
lock dec dword [rax]
jne 0x1400597e8
mov rcx, qword [rsp + 0xd0]
call fcn.140012a00
jmp 0x1400597e8
test rdx, rdx
jne 0x140059615
test r8, r8
jne 0x140059615
lea edx, [r8 + 0x57]
lea rcx, [rsp + 0x48]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 8
mov rcx, rsi
call fcn.140065a50
nop
mov rax, qword [rsp + 0x48]
lock dec dword [rax]
jne 0x1400597e8
mov rcx, qword [rsp + 0x48]
call fcn.140012a00
jmp 0x1400597e8
xor ebp, ebp
lea r14d, [rbp + 2]
lea r12d, [rbp + 4]
cmp qword [rcx + 0x48], 0xffffffffffffffff
jne 0x1400596f6
mov rcx, qword [rcx + 0x40]
cmp rcx, 0xffffffffffffffff
jne 0x140059690
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140059652
call fcn.1400b29b0
mov ecx, eax
call fcn.1400b2568
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x140059690
mov edx, 5
lea rcx, [rsp + 0x40]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.140065a50
nop
mov rax, qword [rsp + 0x40]
lock dec dword [rax]
jne 0x1400597e8
mov rcx, qword [rsp + 0x40]
call fcn.140012a00
jmp 0x1400597e8
mov eax, dword [rdi + 0x30]
and eax, r14d
mov r8d, r14d
cmovne r8d, r12d
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 + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1400596f6
or edx, eax
lea rcx, [rsp + 0x50]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.140065a50
nop
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x1400597e8
mov rcx, qword [rsp + 0x50]
call fcn.140012a00
jmp 0x1400597e8
mov ecx, dword [rdi + 0x30]
mov eax, ecx
and eax, 1
cmovne ebp, r12d
and ecx, r14d
cmovne ebp, r14d
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 r14d, ebx
and r14d, r11d
je 0x140059734
not r11d
and ebx, r11d
lea rax, [r14 + r13]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, r15d
mov edx, ebp
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x140059773
lea rbx, [r14 + rax]
mov qword [rsp + 0x58], rbx
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x58]
call fcn.140059400
mov dword [rax], r14d
mov rax, rbx
jmp 0x1400597ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
or edx, 0xffffffff
cmp eax, 5
je 0x1400597ae
lea rcx, [rsp + 0x30]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 8
mov rcx, rsi
call fcn.140065a50
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x1400597de
mov rcx, qword [rsp + 0x30]
jmp 0x1400597d9
lea rcx, [rsp + 0x38]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.140065a50
nop
mov rax, qword [rsp + 0x38]
lock dec dword [rax]
jne 0x1400597de
mov rcx, qword [rsp + 0x38]
call fcn.140012a00
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
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