Function at 0x1418e5d20
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 [rax - 0x68], 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]
mov r10d, dword [rcx + 0x38]
test r10d, r10d
jne 0x1418e5dbe
lea edx, [r10 + 5]
lea rcx, [rax + 8]
call fcn.1418ac490
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.1418c3e30
nop
mov rcx, qword [rsp + 0xd0]
mov eax, dword [rcx]
test eax, eax
je 0x1418e5dab
cmp eax, 0xffffffff
je 0x1418e6084
or ebx, 0xffffffff
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1418e6084
mov rcx, qword [rsp + 0xd0]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
jmp 0x1418e6084
test rbx, rbx
jne 0x1418e5e21
test r13, r13
jne 0x1418e5e21
lea edx, [rbx + 0x57]
lea rcx, [rsp + 0x30]
call fcn.1418ac490
nop
mov r8, rax
lea edx, [rbx + 8]
mov rcx, rsi
call fcn.1418c3e30
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1418e5e0e
cmp eax, 0xffffffff
je 0x1418e6084
or ebx, 0xffffffff
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1418e6084
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
jmp 0x1418e6084
xor r14d, r14d
lea r15d, [r14 + 4]
test r9b, 1
je 0x1418e5e34
lea ebp, [r14 + 1]
jmp 0x1418e5e4e
mov eax, r10d
and eax, 2
je 0x1418e5e43
mov ebp, 2
jmp 0x1418e5e4e
and r10d, 1
mov ebp, r14d
cmovne ebp, r15d
cmp qword [rcx + 0x88], r14
jne 0x1418e5f6b
mov rcx, qword [rcx + 0x80]
cmp rcx, 0xffffffffffffffff
jne 0x1418e5ee3
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x1418e5e86
call fcn.141997fdc
mov ecx, eax
call fcn.14199785c
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x1418e5ee3
mov edx, 5
lea rcx, [rsp + 0x38]
call fcn.1418ac490
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.1418c3e30
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1418e5ed0
cmp eax, 0xffffffff
je 0x1418e6084
or ebx, 0xffffffff
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1418e6084
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
jmp 0x1418e6084
mov eax, dword [rdi + 0x38]
and eax, 2
mov r8d, 2
cmovne r8d, r15d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x88], rax
test rax, rax
jne 0x1418e5f6b
or ebx, 0xffffffff
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1418ac490
nop
mov r8, rax
lea edx, [rbx + 0xe]
mov rcx, rsi
call fcn.1418c3e30
nop
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1418e5f58
cmp eax, ebx
je 0x1418e6084
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1418e6084
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
jmp 0x1418e6084
mov r15, rbx
sar r15, 0x20
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x90]
dec eax
mov r14d, ebx
and r14d, eax
je 0x1418e5f92
not eax
and ebx, eax
lea rax, [r14 + r13]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, r15d
mov edx, ebp
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1418e5fda
lea rbx, [r14 + rax]
mov qword [rsp + 0x58], rbx
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0x58]
call fcn.1418e4a50
mov dword [rax], r14d
mov rax, rbx
jmp 0x1418e6086
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
mov edx, ebx
cmp eax, 5
je 0x1418e6023
lea rcx, [rsp + 0x48]
call fcn.1418ac490
nop
mov r8, rax
lea edx, [rbx + 9]
mov rcx, rsi
call fcn.1418c3e30
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1418e605d
cmp eax, ebx
je 0x1418e606c
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1418e606c
mov rcx, qword [rsp + 0x48]
jmp 0x1418e605d
lea rcx, [rsp + 0x50]
call fcn.1418ac490
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call fcn.1418c3e30
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1418e605d
cmp eax, 0xffffffff
je 0x1418e606c
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1418e606c
mov rcx, qword [rsp + 0x50]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1418993e0
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x88], 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