Function at 0x18002ca80
Capabilities:
Get memory capacity

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x338], rbx
mov rax, qword [0x1800a5088]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov qword [rsp + 0x38], r9
mov rsi, r8
mov r14d, edx
mov rdi, rcx
mov ebx, edx
lea r15d, [rdx - 5]
mov r13d, dword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
cmp edx, r15d
jbe 0x18002cb70
mov eax, ebx
sub eax, 0x6c
je 0x18002cb4b
sub eax, 1
je 0x18002cb42
sub eax, 5
je 0x18002cb18
sub eax, 1
je 0x18002cb04
cmp eax, 6
jne 0x18002cb60
xor r13d, r13d
jmp 0x18002cb60
test rdi, rdi
je 0x18002cb0e
test rsi, rsi
jne 0x18002cb60
mov eax, 0xffffffff
jmp 0x18002cbb6
mov r8d, 0xa
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800599a4
mov dword [rdi], eax
mov edx, 0x36
mov rcx, qword [rsp + 0x40]
call fcn.180040ed0
test eax, eax
je 0x18002cb0e
jmp 0x18002cb60
mov dword [rbp - 0x80], 0x40
jmp 0x18002cb60
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x18002cbad
mov r12, qword [sym.imp.KERNEL32.dll_GetWriteWatch]
dec ebx
cmp ebx, r15d
ja 0x18002cae4
mov r9, qword [rsp + 0x38]
lea esi, [r14 + 6]
cmp r14d, esi
jae case.0x18002cbab.2
add r14d, 0xffffff93
mov r15d, 0x74
mov r10d, 0x4000
mov r8d, 0xf000
lea rdx, [0x180000000]
cmp r14d, 0xc
ja case.0x18002cbab.3
mov ecx, dword [rdx + r14*4 + 0x2cde0]
add rcx, rdx
jmp rcx
mov byte [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.180051f60
mov rbx, qword [rsp + 0x338]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebx, 0x1e
cmp ebx, 0xf6
ja 0x18002cc54
je 0x18002cc4d
mov eax, ebx
sub eax, 0x1e
je 0x18002cc47
sub eax, 0x48
je 0x18002cc1a
cmp eax, 0x48
jne 0x18002cca5
lea rdx, [0x18009787c]
lea rcx, [rbp - 0x3d]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x18002cca5
mov r8d, 1
lea rdx, [0x180094430]
lea rcx, [rbp - 0x40]
call fcn.180062ed0
movzx eax, word [0x1800944dc]
mov word [rbp - 0x3f], ax
movzx eax, byte [0x1800944de]
mov byte [rbp - 0x3d], al
jmp 0x18002cca5
mov byte [rbp - 0x40], 0
jmp 0x18002cca5
mov word [rbp - 0x3a], r15w
jmp 0x18002cca5
mov eax, ebx
sub eax, 0x13e
je 0x18002cc74
cmp eax, 0x48
jne 0x18002cca5
mov r8, r12
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.1800011d0
jmp 0x18002cca5
lea rdx, [0x180097880]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rbp - 0x40]
dec rax
nop dword [rax]
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x18002cc90
movsd xmm0, qword [str.tch__p_n]
movsd qword [rax], xmm0
add ebx, 0x48
cmp ebx, 0x1ce
jb 0x18002cbe5
mov r9, qword [rsp + 0x38]
cmp qword [r9 + 8], 0
setne byte [rsp + 0x30]
jmp case.0x18002cbab.3
test r13d, r13d
je case.0x18002cbab.3
lea rdx, str.View_More_Photo_Galleries
mov ecx, 4
call fcn.18003cb00
mov r9, qword [rsp + 0x38]
jmp case.0x18002cbab.3
cmp dword [rsp + 0x34], 0
jne 0x18002cb0e
movzx eax, word [rsp + 0x30]
and ax, r8w
cmp ax, r10w
jne 0x18002cb0e
mov dword [rsp + 0x30], 0
jmp case.0x18002cbab.3
mov rcx, qword [rbp - 0x78]
mov rax, rcx
sub rax, qword [rbp - 0x70]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x34], 0
mov rdi, qword [r9]
mov rbx, rdi
mov rax, qword [rdi + 8]
cmp byte [rax + 0x19], 0
jne 0x18002cd5b
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18002cd44
cmp rbx, rdi
je 0x18002cd5b
cmp dword [rbx + 0x20], 0
jbe 0x18002cdc1
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], 0
mov ecx, 0x38
call fcn.180052564
lea r9, [rax + 0x20]
mov ecx, dword [rsp + 0x34]
mov dword [r9], ecx
xorps xmm0, xmm0
movups xmmword [r9 + 8], xmm0
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov word [rax + 0x18], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.18004b210
mov rbx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x38]
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x28], xmm0
inc r14d
lea eax, [r14 + 0x6d]
cmp eax, esi
jae case.0x18002cbab.2
jmp 0x18002cb83