Function at 0x140093710
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 [0x1401a3008]
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 r13, qword [rdx]
lea edi, [r15 + 1]
cmp r8d, 0x80000000
je 0x1400937d1
cmp r8d, 0xc0000000
je 0x1400937c5
cmp r8d, 0xc0000001
je 0x1400937ba
cmp r8d, 0xc0000002
je 0x1400937d1
mov dword [rbp - 0x61], r15d
mov dword [rbp - 0x5d], shutdown
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.1400a46a0
lea rdx, [0x14017fc10]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r8d, 8
mov r12d, edi
jmp 0x1400937db
mov r8d, 4
lea r12d, [r8 - 2]
jmp 0x1400937db
mov r8d, 2
lea r12d, [r8 + 2]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r14, rax
test rax, rax
jne 0x140093845
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x61], eax
lea rcx, [0x14010a080]
lea rdx, str.___._____:__n_r_b
cmp eax, dword [rcx]
je 0x140093821
add rcx, 8
cmp rcx, rdx
jne 0x140093812
jmp 0x140093824
mov edi, dword [rcx + 4]
mov dword [rbp - 0x5d], edi
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.1400a46a0
lea rdx, [0x14017fc10]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rbp - 0x11], rax
mov rcx, qword [0x1401ae860]
test rcx, rcx
jne 0x140093862
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.1400a8690
mov qword [rsp + 0x20], r15
mov r9d, 0x18
lea r8, [rbp - 9]
xor edx, edx
mov rcx, r14
call rax
test eax, eax
je 0x1400938e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x61], eax
lea rcx, [0x14010a080]
lea rdx, str.___._____:__n_r_b
nop
cmp eax, dword [rcx]
je 0x1400938bf
add rcx, 8
cmp rcx, rdx
jne 0x1400938b0
jmp 0x1400938c2
mov edi, dword [rcx + 4]
mov dword [rbp - 0x5d], edi
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.1400a46a0
lea rdx, [0x14017fc10]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rax, qword [rbp + 7]
test rax, rax
js 0x140093a33
lea r15, [rax + rbx]
cmp r15, 0xffffffffffffffff
ja 0x140093a30
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, r12d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test rax, rax
jne 0x140093983
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x61], eax
lea rcx, [0x14010a080]
lea rdx, str.___._____:__n_r_b
nop dword [rax + rax]
cmp eax, dword [rcx]
je 0x14009395f
add rcx, 8
cmp rcx, rdx
jne 0x140093950
jmp 0x140093962
mov edi, dword [rcx + 4]
mov dword [rbp - 0x5d], edi
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.1400a46a0
lea rdx, [0x14017fc10]
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 eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9, [rsi + 0x20]
mov r8, rbx
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140093a2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x61], eax
lea rcx, [0x14010a080]
lea rdx, str.___._____:__n_r_b
nop dword [rax]
cmp eax, dword [rcx]
je 0x1400939ff
add rcx, 8
cmp rcx, rdx
jne 0x1400939f0
jmp 0x140093a02
mov edi, dword [rcx + 4]
mov dword [rbp - 0x5d], edi
mov rcx, rsi
call fcn.14009a650
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.1400a46a0
lea rdx, [0x14017fc10]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rax, rsi
jmp 0x140093a5c
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.1400a46a0
lea rdx, [0x14017fc10]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400ca980
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