Function at 0x140017b64
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140025328]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rbx, rdx
lea rcx, [rbp - 0x10]
xor edx, edx
mov rdi, r8
lea r8d, [rdx + 0x48]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
lea rcx, [rbp - 0x48]
lea r8d, [rdx + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
lea rcx, [rbp + 0x40]
lea r8d, [rdx + 0x48]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
lea rcx, [rbp - 0x78]
lea r8d, [rdx + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [rdi]
mov ecx, dword [rbx]
mov r8d, dword [rax + 8]
mov dword [rsp + 0x40], r8d
test ecx, ecx
je 0x140017dba
sub ecx, 1
je 0x140017da6
sub ecx, 1
je 0x140017d6e
cmp ecx, 1
jne 0x140017dd0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetProcessTimes]
test eax, eax
jne 0x140017c46
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140017dd2
mov eax, dword [rsp + 0x4c]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x5c], eax
lea rdx, [rsp + 0x48]
mov eax, dword [rsp + 0x48]
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x40], rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetSystemTimes]
test eax, eax
je 0x140017c2d
mov eax, dword [rsp + 0x4c]
lea rcx, [rbp - 0x78]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x38], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x28], rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov eax, dword [rbp - 0x58]
mov dword [rbp - 0x20], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetProcessMemoryInfo]
test eax, eax
je 0x140017c2d
mov eax, dword [rbp - 0xc]
lea rcx, [rbx + 8]
mov r9d, dword [rsp + 0x40]
lea r8, [rbp + 0x40]
mov dword [rbp + 0x40], eax
lea rdx, [rbp - 0x48]
mov rax, qword [rbp - 8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x80], rax
call fcn.14001802c
jmp 0x140017dd0
mov dword [rsp + 0x38], r8d
lea rax, [rbx + 0x831]
mov r8d, dword [rbx + 0x28]
lea r9, [rbx + 0x31]
mov qword [rsp + 0x30], rax
lea rdx, [rbx + 0x18]
mov al, byte [rbx + 0x30]
lea rcx, [rbx + 8]
mov qword [rsp + 0x28], r9
mov r9d, dword [rbx + 0x2c]
mov byte [rsp + 0x20], al
call fcn.140018534
jmp 0x140017dd0
lea rdx, [rbx + 0x18]
lea rcx, [rbx + 8]
lea r8, [rsp + 0x40]
call fcn.140017f28
jmp 0x140017dd0
lea r8, [rbx + 0x1c]
lea rdx, [rbx + 0xc]
lea rcx, [rbx + 8]
lea r9, [rsp + 0x40]
call fcn.140017e3c
xor ebx, ebx
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x140017e14
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140017e14
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x14001920e.0]
or edx, 0xffffffff
lock xadd dword [rdi + 0xc], edx
cmp edx, 1
jne 0x140017e14
mov rdx, qword [rdi]
mov rcx, rdi
mov rax, qword [rdx + 8]
call qword [case.0x14001920e.0]
mov eax, ebx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140018a70
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret