Function at 0x10007a150
Capabilities:
Get memory capacity
Get thread local storage value

Disassembly:
mov r11, rsp
push rsi
push r15
sub rsp, 0xd8
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 0x18], rbp
mov rbp, qword [rcx + 0x18]
mov qword [r11 - 0x20], rdi
mov rdi, qword [0x100255a58]
mov qword [r11 - 0x28], r12
mov r15, rcx
mov qword [r11 - 0x30], r13
lea rcx, [rsp + 0x60]
xor esi, esi
mov r13d, r8d
mov r12d, edx
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x60], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [r15 + 0x10], 1
jne 0x10007a219
mov rax, qword [rsp + 0x68]
lea rcx, [rax + rax*4]
movabs rax, 0x47ae147ae147ae15
mul rcx
mov eax, 0x6400000
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 6
cmp rcx, rax
cmova rax, rcx
movabs rcx, 0x140000000
cmp rax, rcx
cmovb rcx, rax
cmp rcx, rbp
jae 0x10007a1ff
sub rbp, rcx
call fcn.100068420
shl rax, 0xd
cmp rbp, rax
jb 0x10007a219
call fcn.100068420
mov rbp, rax
shl rbp, 0xd
mov rbx, rbp
test rbp, rbp
je 0x10007a3e0
mov qword [rsp + 0xb0], r14
nop dword [rax]
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov r14, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x10007a25c
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rsi, rsi
je 0x10007a26d
mov rax, qword [rsi + 0xd8]
test rax, rax
jne 0x10007a2a5
call fcn.100063d30
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov r14, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x10007a29e
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rax, qword [rsi + 0xd8]
mov edx, dword [rax + 0x7c]
lea rcx, [0x10024f700]
call fcn.1000791d0
mov r14, rax
test rax, rax
je 0x10007a3d4
cmp dword [r15 + 0x10], 1
jne 0x10007a2e2
mov rcx, qword [rsp + 0x68]
shr rcx, 2
cmp rbp, rcx
jbe 0x10007a2e2
mov rcx, rbp
shr rcx, 1
cmp rbx, rcx
cmovae rbx, rcx
xor r8d, r8d
mov ecx, r8d
lea esi, [r8 + 8]
nop dword [rax]
test rcx, rcx
jne 0x10007a39a
mov eax, esi
mov rcx, rbp
shr rcx, 3
imul rcx, rax
lea rax, [rdi - 1]
cmp rbx, rcx
cmovae rbx, rcx
mov rcx, qword [0x100278968]
xor edx, edx
add rax, rbx
div rdi
lea rbx, [rax + 1]
imul rbx, rdi
cmp dword [r15 + 0x10], 1
jne 0x10007a33e
lea r8, [rsp + 0x58]
mov rdx, rbx
call fcn.1000874f0
jmp 0x10007a364
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], r8d
mov r9d, r12d
xor edx, edx
mov r8, rbx
mov dword [rsp + 0x20], r13d
call fcn.100086db0
mov rcx, rax
test rax, rax
je 0x10007a387
xor edx, edx
lea rax, [rdi - 1]
add rax, rcx
div rdi
imul rax, rdi
cmp rcx, rax
je 0x10007a387
mov rcx, rax
sub rbx, rdi
mov r8d, 0
dec esi
jne 0x10007a2f0
test rcx, rcx
je 0x10007a3d4
mov qword [r14 + 0x10], rcx
mov qword [r14 + 0x18], rbx
lock inc dword [r15 + 0x14]
cmp rbp, rbx
mov rax, rbx
mov rdx, r14
cmovb rax, rbp
mov rcx, r15
sub rbp, rax
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov esi, 1
mov dword [rsp + 0x50], esi
test rbp, rbp
jne 0x10007a230
jmp 0x10007a3d8
mov esi, dword [rsp + 0x50]
mov r14, qword [rsp + 0xb0]
cmp dword [r15 + 0x10], 1
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x108]
mov eax, esi
jne 0x10007a419
mov ecx, dword [r15 + 0x14]
mov dword [r15 + 0x20], ecx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.10005f420
add rsp, 0xd8
pop r15
pop rsi
ret