Function at 0x14003e670
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0xc0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rsi, rcx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov dword [rcx + 0x18], r8d
mov qword [rcx + 0x20], 0xffffffffffffffff
mov rax, qword [rdx]
mov qword [rbp - 0x61], rax
lea edi, [r15 + 1]
cmp r8d, 0x80000000
je 0x14003e735
cmp r8d, 0xc0000000
je 0x14003e729
cmp r8d, 0xc0000001
je 0x14003e71e
cmp r8d, 0xc0000002
je 0x14003e735
mov dword [rbp - 0x61], r15d
mov dword [rbp - 0x5d], shutdown
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r8d, 8
mov r13d, edi
jmp 0x14003e73f
mov r8d, 4
lea r13d, [r8 - 2]
jmp 0x14003e73f
mov r8d, 2
lea r13d, [r8 + 2]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r14, rax
test rax, rax
jne 0x14003e7ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [rbp - 0x61], eax
lea rax, [0x14007ed20]
lea rcx, [0x14007ee20]
cmp edx, dword [rax]
je 0x14003e787
add rax, 8
cmp rax, rcx
jne 0x14003e778
jmp 0x14003e78a
mov edi, dword [rax + 4]
mov dword [rbp - 0x5d], edi
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rbp - 0x11], rax
mov rcx, qword [0x1400ccdf8]
test rcx, rcx
jne 0x14003e7c8
lea rcx, [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x29]
xor edx, edx
xor eax, eax
div rcx
mov rbx, rax
imul rbx, rcx
neg rbx
mov ecx, 4
call fcn.140053bb0
mov qword [rsp + 0x20], r15
mov r9d, 0x18
lea r8, [rbp - 9]
xor edx, edx
mov rcx, r14
call rax
test eax, eax
je 0x14003e849
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [rbp - 0x61], eax
lea rax, [0x14007ed20]
lea rcx, [0x14007ee20]
cmp edx, dword [rax]
je 0x14003e825
add rax, 8
cmp rax, rcx
jne 0x14003e816
jmp 0x14003e828
mov edi, dword [rax + 4]
mov dword [rbp - 0x5d], edi
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rax, qword [rbp + 7]
test rax, rax
js 0x14003e9ba
lea r15, [rax + rbx]
cmp r15, 0xffffffffffffffff
ja 0x14003e9b7
lea rcx, [r15 + rbx]
mov r8, rbx
neg r8
mov rax, r8
shr rax, 0x20
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov r9d, r8d
mov r8d, eax
mov edx, r13d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test rax, rax
jne 0x14003e8e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [rbp - 0x61], eax
lea rax, [0x14007ed20]
lea rcx, [0x14007ee20]
cmp edx, dword [rax]
je 0x14003e8c2
add rax, 8
cmp rax, rcx
jne 0x14003e8b3
jmp 0x14003e8c5
mov edi, dword [rax + 4]
mov dword [rbp - 0x5d], edi
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
add rax, rbx
mov qword [rsi], rax
mov qword [rsi + 0x10], rbx
mov qword [rsi + 8], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
xor r14d, r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rsi + 0x20]
mov r8, rbx
mov rdx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x14003e9b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [rbp - 0x61], eax
lea rax, [0x14007ed20]
lea rcx, [0x14007ee20]
cmp edx, dword [rax]
je 0x14003e961
add rax, 8
cmp rax, rcx
jne 0x14003e952
jmp 0x14003e964
mov edi, dword [rax + 4]
mov dword [rbp - 0x5d], edi
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003e97c
sub rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], r14
mov rcx, qword [rsi + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14003e994
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x20], 0xffffffffffffffff
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rax, rsi
jmp 0x14003e9e3
xor r15d, r15d
mov dword [rbp - 0x61], r15d
mov dword [rbp - 0x5d], reloc.WS2_32.dll_select
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14004fac0
lea rdx, [0x1400b7b18]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140062f80
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret