Function at 0x140031770
Capabilities:
Get memory capacity
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xaa0]
sub rsp, 0xba0
mov rdi, rcx
mov rsi, rdx
lea rcx, [rbp + 0xad8]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r8, qword [rbp + 0xad8]
lea rcx, [rbp + 0x80]
mov edx, 0x64
call fcn.140031ca0
lea r8, [rbp + 0x80]
mov rcx, rdi
lea rdx, str.Error_occurred_at__s._r_n
call fcn.1400390e0
xor edx, edx
lea rcx, [rbp + 0x280]
mov r8d, 0x820
call fcn.1400443c0
mov r9d, 0x40e
lea r8, [rbp + 0x280]
xor edx, edx
mov rcx, rsi
call fcn.14003f82d
xor r14d, r14d
lea rbx, str.Unknown
test eax, eax
jne 0x140031852
mov r8, rbx
lea rax, [rbp + 0x280]
sub r8, rax
lea rcx, [rbp + 0x280]
mov edx, 0x410
lea rax, [rdx + 0x7ffffbee]
test rax, rax
je 0x140031843
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140031843
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140031820
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
xor edx, edx
lea rcx, [rbp + 0xf0]
mov r8d, 0x190
call fcn.1400443c0
lea rdx, [rbp + 0xad0]
mov dword [rbp + 0xad0], 0xc6
lea rcx, [rbp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400318d1
lea rcx, [rbp + 0xf0]
mov edx, 0xc8
sub rbx, rcx
lea rax, [rbp + 0xf0]
nop
lea rcx, [rdx + 0x7fffff36]
test rcx, rcx
je 0x1400318c2
movzx ecx, word [rbx + rax]
test cx, cx
je 0x1400318c2
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1400318a0
test rdx, rdx
lea rcx, [rax - 2]
cmovne rcx, rax
mov word [rcx], r14w
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x18]
call fcn.1400146e0
mov rbx, qword [rax]
test rbx, rbx
jne 0x1400318ed
lea rbx, [rax + 8]
lea rdx, [rbp + 0x280]
lea rcx, [rbp - 0x10]
call fcn.1400146e0
mov r8, qword [rax]
test r8, r8
jne 0x140031909
lea r8, [rax + 8]
mov r9, rbx
lea rdx, str._s__run_by__s._r_n_r_n
mov rcx, rdi
call fcn.1400390e0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140031932
cmp qword [rbp - 8], r14
jbe 0x140031932
mov edx, dword [rbp + 0x10]
call sym.UnityCrashHandler64.exe_PAL_Memory_AlignedFree
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140031949
cmp qword [rbp + 0x20], r14
jbe 0x140031949
mov edx, dword [rbp + 0x38]
call sym.UnityCrashHandler64.exe_PAL_Memory_AlignedFree
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor eax, eax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r8d, [rax + 0x48]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0x48
call fcn.14003f833
mov r8d, dword [rbp + 0x44]
lea rdx, str._d___physical_memory_in_use._r_n
mov rcx, rdi
call fcn.1400390e0
mov r9, qword [rbp + 0x50]
lea rdx, str._d_MB_physical_memory___d_MB_free_._r_n
mov r8, qword [rbp + 0x48]
add r9, 0xfffff
add r8, 0xfffff
shr r9, 0x14
shr r8, 0x14
mov rcx, rdi
call fcn.1400390e0
mov r9, qword [rsp + 0x68]
lea rdx, str._d_MB_process_peak_paging_file___d_MB_used_._r_n
mov r8, qword [rsp + 0x70]
add r9, 0xfffff
add r8, 0xfffff
shr r9, 0x14
shr r8, 0x14
mov rcx, rdi
call fcn.1400390e0
mov r9, qword [rsp + 0x40]
lea rdx, str._d_MB_process_peak_working_set___d_MB_used_._r_n
mov r8, qword [rsp + 0x38]
add r9, 0xfffff
add r8, 0xfffff
shr r9, 0x14
shr r8, 0x14
mov rcx, rdi
call fcn.1400390e0
xor edx, edx
lea rcx, [rbp - 0x7c]
lea r8d, [rdx + 0x64]
call fcn.1400443c0
mov edx, 0x68
mov dword [rbp - 0x80], 0x68
lea rcx, [rbp - 0x80]
call 0x14003f839
mov rax, qword [rbp - 0x30]
lea rdx, str.System_Commit_Total_Limit_Peak:__dMB__dMB__dMB_r_n
mov r9, qword [rbp - 0x70]
mov rcx, rax
imul rcx, qword [rbp - 0x68]
imul r9, rax
mov r8, qword [rbp - 0x78]
add rcx, 0xfffff
imul r8, rax
shr rcx, 0x14
add r9, 0xfffff
add r8, 0xfffff
mov qword [rsp + 0x20], rcx
mov rcx, rdi
shr r9, 0x14
shr r8, 0x14
call fcn.1400390e0
mov r9, qword [rbp - 0x58]
imul r9, qword [rbp - 0x30]
mov r8, qword [rbp - 0x60]
imul r8, qword [rbp - 0x30]
add r9, 0xfffff
shr r9, 0x14
add r8, 0xfffff
shr r8, 0x14
lea rdx, str.System_Physical_Total_Available:__dMB__dMB_r_n
mov rcx, rdi
call fcn.1400390e0
mov r8d, dword [rbp - 0x24]
lea rdx, str.System_Process_Count:__d_r_n
mov rcx, rdi
call fcn.1400390e0
mov r8d, dword [rbp - 0x20]
lea rdx, str.System_Thread_Count:__d_r_n
mov rcx, rdi
call fcn.1400390e0
mov r8d, dword [rbp - 0x28]
lea rdx, str.System_Handle_Count:__d_r_n
mov rcx, rdi
call fcn.1400390e0
lea r11, [rsp + 0xba0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret