Function at 0x210098540
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rsp + 0x64], 0x200
mov eax, dword [rax - 0x2cc8]
lea r14, [rsp + 0x68]
mov rcx, r14
mov qword [rsp + 0xc8], rdx
mov dword [rsp + 0x68], eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov eax, dword [rax - 0x2cc4]
mov dword [rsp + 0x6c], eax
call method.tmp_pathbuf.c_get__
mov ecx, dword [rsp + 0x64]
mov r12, rax
mov rbx, rcx
call sym.malloc_1
mov r13, rax
test rax, rax
je 0x2100987de
lea rdi, [rsp + 0x64]
mov r8d, ebx
mov rdx, rax
mov ecx, 0x12
mov r9, rdi
call sym.NtQuerySystemInformation
mov esi, eax
cmp eax, 0xc0000004
je 0x210098800
lea rdx, str.Filename_t_t_t_tType_t_tSize_t_tUsed_t_tPriority_n
mov rcx, r12
call sym.__small_sprintf
movsxd rbx, eax
add rbx, r12
test esi, esi
js 0x210098765
movabs rbp, 0x2540be3ff
mov rcx, r14
lea r14, str._s_s_s_t_t_llu_s_t_llu_s_t_d_n
call method.tmp_pathbuf.c_get__
mov qword [rsp + 0x58], r12
mov r12, r13
mov r15, rax
jmp 0x2100986a9
shr rdi, 0xa
lea rdx, [0x21028f7f9]
cmp rsi, rbp
ja 0x2100986fe
shr rsi, 0xa
lea rcx, [0x21028f979]
cmp rax, 0x27
jbe 0x21009871f
lea rax, [0x21028f979]
mov qword [rsp + 0x30], rax
lea rax, str.file
lea r9, [0x21028f9a0]
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov r8, r15
mov rdx, r14
call sym.sprintf_1
cdqe
add rbx, rax
mov eax, dword [r12]
test eax, eax
je 0x210098760
add r12, rax
mov eax, dword [0x21034b024]
mov edi, dword [r12 + 8]
mov ecx, 3
mov r8, r15
mov esi, dword [r12 + 4]
mov rdx, qword [r12 + 0x18]
mov r9d, 0x8000
imul rdi, rax
imul rsi, rax
call sym.cygwin_conv_path_1
mov rcx, r15
call sym.msys_2.0.dll_strlen
cmp rdi, rbp
ja 0x210098628
shr rdi, 0xa
lea rdx, [0x21028f979]
cmp rsi, rbp
jbe 0x21009863c
shr rsi, 0xa
cmp rax, 0x27
jbe 0x210098718
lea rax, [0x21028f7f9]
jmp 0x210098658
lea rcx, [0x21028f7f9]
mov qword [rsp + 0x38], rdi
shr rax, 3
lea rdi, str.file
mov qword [rsp + 0x28], rsi
lea rsi, str._t_t_t_t_t
mov dword [rsp + 0x48], 0
lea r9, [rsi + rax]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rdi
jmp 0x210098687
mov r12, qword [rsp + 0x58]
mov rcx, r13
call sym.free_1
mov rax, qword [rsp + 0xc8]
sub rbx, r12
mov rdx, rbx
mov rcx, qword [rax]
call sym.crealloc_abort
mov rdx, r12
mov r8, rbx
mov rcx, rax
mov rax, qword [rsp + 0xc8]
mov qword [rax], rcx
call sym.msys_2.0.dll_memcpy
mov edx, dword [rsp + 0x68]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rax - 0x2cc8], edx
mov edx, dword [rsp + 0x6c]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rax - 0x2cc4], edx
mov rax, rbx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.Filename_t_t_t_tType_t_tSize_t_tUsed_t_tPriority_n
mov rcx, r12
call sym.__small_sprintf
movsxd rbx, eax
add rbx, r12
jmp 0x21009876d
mov rcx, r13
call sym.free_1
mov ecx, dword [rsp + 0x64]
mov rbx, rcx
call sym.malloc_1
mov r13, rax
test rax, rax
je 0x2100987de
mov r9, rdi
mov r8d, ebx
mov rdx, rax
mov ecx, 0x12
call sym.NtQuerySystemInformation
mov esi, eax
jmp 0x2100985db