Function at 0x140056b90
Capabilities:
Get memory capacity

Disassembly:
push rbp
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor r8d, r8d
mov dword [rsp + 0x60], 0x40
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400f8a70], rax
test rax, rax
jne 0x140056bdd
mov eax, 0x8007000e
jmp 0x140056d74
mov qword [rsp + 0x240], rbx
mov qword [rsp + 0x248], rsi
call fcn.1400564e0
xor esi, esi
mov ebx, eax
test eax, eax
jns 0x140056c38
test byte [0x1400f8b38], 4
je 0x140056d49
lea rax, str.CxPlatProcessorInfoInit_failed
mov qword [rbp + 0x78], 0x1f
mov qword [rbp + 0x70], rax
lea r9d, [rsi + 2]
lea rax, [rbp + 0x60]
lea rdx, [0x1400cffa0]
mov qword [rsp + 0x20], rax
call fcn.140001460
jmp 0x140056d49
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x140056c8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x1400f8b38], 4
mov ebx, eax
je 0x140056cfe
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x50], rax
lea rax, str.GlobalMemoryStatusEx_failed
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x48], 4
mov qword [rbp - 0x38], 0x1c
jmp 0x140056ce7
mov rax, qword [rsp + 0x78]
lea rcx, [0x1400f8af8]
mov edx, 8
mov qword [0x1400f8b10], rax
call qword [sym.imp.WINMM.dll_timeGetDevCaps]
mov ebx, eax
test eax, eax
je 0x140056d8c
test byte [0x1400f8b38], 4
je 0x140056cfe
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x20], rax
lea rax, str.timeGetDevCaps_failed
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], 4
mov qword [rbp - 8], reloc.WS2_32.dll_shutdown
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, [0x1400d0948]
call fcn.140001460
test ebx, ebx
jle 0x140056d0d
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x140056d62
mov r8, qword [0x1400f8b18]
xor edx, edx
mov rcx, qword [0x1400f8a70]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [0x1400f8b00]
xor edx, edx
mov rcx, qword [0x1400f8a70]
mov qword [0x1400f8b18], rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x1400f8b00], rsi
mov rcx, qword [0x1400f8a70]
test rcx, rcx
je 0x140056d62
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x1400f8a70], rsi
mov rsi, qword [rsp + 0x248]
mov eax, ebx
mov rbx, qword [rsp + 0x240]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x230
pop rbp
ret
xor r9d, r9d
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.CHACHA20_POLY1305
lea rcx, [0x1400f8a78]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jns 0x140056e01
test byte [0x1400f8b38], 4
je 0x140056dfa
mov dword [rsp + 0x50], eax
lea rdx, [0x1400d0948]
lea rax, [rsp + 0x50]
mov qword [rbp + 0x18], 4
mov qword [rbp + 0x10], rax
mov r9d, 3
lea rax, str.Open_ChaCha20_Poly1305_algorithm
mov qword [rbp + 0x28], 0x21
mov qword [rbp + 0x20], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
call fcn.140001460
mov ebx, esi
jmp 0x140056e93
mov rcx, qword [0x1400f8a78]
lea r8, str.ChainingModeN_A
mov r9d, 0x20
mov dword [rsp + 0x20], esi
lea rdx, str.ChainingMode
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov ebx, eax
test eax, eax
jns 0x140056e93
test byte [0x1400f8b38], 4
je 0x140056e78
mov dword [rsp + 0x58], eax
lea rdx, [0x1400d0948]
lea rax, [rsp + 0x58]
mov qword [rbp + 0x48], 4
mov qword [rbp + 0x40], rax
mov r9d, 3
lea rax, str.Set_ChaCha20_Poly1305_chaining_mode
mov qword [rbp + 0x58], 0x24
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140001460
mov rcx, qword [0x1400f8a78]
test rcx, rcx
je 0x140056e93
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov qword [0x1400f8a78], rsi
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
test eax, eax
jle 0x140056eaa
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140056d0f
lea rcx, [0x1400f8ac0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test byte [0x1400f8b3e], 0x40
je 0x140056d62
mov eax, dword [0x1400f8afc]
lea r9, str.__dll__Initialized__AvailMem___llu_bytes__TimerResolution____u___u__
mov dword [rsp + 0x30], eax
lea rcx, [rbp + 0xa0]
mov eax, dword [0x1400f8af8]
mov edx, 0x80
mov dword [rsp + 0x28], eax
mov rax, qword [0x1400f8b10]
mov qword [rsp + 0x250], rdi
mov rdi, 0xffffffffffffffff
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.1400015d0
lea rax, [rbp + 0xa0]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], sil
jne 0x140056f20
lea rax, [rbp + 0xa0]
mov dword [rbp + 0x9c], esi
mov qword [rbp + 0x90], rax
lea rdx, [0x1400d0290]
lea rax, [rbp + 0x80]
inc edi
mov r9d, 2
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x98], edi
call fcn.140001460
mov rdi, qword [rsp + 0x250]
jmp 0x140056d62